clear clc
syms x y; f = input('Enter the slope : '); n = input('Enter the value to find'); x0 = input('Enter the initial value of x:'); y0 = input('Enter the initial value of y: '); h = (n - x0)/10; x1 = x0; y1 = y0; for i=1:10 y1 = y0 + h * subs(f,{x,y},{(x0+1/2*h),(y0+1/2*h*subs(f,{x,y},{x0,y0}))}) x0 = x0 + h y0 = y1; end
|
No feedbacks found. Be the first to respond and make money from revenue sharing program.
|