HELP!! HELP!! I need help for defining functions! Can someone help me!!
Thanz!! This subject of mine is driving me nutz!!
Implement the following Lisp Functions:
A: Polysort-- To rearrange the terms of a polynomisl in descending order
of the powers of the variable.
eg. given , ((2 1) (-3 2) (5 3) (-12 0))
should return => (5 3) (-3 2) (2 1) (-12 0)
B: Polygen--to convert a given polynomial to a specified general form where
i) the terms of the polynomial to a specified general form where
ii) there can be at most one term of a certain power;
iii)there is no term with coefficient 0
eg. given the polynomial
((-3 2) (4 1) (-12 0) (2 2) (3 5) (-4 1) (5 0))
should ret : ((3 5) (-1 2) (-7 0))
C: Polydeg--to find the degree of a polynomial (ie. the power of the
highest-power term)
eg. given the polynomial
((2 1) (-3 2) (5 3) (-12 0))
should ret. => 3
D: Polyeval-- to evaluate a polynomial for a given value of its single
variable.
eg. given the polynomial in the variable x:
((2 1) (-3 2) (5 3) (-12 0))
and the value 12 for x,
polyeval should return 20.
THanz a Million if you can help me!!!! :<