Euler's number and integral: Trapezoidal float Part1 trap(float a, float b, float f)
4 Pages660 Words101 Views
Computers in Engineering (COMP 208)
Added on 2021-11-07
About This Document
return (h/2)*s; /* Integration using Simpson's rule */ float simpson (int no, float x0, float xn) int r; float interval, sum=0., x; interval = ((xn -x0) /(no-1)); for (r=2; rno; r+=2) /* loop for odd points */ x = interval * (r-1); sum +
Euler's number and integral: Trapezoidal float Part1 trap(float a, float b, float f)
Computers in Engineering (COMP 208)
Added on 2021-11-07
ShareRelated Documents
End of preview
Want to access all the pages? Upload your documents or become a member.