Horner's rule for polynomial evaluation: Difference between revisions
Content deleted Content added
m Added the Sidef language |
→{{header|Perl 6}}: glrize |
||
Line 1,150:
}
An other possibility would consist in creating a list of functions and chain them with a composition operator.
Line 1,177:
# compute progressive approximations of exp(2)
my @c
say .(0) for horner( @c, 2 );</lang>
{{out}}
|