Académique Documents
Professionnel Documents
Culture Documents
ENGINEERING
OBAFEMI AWOLOWO UNIVERSITY
ILE-IFE OSUN STATE
INTRODUCTION TO PROGRAMMING
CSC 202 PROJECT
SUBMITTED BY: ADEWOLE OLUWAFEMI
EBENEZER
SUBMITTED TO: DR ELUDIORA
SUBMITTED ON: 9TH OF MARCH 2015
MATRIC NO: CSC/2012/012
SYSTEM NUMBER 113
I=1-11-x2 dx
as a case study with an exact value of
I= =1.57089632679
The integral function is the area under the semicircle of the radius of semicircle.
THE ANALYSIS OF THE PROJECT
The main idea of the question is to show how integral function can be evaluated on the
computer by dividing the domain of integration into a large number of N subsections of
width h=2/N each and then employing the Riemann definition of the integral
Nk=1hyk
I=lim
N-
where
y k=1-x2k
and
xk=(-1+hk)
X = 0.0
Y = 0.0
h = 0.0
N = 0.0
I = 0.0
P=0
READ N
h = 2/N
DO p = 1
100
x = -1 + (h*p)
y = SQRT(1 (x*x))
I = I + (y*h)
WRITE I
STOP
RESULT
Taking N as power which is 100, we get the integral to be
evaluated as 1.56914 while the exact value is
1.57089632679. Even though the value is close to the
original number, the program from Fortran couldnt get
the exact value of the which indicate that computer are
CONCLUSION
The calculated value for the area of the semicircle of
radius is equal to =1.57079632679. During my
calculation using the fortran programming, I realize that
the highest value for =1.57079 (2945) which is the
closest value to the original value of (despite
increasing the value of N). This clearly shows the
limitation of computer to arithmetic using Riemanns
definition or theory.
As a computer scientist, looking at the aspect of
computer program contribution to this project, I realize
that there is still some need to improve computer
efficiency( both in accuracy and speed) in order to give
more accurate result and a little bit more faster. This can
be achieved by more work in producing more integrated
microchip which read or load up in less than 1020 (and
above) seconds. This can be achieved with more research
and creativity in the field of computing.