how to find the error between this two equation?

t=zeros(100,1);
y=zeros(100,1);
t(1)=1;
y(1)=1;
for i=1:100
t(i+1)=t(i)+0.01;
y(i+1)=y(i)+0.01*(-(sin((y(i)^2) + 2*t(i))) + 1/(2*sqrt(t(i))) + sin(3*t(i)));
end
w(1)=1;
z(1)=1;
for i=1:100
w(i+1)=w(i)+0.01;
z(i+1)=sqrt(w(i+1));
end

1 Comment

hi guys, how to find the error between this two equation?
i should use the formula to find the error. MSE=sqrt(h)*(exact-num)^2

This question is closed.

Products

Asked:

on 17 Nov 2020

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!