LaTeX to CAS translator

Jump to navigation Jump to search

This mockup demonstrates the concept of TeX to Computer Algebra System (CAS) conversion.

The demo-application converts LaTeX functions which directly translate to CAS counterparts.

Functions without explicit CAS support are available for translation via a DRMF package (under development).

The following LaTeX input ...

{\displaystyle \operatorname{li}(e^u) = \hbox{Ei}(u) = \gamma + \ln |u| + \sum_{n=1}^\infty {u^{n}\over n \cdot n!} \quad \text{ for } u \ne 0 \; , }

... is translated to the CAS output ...

Semantic latex: \operatorname{li}(\expe^u) ={Ei}(u) = \gamma + \ln|u|+ \sum_{n=1}^\infty{u^{n}\over n \cdot n!} \quad for u \ne 0 ,

Confidence: 0

Mathematica

Translation:

Information

Symbol info

  • (LaTeX -> Mathematica) Unknown LaTeX Command: Reached unknown latex-command \over [\over]

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

  • (LaTeX -> SymPy) Unknown LaTeX Command: Reached unknown latex-command \over [\over]

Tests

Symbolic
Numeric

Maple

Translation:

Information

Symbol info

  • (LaTeX -> Maple) Unknown LaTeX Command: Reached unknown latex-command \over [\over]

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Complete translation information:

{
  "id" : "FORMULA_00f19997464bf33fe11210db0c288400",
  "formula" : "\\operatorname{li}(e^u) = {Ei}(u) = \n\\gamma + \\ln |u| + \\sum_{n=1}^\\infty {u^{n}\\over n \\cdot n!} \n\\quad \\text{ for } u \\ne 0  ,",
  "semanticFormula" : "\\operatorname{li}(\\expe^u) ={Ei}(u) = \\gamma + \\ln|u|+ \\sum_{n=1}^\\infty{u^{n}\\over n \\cdot n!} \\quad for u \\ne 0 ,",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) Unknown LaTeX Command: Reached unknown latex-command \\over [\\over]"
        }
      }
    },
    "SymPy" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> SymPy) Unknown LaTeX Command: Reached unknown latex-command \\over [\\over]"
        }
      }
    },
    "Maple" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Maple) Unknown LaTeX Command: Reached unknown latex-command \\over [\\over]"
        }
      }
    }
  },
  "positions" : [ ],
  "includes" : [ "\\operatorname{li}(e^u) = \\hbox{Ei}(u) = \\gamma + \\ln |u| + \\sum_{n=1}^\\infty {u^{n}\\over n \\cdot n!} \\quad \\text{ for } u \\ne 0 \\;" ],
  "isPartOf" : [ ],
  "definiens" : [ ]
}

Specify your own input