Anonymous user
Polynomial synthetic division: Difference between revisions
m
→{{header|Tcl}}
(Tcl implementation added) |
m (→{{header|Tcl}}) |
||
Line 103:
{{trans|Python}}
This uses a common utility proc <tt>range</tt>, and a less common one called <tt>lincr</tt>, which increments elements of lists. The routine for polynomial division is placed in a namespace ensemble, such that it can be conveniently shared with other commands for polynomial arithmetic (eg <tt>polynomial multiply</tt>).
<lang Tcl># range ?start? end+1
|