function f = Legendre(y,k,x0)用勒让德多项式逼近已知函数 已知函数:y 逼近已知函数所需项数:k 逼近点的x坐标:x0 求得的勒让德逼近多项式或在x0处的逼近值f syms t;P(1:k+1) = t;P(1) = 1;P(2) = t;c(1:k+1) = 0.0;c(1)=int(subs(y,findsym(sym(y)),sym('t'...