RosettaCodeData/Task/Numerical-integration/E/numerical-integration-2.e

6 lines
159 B
Text
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
? integrate(fn x { x ** 2 }, 3.0, 7.0, 30, simpson)
# value: 105.33333333333334
? integrate(fn x { x ** 9 }, 0, 1, 300, simpson)
# value: 0.10000000002160479