千里马如何重新安排条款?
Maxima how to re-arrange terms?
这在 Maxima 中应该非常简单:我有这个等式 75.0*R+0.225*C=105
如何将其重新表达为 R?
换句话说,如何让 Maxima 向我展示 R= (105-0.225*C)/75
?
@RobertDodier 在评论中写道,人们使用 solve
来做到这一点。
(%i1) 75.0*R+0.225*C = 105
(%o1) 75.0*R+0.225*C = 105
(%i2) solve(%,R)
rat: replaced 0.225 by 9/40 = 0.225
rat: replaced 75.0 by 75/1 = 75.0
(%o2) [R = -(3*C-1400)/1000]
(%i3) %[1]
(%o3) R = -(3*C-1400)/1000
(%o3) R = -(3*C-1400)/1000
(%i4) %,numer
(%o4) R = -0.001*(3*C-1400)
(%i5) %,expand
(%o5) R = 1.4-0.003*C
这在 Maxima 中应该非常简单:我有这个等式 75.0*R+0.225*C=105
如何将其重新表达为 R?
换句话说,如何让 Maxima 向我展示 R= (105-0.225*C)/75
?
@RobertDodier 在评论中写道,人们使用 solve
来做到这一点。
(%i1) 75.0*R+0.225*C = 105
(%o1) 75.0*R+0.225*C = 105
(%i2) solve(%,R)
rat: replaced 0.225 by 9/40 = 0.225
rat: replaced 75.0 by 75/1 = 75.0
(%o2) [R = -(3*C-1400)/1000]
(%i3) %[1]
(%o3) R = -(3*C-1400)/1000
(%o3) R = -(3*C-1400)/1000
(%i4) %,numer
(%o4) R = -0.001*(3*C-1400)
(%i5) %,expand
(%o5) R = 1.4-0.003*C