A library and interface for generating LaTeX representations of equations.
Project description
certainPY
Be certain with your uncertainty!
certainPY is a library/webapp for evaluating equations utilizing measured data points. It produces answers with automatic error propagation, and allows for the generation of its evaluation's steps as ready-to-use LaTeX equations.
The library for doing these calculations and LaTeX productions is found under /latex_extension, which expands upon the MeasuredData class of the PhysicsTools library to allow for all of this extra functionality. But worry not-- no knowledge of Python nor of how to use this library is needed to reap its benefits! Using Google Gemini, we have created a frontend which can parse any arbitrarily-provided equation and variables, producing valid code which is evaluated and clearly displayed, all through the webapp frontend.
All the code for interfacing with Gemini is located in /llm_interface, with the rules for parsing in the json_arsing_rules.txt file. Gemini parses the expression provided to create a JSON file containing a classical Python equation and a list of variables. By ensuring Gemini only handles technologies it knows well, we reduce the risk of incorrect parsings to almost zero. Once the parsing is done, the evaluation is done fully in good-old handwritten code, ensuring that all calculations are as correct as any calculator could get them. Thus, one can worry free have the convenience of AI, paired with the reliability of predefined computation.
Connecting the two is our Flask application and glue scripts, found in the root directory of this repository, along with parts in the static/ and templates/ directories.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file certainpy-0.0.1.tar.gz.
File metadata
- Download URL: certainpy-0.0.1.tar.gz
- Upload date:
- Size: 23.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04c55fa8cefd0bd2dbdd6f7c1c94ec86f843ea7b62f7d56b43f1d1888f027a81
|
|
| MD5 |
1f70c8261b4e6d745ec473fc649fd202
|
|
| BLAKE2b-256 |
22f02a0c4f1d1a29585e2534e44a1eccffd43407e6b0c43f0a29ff0f87d0621b
|
File details
Details for the file certainpy-0.0.1-py3-none-any.whl.
File metadata
- Download URL: certainpy-0.0.1-py3-none-any.whl
- Upload date:
- Size: 24.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
210306169ae8ac971513099377fbc507fbda1f6be094fc29caaed5cc9b66e80f
|
|
| MD5 |
a6962aa494deb76263ea5a556b0c0186
|
|
| BLAKE2b-256 |
cae202defe78dfbb43cf29fe51344d1764b1ee953fff08ff962f009af4d590a9
|