Numerical integration: Difference between revisions
Content added Content deleted
m (→{{header|REXX}}: aligned some statements, added whitespace.) |
(Nimrod -> Nim) |
||
Line 2,596: | Line 2,596: | ||
trapezium(1/x, x, 1, 100, 10000) - log(100), bfloat;</lang> |
trapezium(1/x, x, 1, 100, 10000) - log(100), bfloat;</lang> |
||
=={{header| |
=={{header|Nim}}== |
||
{{trans|Python}} |
{{trans|Python}} |
||
<lang |
<lang nim>type Function = proc(x: float): float |
||
type Rule = proc(f: Function; x, h: float): float |
type Rule = proc(f: Function; x, h: float): float |
||