FormulaLab
1.0.0
Formulalab正在开发中,现在不稳定!
FormulAlab是一个Python软件包,该软件包在数学上衍生了新公式,以公式搜索,并将您的项目代码连接到公式数据库(FD)。 FD是列出,参考,言论和组织所有公式集合的明智和高效方法。 FD可以与您想要的尽可能多的项目连接 - 在其中进行编辑和插入仅一次。 FD中的公式不必以不同的形式重写,一种形式就足够了,其余形式是由Formulalab得出的。例如, Area = Pi * radius^2 ,如果您要求radius ,Formulalab将为您解决它 - 在FD中无需重复,当您拥有许多方程时,它非常有方便且节省时间。
Formulalab取决于:
安装formulalab:
pip install FormulaLab >> > import FormulaLab as fl
>> > Physics_formulas = [ 'F = m*a' , 'v = a*t' ]
>> > phy_search = fl . FormulaSearch ( data = Physics_formulas )
>> > phy_search
ID Formula Args
0 1 f = m * a [ m , a , f ]
1 2 v = a * t [ a , v , t ]
# Now, say you want to derive F as a function of t
>> > Force = phy_search . derive ( 'F' , 't' )
>> > Force
[ m * v / t ]
# Now, you want to convert it to a python function
>> > Force_py = phy_search . function ( Force [ 0 ])
>> > Force_py ( m = 2 , v = 3 , t = 2 )
3.0
# Now, you want to find the the value of "t" in a direct search (no subtitution)
>> > phy_search . find ( 't' )
[ v / a ]
>> > phy_search . find ( 'a' )
[ F / m , v / t ]
# What if you want "a" as a function of "t" and "v", only in a direct search:
>> > phy_search . find ( 'a' , [ 't' , 'v' ])
[ v / t ]
# Now, you want to find `a` from the first equation that has ID=1
>> > phy_search . find ( 'a' , id = 1 )
[ f / m ]访问格式
Abdulaziz Alqasem
[email protected]
Formulalab在Sympy上二心