Hello,
I have been learning to use Symbolic Equations in MATLAB. I stumbled upon this question of writing Einstein's Mass Energy Equation in MATLAB. I tried the following code.
syms E m c
lhs = E
rhs = m * c^2
EinsteinEquation = lhs == rhs
But the output has been E = c^2 * m.
Why does this occur?
How to display the equation as I want it to be?

 Akzeptierte Antwort

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2020a

Tags

Gefragt:

JPS
am 12 Sep. 2020

Beantwortet:

am 12 Sep. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by