Skip to main content

FormulaLab

FormulaLab is a package that allows you to derive new formulas, search in formulas database, and mange your formulas database to connect it effeciently to your project code.

Installation

FormulaLab depends on:

  • python +3.4
  • Sympy
  • Pandas

To install FormulaLab:

$ pip install FormulaLab

Usages

>>> import FormulaLab as fl

>>> Physics_formulas = ['F = m * a', 'v = a * t']
>>> phy_search = fl.FormulaSearch(data=Physics_formulas)

# 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 = fl.function(Force)
>>> 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'])    # Also you can say here: phy_search.get('a', 't') 
[v/t] 

Tutorals and documentations

visit FormulaLab

Author

Abdulaziz Alqasem Aziz_Alqasem@hotmail.com

References

FormulLab is bult upon SymPy

Metadata

Release files for FormulaLab 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for FormulaLab 0.1.0
File Size Uploaded
FormulaLab-0.1.0.tar.gz 11.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for FormulaLab 0.1.0
File Interpreter ABI Platform
FormulaLab-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 24.1 kB

Release files / FormulaLab-0.1.0.tar.gz

Download URL FormulaLab-0.1.0.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
57cc9d7f49f981351f520b5781558981e97b90ff8c09f4ce4d68775c086bab18
BLAKE2b-256 checksum
How to use checksums
3795b301ad2d7659a2c8ac1fd3e652a8deda36b98a5d697bf31b774dd61b1cf5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.7

Release files / FormulaLab-0.1.0-py3-none-any.whl

Download URL FormulaLab-0.1.0-py3-none-any.whl
Size 12.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
704bf710bbfd6ecd4afbe8aeaf432cf2b7d3d1e81c43883d150d5cb9d07b2c74
BLAKE2b-256 checksum
How to use checksums
834eecea52d67c3a7dba902c2997fd992fa56572f13304af886f6de24d08a884
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.7

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page