Sum of a series: Difference between revisions
Sum of a series in Asymptote
(Sum of a series in various dialects BASIC (Gambas, QBasic and XBasic)) |
(Sum of a series in Asymptote) |
||
Line 298:
<pre>1.643934566681561</pre>
=={{header|Asymptote}}==
<syntaxhighlight lang="Asymptote">real sum;
for(int i = 1; i < 1000; ++i) sum = sum + 1 / (i * i);
write(sum, suffix=none);</syntaxhighlight>
{{out}}
<pre>1.64393356668156</pre>
=={{header|AutoHotkey}}==
|