Formal power series: Difference between revisions
m
→{{header|Perl 6}}: Comment edits.
m (→{{header|Perl 6}}: delete extra newlines) |
m (→{{header|Perl 6}}: Comment edits.) |
||
Line 1,166:
multi infix:</>(FPS $x, FPS $y) { $x * InvFPS.new(:x($y)) }
# an example
multi infix:<->(Numeric $x, FPS $y) { ExplicitFPS.new(:coeffs($x, 0 xx *)) - $y }
Line 1,174:
$sin.realized = $cos.integrate;
# define tangent in terms of sine and cosine
my $tan = $sin / $cos;
|