Solve for v2 and phi m11cos51 m2v2cosphi 04 m1 02 m2 03S
Solve for v2 and phi:
m1*1[cos(51]) + m2*v2[cos(phi]) = 0.4
m1 = 0.2
m2 = 0.3
Solution
Solve for v2 and phi:
m1*1[cos(51]) + m2*v2[cos(phi]) = 0.4
m1 = 0.2, m2 = 0.3
Answer....
m1*1[cos(51]) + m2*v2[cos(phi]) = 0.4
put m1 and m2 values in the above equation
0.2*1[cos(51]) + 0.3*v2[cos(phi]) = 0.4
2cos(51)+3v2cos(phi) = 4
This can be written as
2cos(51)+3*v2*cos(phi) - 4 = 0
2*0.7421+3*v2*cos(phi) - 4 = 0
1.484+3*v2*cos(phi) - 4 = 0
3*v2*cos(phi) - 2.515 = 0
v2*cos(phi) - 0.8385 = 0
This is a non linear function, so a solution using MATLAB can be taken which involves the solver fsolve
v2 and phi are unknowns and there is only equation to solve, so with the initial guess trial and error is taken up to find both
MATLAB code:
%function file chegg1.m
function F = chegg1(x)
v2 = x(1);
phi = x(2);
F = [v2*cos(phi) - 0.8385]
----------------
%Script file
clc
clear all
xinit = [0.5,90]
[x, fval] = fsolve (\'chegg1\',xinit)
---------------------------------------------
Answer
x = 1.063259491176315 88.626840985937108
which shows v2 and phi that is
v2 = 1.063259491176315 and phi = 88.626840985937108
for which the function value is
fval = 3.786970736996409e-013
![Solve for v2 and phi: m1*1[cos(51]) + m2*v2[cos(phi]) = 0.4 m1 = 0.2 m2 = 0.3SolutionSolve for v2 and phi: m1*1[cos(51]) + m2*v2[cos(phi]) = 0.4 m1 = 0.2, m2 = Solve for v2 and phi: m1*1[cos(51]) + m2*v2[cos(phi]) = 0.4 m1 = 0.2 m2 = 0.3SolutionSolve for v2 and phi: m1*1[cos(51]) + m2*v2[cos(phi]) = 0.4 m1 = 0.2, m2 =](/WebImages/9/solve-for-v2-and-phi-m11cos51-m2v2cosphi-04-m1-02-m2-03s-1000489-1761515324-0.webp)
![Solve for v2 and phi: m1*1[cos(51]) + m2*v2[cos(phi]) = 0.4 m1 = 0.2 m2 = 0.3SolutionSolve for v2 and phi: m1*1[cos(51]) + m2*v2[cos(phi]) = 0.4 m1 = 0.2, m2 = Solve for v2 and phi: m1*1[cos(51]) + m2*v2[cos(phi]) = 0.4 m1 = 0.2 m2 = 0.3SolutionSolve for v2 and phi: m1*1[cos(51]) + m2*v2[cos(phi]) = 0.4 m1 = 0.2, m2 =](/WebImages/9/solve-for-v2-and-phi-m11cos51-m2v2cosphi-04-m1-02-m2-03s-1000489-1761515324-1.webp)