Linear combination of two numbers
linear( a, ka, b, kb ) mp a, b; int ka, kb; /*** compute a*ka + b*kb --> a ***/ {int i, la, lb; la = length( a ); lb = length( b ); for (i=1; i
la ) { storelength( a, lb ); for (i=la; i
C
source (61.linear.c)
©
Addison-Wesley
Publishing Co. Inc.