How to solve two complex equations by one another?

6 vues (au cours des 30 derniers jours)
Julia de Lange
Julia de Lange le 26 Juil 2018
Commenté : Julia de Lange le 27 Juil 2018
I'm trying to solve two complex equations by one another, to determine a scaling factor "m". Basically I want to define a relationship between the two equations, in terms of one single number. This is what I have so far, however it keeps returning Empty sym. Can anyone advise? Thank you!
sym x
m = (88140000/x^(39/50) + 42590)/(12700000000000000/x^(103/25) + 575700)
solve(m,x)
end
  3 commentaires
Julia de Lange
Julia de Lange le 26 Juil 2018
What is your question?
Ben Frankel
Ben Frankel le 26 Juil 2018
I don't see any equations. What exactly are you expecting MATLAB to do from that sequence of commands?

Connectez-vous pour commenter.

Réponse acceptée

Ajey Pandey
Ajey Pandey le 26 Juil 2018
I think you're calling m incorrectly. To set an equation, you need an == AND an =. The former defines the equation, the latter gives your equation a variable name.
Try this:
x = sym('x')
eqn = m == (88140000/x^(39/50) + 42590)/(12700000000000000/x^(103/25) + 575700)
result = solve(eqn,x)
I'm not sure if this will return the answer you want, but it'll return a symbolic expression.
  1 commentaire
Julia de Lange
Julia de Lange le 27 Juil 2018
Thank you for your response! I'm looking for a numerical value for m, but don't think its possible.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Mathematics dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by