Polynomial synthetic division: Difference between revisions

m
(Tcl implementation added)
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
Anonymous user