Community Profile

photo

Qiuyi Wei


2 total contributions since 2019

Contributions in
View by

Question


Question about Taylor series
I am trying to write a code that output a scalor apporximation for function "sin(x)" that have an error less than 0,05. I try to...

8 mois ago | 1 answer | 0

1

answer

Question


Can anyone help me with this code? I want to find the x(n) that has an Error smaller than Criteria. The code seems never stop and I don't know what's wrong with my code. Thanks
Criteria = 2*rand; y = @(x) 0.1.*x.^4-2.*x.^3+8.*x.^2+10.*cos(x); dydx = @(x) 0.4.*x.^3-6.*x.^2+16.*x-10.*sin(x); x1 = 5; ...

8 mois ago | 1 answer | 0

1

answer