Solving a non-linear system of three equations (MATLAB)

I am trying to solve the following system of equations:

{a*[1+b*(5+c)]}^(-1/2) = 2388;

{a*[1+b*(5+c)]}^(-1/2) = 2633;

{a*[1+b*(5+c)]}^(-1/2) = 2763;

for which I need to get the values of a, b and c. Can anyone advise on how to proceed? I'm not sure which MATLAB function to use, i tried a normal "solve" as

syms x y z eqn1 = (x*(1+y*(5+z)))^(-1/2) == 2388; eqn2 = (x*(1+y*(5+z)))^(-1/2) == 2633; eqn3 = (x*(1+y*(5+z)))^(-1/2) == 2763; solutions = solve([eqn1 eqn2 eqn2],(x,y,z)); 

but it clearly doesn't work. Any suggestions?

1

1 Answer

The first issue is what @AnderBiguri already mentioned: The same expression cannot simultaniously have multiple values, so there is no hope of actually finding a solution.

The second part is that your syntax is incorrect: Lists/Arrays must be written with square brackets instead of parenthesis, as the error message that you get by running this is probably gonna tell you. I recommend reading the example from the documentation.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like