Formulalab ist in der Entwicklung und jetzt nicht stabil!
Formulalab ist ein Python -Paket, das mathematisch neue Formeln abgeleitet , in Formeln gesucht und Ihren Projektcode mit der Formelndatenbank (FD) verbindet . FD ist eine intelligente und effiziente Methode, um alle Ihre Sammlungen von Formeln an einem Ort zu verweisen, zu beachten und zu organisieren. FD kann mit so vielen Projekten in Verbindung gebracht werden, wie Sie möchten - wo Bearbeiten und Einfügen nur einmal für alle durchgeführt werden. Die Formeln in der FD müssen nicht in verschiedenen Formen neu geschrieben werden, eine Form ist ausreichend und der Rest wird durch Formeln gestört. Zum Beispiel Area = Pi * radius^2 Wenn Sie nach dem radius fragen, löst Formulalab ihn für Sie - keine Wiederholung in der FD, die sehr überzeugend und zeitsparend ist, wenn Sie viele Gleichungen haben.
Formulalab hängt von:
So installieren Sie 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 ]Besuchen Sie Formulalab
Abdulaziz Alqasem
[email protected]
Formulalab ist bult auf Sympy