Numerical integration: Difference between revisions
Content added Content deleted
(→{{header|C}}: incorrect) |
(→{{header|Java}}: incorrect) |
||
Line 1,028: | Line 1,028: | ||
=={{header|Java}}== |
=={{header|Java}}== |
||
{{incorrect|Java|rightRect stops one h too soon; midRect does not sample midpoints but reimplements trapezium differently; trapezium is incorrect, doesn't multiply middle terms by 2 to account for double usage.}} |
|||
The function in this example is assumed to be <tt>f(double x)</tt>. |
The function in this example is assumed to be <tt>f(double x)</tt>. |
||
<lang java5>public class Integrate{ |
<lang java5>public class Integrate{ |