SymPy: How to return an expression in terms of other [removed]s)?

前端 未结 3 1485
無奈伤痛
無奈伤痛 2021-01-03 05:40

I\'m fairly new to SymPy and have what might be a basic question. Or I might simply be misinterpreting how SymPy is supposed to be used.

Is there a way to create an

3条回答
  •  旧巷少年郎
    2021-01-03 05:58

    there's also quantities:

    In [1]: from quantities import *
    In [2]: v = 1397*m / (3125*s)
    In [3]: v
    Out[3]: array(0.44704) * m/s
    In [8]: v.units = mile/hour
    In [9]: v
    Out[9]: array(1.0) * mi/h
    

提交回复
热议问题