help with multiplying polynomials in lisp

Posted by iulia on Stack Overflow See other posts from Stack Overflow or by iulia
Published on 2010-05-15T06:40:18Z Indexed on 2010/05/15 6:44 UTC
Read the original article Hit count: 310

for example:( 3x2-5x+2)(7x+1) and you simlify it like this: ((3 2)(-5 1)(2 0))((7 1)(1 0))

((21 3)(3 2)(-35 2)(-5 1)(14 1)(2 0))

(21 3)(32 2)(9 1)(2 0)

and you get this answer: 21x2+32x2+9x+2

i need this solution in lisp please help

© Stack Overflow or respective owner

Related posts about clisp

Related posts about help