Anonymous user
Numerical integration: Difference between revisions
m
→{{header|Ada}}: whitespace removal
(→{{header|PureBasic}}: incorrect) |
m (→{{header|Ada}}: whitespace removal) |
||
Line 82:
</lang>
=={{header|Ada}}==
{{incorrect|Ada|Right_Rect stops one H too soon; Mid_Rect doesn't sample at midpoints but merely recreates Trapezium differently.}}
This solution creates a generic package into which the function F(X) is passed during generic instantiation. The first part is the package specification. The second part is the package body.
|