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上二心