Skip to content

Parse LaTeX math expressions into python lambda function.

License

Notifications You must be signed in to change notification settings

antoniomf97/latex2lambda

 
 

Repository files navigation

latex2lambda

Table of Contents

  1. Description
  2. Features
  3. Installation
  4. Usage
  5. Contributing
  6. Authors
  7. License
  8. Acknowledgments
  9. Insights

🚧 under construction 🚧

Description

The latex2lambda parses LaTeX mathematical expressions into the correspondent python lambda function. It is adapted from latex2sympy2 by OrangeX4, which is an adaptation from augustt198/latex2sympy and purdue-tlt / latex2sympy.

This project is a part of the Lion Of Graphs project, is an application that aims to generate any kind of graphs, that can be highly configurated its the users.

ANTLR is used to generate the parser.

🚧 under construction 🚧

Features

  • Arithmetic: Add (+), Sub (-), Dot Mul (·), Cross Mul (×), Frac (/), Power (^), Abs (|x|), Sqrt (√), etc...
  • Alphabet: a - z, A - Z, α - ω, Subscript (x_1), Accent Bar(ā), etc...
  • Common Functions: gcd, lcm, floor, ceil, max, min, log, ln, exp, sin, cos, tan, csc, sec, cot, arcsin, sinh, arsinh, etc...
  • Funcion Symbol: f(x), f(x-1,), g(x,y), etc...
  • Calculous: Limit ($lim_{n\to\infty}$), Derivation ($\frac{d}{dx}(x^2+x)$), Integration ($\int xdx$), etc...
  • Linear Algebra: Matrix, Determinant, Transpose, Inverse, Elementary Transformation, etc...
  • Other: Binomial...

NOTICE: It will do some irreversible calculations when converting determinants, transposed matrixes and elementary transformations...

Installation

🚧 under construction 🚧

Usage

🚧 under construction 🚧

Contributing

If you want to add a new grammar, you can fork the code from OrangeX4/latex2sympy.

🚧 under construction 🚧

Authors


luisferreira32

Mr Toino

License

GNU General Public License © 2023. See source reference.

Acknowledgments

🚧 under construction 🚧

Insights

Alt

About

Parse LaTeX math expressions into python lambda function.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.4%
  • ANTLR 2.8%
  • Shell 0.8%