Numerical integration: Difference between revisions

Added run time to the D code
(Added a faster D version)
(Added run time to the D code)
Line 767:
trapezium: 18000000.000000
simpson: 18000000.000000</pre>
===A faster version, that avoids function pointers and delegates (same output):===
This version avoids function pointers and delegates (same output, 0.45 seconds run time):
<lang d>import std.stdio, std.typecons, std.typetuple;
 
Anonymous user