Anonymous user
Numerical integration: Difference between revisions
m
→{{header|Fortran}}
Line 499:
=={{header|Fortran}}==
In ISO Fortran 95 and later if function f() is not already defined to be "elemental", define an elemental wrapper function around it to allow for array-based initialization:
Use Array Initializers, Pointers, Array invocation of Elemental functions, Elemental array-array and array-scalar arithmetic, and the SUM intrinsic function
program integrate
! Left rectangular rule integral
! Middle rectangular rule integral
! Right rectangular rule integral
! Trapezoid rule integral
! Simpson's rule integral
=={{header|Haskell}}==
|