Numerical integration: Difference between revisions
Content added Content deleted
m (→{{header|J}}: typo) |
|||
Line 879:
0 p.. 0 0 1x NB. or using rationals
0 0 0 1r3</lang>
That is: <math>0x^0 +
So to integrate <math>x^2</math> from 0 to pi:
<lang j> 0 0 1 (0&p..@[ -~/@:p. ]) 0 1p1
|