Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Trapezium Method for nonlinear equations%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
h=0.0001;
y=1;
z=-1;
error=1;
f=zeros(1,99999);
g=f;
i=1;
while error>0.00001
a=y;
b=z;
w=y;
for j=1:1:10000
w=y+h*b+((h^2)/4)*(2*w^3+2*y^3);
end
y=y+h*z+((h^2)/2)*(w^3+y^3);
z=z+(h/2)*(2*y^3+2*a^3);
error=abs(y-a);
f(i)=y;
g(i)=z;
i=i+1;
disp(error);
end
tdnpf schrieb:Hübsch, nicht?