3. Write an operator that computes a polynomial at some point. (That is, it substitutes a value for x.) ($$) : (Num a, Eq a) => Poly a -> a -> a For example: > P [-1,0,1] $$ 3 > P [12] $$ e 12 > P...


3. Write an operator that computes a polynomial at some point. (That is, it substitutes a value for x.)<br>($$) : (Num a, Eq a) => Poly a -> a -> a<br>For example:<br>> P [-1,0,1] $$ 3<br>> P [12] $$ e<br>12<br>> P [e,0,0,1] s$ (-2)<br>-8<br>Your implementations of scale and $$ should have this property: scale n p $$ x == n<br>(p $$ x)<br>

Extracted text: 3. Write an operator that computes a polynomial at some point. (That is, it substitutes a value for x.) ($$) : (Num a, Eq a) => Poly a -> a -> a For example: > P [-1,0,1] $$ 3 > P [12] $$ e 12 > P [e,0,0,1] s$ (-2) -8 Your implementations of scale and $$ should have this property: scale n p $$ x == n (p $$ x)

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here