latex2sympy parses LaTeX math expressions and converts it into the
equivalent SymPy form.
## Installation
[ANTLR](http://www.antlr.org/) is used to generate the parser:
```
$ antlr4 PS.g4 -o gen
```
## Usage
In Python 2.7:
```python
from process_latex import process_sympy
process_sympy("\\frac{d}{dx} x^{2}")
# => "diff(x**(2), x)"
```
## Examples
|LaTeX|Image|Generated SymPy|
|-----|-----|---------------|
|`x^{3}`|| `x**3`|
|`\frac{d}{dx} |t|x`||`Derivative(x*Abs(t), x)`|
|`\sum_{i = 1}^{n} i`||`Sum(i, (i, 1, n))`|
|`\int_{a}^{b} \frac{dt}{t}`||`Integral(1/t, (t, a, b))`|
|`(2x^3 - x + z)|_{x=3}`||`z + 51`
## Contributing
Contributors are welcome! Feel free to open a pull request
or an issue.
Metadata
Release files for latex2sympy3 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| latex2sympy3-0.1.1.tar.gz | 6.1 kB | Without provenance | Details |
Release files / latex2sympy3-0.1.1.tar.gz
| Download URL | latex2sympy3-0.1.1.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71409084bdd36b500f29fda198e942c799b7e0b3fa50915accf3b5d0abdf5335
|
|
BLAKE2b-256 checksum How to use checksums |
f828b5ae4512fa8febc1e5e0765af2553706def9854fe080b978f9d653057b89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for latex2sympy3 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.