Emmmail me the answer for more paid work Only if you know S
Emmmail me the answer for more paid work Only if you know:
------------------------------------------------
Skin123@yahoo.com
------------------------------------------------
Question:
----------------
Can You Write a scheme functions eval-poly that Take a polynmail in abstact syntax form and a numeric Value and ecaluate the poolynomial with value?
I have more queations same kind i payy 6$ for each one. email me!!!!!!
Skin123 at Yahooooo Dot Com
Solution
y = polyval(p,x)
[y,delta] = polyval(p,x,S)
y = polyval(p,x,[],mu)
[y,delta] = polyval(p,x,S,mu)
Description
y = polyval(p,x) returns the value of a polynomial of degree n evaluated at x. The input argument p is a vector of length n+1 whose elements are the coefficients in descending powers of the polynomial to be evaluated.
y = p1xn + p2xn–1 + … + pnx + pn+1
x can be a matrix or a vector. In either case, polyval evaluates p at each element of x.
[y,delta] = polyval(p,x,S) uses the optional output structure S generated by polyfit to generate error estimates delta. delta is an estimate of the standard deviation of the error in predicting a future observation at x by p(x). If the coefficients in p are least squares estimates computed by polyfit, and the errors in the data input to polyfit are independent, normal, and have constant variance, then y±delta contains at least 50% of the predictions of future observations at x.
y = polyval(p,x,[],mu) or [y,delta] = polyval(p,x,S,mu) use ˆx=(x1)/2 in place of x. In this equation, 1=mean(x) and 2=std(x). The centering and scaling parameters mu = [1,2] are optional output computed by polyfit.
Examples
