Please help me to solve two nonlinear algebraic equations
Show older comments
eq1 = b5*L1^2 + (b9 + b7)*L1 + b6*L2^2 + b10*L2 + b8 = 0:
eq2 = b27*L1^4 - b32*L1^3 + b33*L1^2 - b34*L1 ...
+ b28*L2^4 - b35*L2^3 + b36*L2^2 - b37*L2 ...
+ (b39 - b38 + b30 - b29 - b31) = 0:
%Solve the system for L1 and L2
solutions = solve({eq1, eq2}, {L1, L2}):
Answers (1)
syms L1 L2
eq1 = b5*L1^2 + (b9 + b7)*L1 + ...
b6*L2^2 + b10*L2 + b8 == 0;
eq2 = b27*L1^4 - b32*L1^3 + b33*L1^2 - b34*L1 + ...
b28*L2^4 - b35*L2^3 + b36*L2^2 - b37*L2 + ...
(b39 - b38 + b30 - b29 - b31) == 0;
% Solve the system for L1 and L2
solutions = vpasolve([eq1, eq2], [L1, L2])
5 Comments
Do you have a script names 'sym' somewhere? You shouldn't.
which -all sym
What do you get when you type
which -all sym
in the command editor ?
Maybe this answer helps:
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!