Anonymous user
Sum of a series: Difference between revisions
→{{header|Forth}}: added haskell
(→{{header|J}}: streamlined, and expanded comment to cover the entire program) |
(→{{header|Forth}}: added haskell) |
||
Line 58:
1 1000 sum f. \ 1.64393456668156
pi pi f* 6e f/ f. \ 1.64493406684823
=={{header|Haskell}}==
sum $ map (\x -> 1/(x*x)) [1..1000]
=={{header|J}}==
|