ken
Followers: 0 Following: 0
Programming Languages:
Python
Python
Feeds
提问
Use the bisection method to approximate the first negative solution, the negative root that is closest to the origin. The accuracy must be of the order 10−4.
the given bisection code. and the given equation() function [c, n, err] = bisection_method(f, a, b, tol, N) c = []; n...
2 years 前 | 1 个回答 | 0
1
个回答提问
How to find first negative solution with the bisection method
f(x) = x + 1 −2 sin(πx) = 0 How to find first negative solution with the given bisection method function [c, n, err] = Bisect...
2 years 前 | 1 个回答 | 0
1
个回答提问
How to plot the y and t?
a = 0; b = 10; h = 10^-3; N = (b-a)/h; alpha = 1; f = @(x,y) 1/y^3; function [y,t] = rk4(f,a,b,alpha,N) t = []; y = ...
2 years 前 | 1 个回答 | 0
1
个回答提问
return column vector (t(i+1) & y(i+1)) instead of row vector
function [y,t] = euler_timestep(f,t0,tf,alpha,N) h=(tf-t0)/N; t(1)=t0; y(1)=alpha; for i=1:N t(i+1)=t(i)+h; ...
2 years 前 | 1 个回答 | 0