Info

This question is closed. Reopen it to edit or answer.

how to find the error between this two equation?

1 view (last 30 days)
chuen kai ong
chuen kai ong on 17 Nov 2020
Closed: MATLAB Answer Bot on 20 Aug 2021
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
chuen kai ong
chuen kai ong on 17 Nov 2020
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

Answers (1)

KSSV
KSSV on 17 Nov 2020

Products

Community Treasure Hunt

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

Start Hunting!