Write a program to perform the numerical integration of finding the area of a quarter circle as follows. The area of a small strip of width dx at a distance x from the center is given as dx*h. If we integrate the area for x = 0 to x = R, we get the area of the quarter circle. h can be expressed in terms of x and R. The integration of area dx*h can be implemented as a summation with x incremented as x = x + dx. Implement this procedure in a MATLAB program, in which the user inputs the radius R and the increment dx. The program should finally display the error in the computed result based on the actual value of area (p*R2 /4). Observe the variation of computed area with respect to the increment dx.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here