How do I code rearrange equation?

回答(1 个)

Use the isolate funciton. (The solve function is also an option.)
syms a t v_0 x_t x_0
Eqn = x_t - x_0 == v_0*t + a*t^2/2
Eqn = 
Eqn = isolate(Eqn, t)
Eqn = 

2 个评论

What about the second solution of the quadratic ?
Solve does give both
syms xt x0 v0 t a
eqn = xt-x0 == v0*t+1/2*a*t^2
eqn = 
St = solve(eqn,t)
St = 

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Physics 的更多信息

提问:

Ye
2022-11-1

评论:

2022-11-1

Community Treasure Hunt

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

Start Hunting!

Translated by