Question: Writing a java program to solve this question. Using the function as an input Exercice Numerical Integration Write a program for Composite Trapezoidal rule to
Exercice Numerical Integration Write a program for Composite Trapezoidal rule to approximate @f(x)dx for given f(x),a,band n. Test your program with f (x)--and [a,bJ-[1.2] Make the output similar to the following table. Use n-1000 for exact solution f(x)dx 10 15 100 Or Error f(x)dx 10 100 1000 10000 Write a program for Composite Simpson's rule to approximate S)dx for given f(x), a, b and n. Test your program with f (?-and [a,b-p.2]. Make the output similar to the following table. Use 1000 for exact solution. Error fa)dx 10 15 100 Or Error f(x)dx 10 100 1000 10000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
