Find the solution of Problem 2.8 using Newton-Raphson method with the starting value of as 90 degrees and =0.001
Please upload the program using VBA or Matlab
`Hey,
Note: Brother if you have any queries related the answer please do comment. I would be very happy to resolve all your queries.
clc%clears screen
clear all%clears history
close all%closes all files
format long
a=1;
b=2;
c=4;
d=5;
th2=30;
k1=d/a;
k2=d/c;
k3=(a^2-b^2+c^2+d^2)/(2*a*c);
f=@(x) k1*cosd(x)-k2*cosd(th2)+k2-cosd(th2-x);
g=@(x) - sind(th2 - x) - k1*sind(x);
x0=90;
for i=1:100
x0=x0-f(x0)/g(x0);
if(abs(f(x0))<0.001)
break;
end
end
fprintf('Theta4 = %f degrees\n',x0);
Kindly revert for any queries
Thanks.
Find the solution of Problem 2.8 using Newton-Raphson method with the starting value of as 90...