Community Profile

photo

ken


Last seen: 2 years ago Active since 2022

Followers: 0   Following: 0

Programming Languages:
Python

Statistics

  • Thankful Level 2

View badges

Feeds

View by

Question


How to plot this function with the interval of [-2,2]?

2 years ago | 2 answers | 0

2

answers

Question


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 ago | 1 answer | 0

1

answer

Question


How to plot this equation?

2 years ago | 2 answers | 0

2

answers

Question


How to plot this equation if C is 4?

2 years ago | 2 answers | 0

2

answers

Question


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 ago | 1 answer | 0

1

answer

Question


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 ago | 1 answer | 0

1

answer

Question


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 ago | 1 answer | 0

1

answer