Formal power series: Difference between revisions

Content added Content deleted
(→‎{{header|Wren}}: Corrected previously unused inverseCoef method and added more examples.)
Line 1,745: Line 1,745:
print(tangent(math.pi/3), tangent(math.pi/4), tangent(math.pi/6)) --something like 30000 function calls!</lang>
print(tangent(math.pi/3), tangent(math.pi/4), tangent(math.pi/6)) --something like 30000 function calls!</lang>


=={{header|Mathematica}}==
=={{header|Mathematica}}/{{header|Wolfram Language}}==
Mathematica natively supports symbolic power series. For example, this input demonstrates that the integral of the series of Cos minus the series for sin is zero to the order of cancellation.
Mathematica natively supports symbolic power series. For example, this input demonstrates that the integral of the series of Cos minus the series for sin is zero to the order of cancellation.
<lang Mathematica>cos = Series[Cos[x], {x, 0, 10}];
<lang Mathematica>cos = Series[Cos[x], {x, 0, 10}];