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 u'' - 2xu' + 2\lambda u = 0,}

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

Semantic latex: u'' - 2xu' + 2\lambda u = 0

Confidence: 0

Mathematica

Translation:

Information

Symbol info

  • (LaTeX -> Mathematica) The input LaTeX is invalid: Primes can only be translated behind semantic macros (differentiation primes) but not in other places.

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

  • (LaTeX -> SymPy) The input LaTeX is invalid: Primes can only be translated behind semantic macros (differentiation primes) but not in other places.

Tests

Symbolic
Numeric

Maple

Translation:

Information

Symbol info

  • (LaTeX -> Maple) The input LaTeX is invalid: Primes can only be translated behind semantic macros (differentiation primes) but not in other places.

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Description

  • physicists ' Hermite equation
  • constant
  • example
  • first kind
  • form
  • general solution
  • physicists ' hermite
  • physicists ' Hermite polynomial
  • second kind

Complete translation information:

{
  "id" : "FORMULA_b40fd6ad330361be022d5af7c67a955c",
  "formula" : "u'' - 2xu' + 2\\lambda u = 0",
  "semanticFormula" : "u'' - 2xu' + 2\\lambda u = 0",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) The input LaTeX is invalid: Primes can only be translated behind semantic macros (differentiation primes) but not in other places."
        }
      }
    },
    "SymPy" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> SymPy) The input LaTeX is invalid: Primes can only be translated behind semantic macros (differentiation primes) but not in other places."
        }
      }
    },
    "Maple" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Maple) The input LaTeX is invalid: Primes can only be translated behind semantic macros (differentiation primes) but not in other places."
        }
      }
    }
  },
  "positions" : [ {
    "section" : 5,
    "sentence" : 6,
    "word" : 9
  } ],
  "includes" : [ "\\lambda", "u" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "physicists ' Hermite equation",
    "score" : 0.722
  }, {
    "definition" : "constant",
    "score" : 0.6687181434333315
  }, {
    "definition" : "example",
    "score" : 0.6687181434333315
  }, {
    "definition" : "first kind",
    "score" : 0.6687181434333315
  }, {
    "definition" : "form",
    "score" : 0.6687181434333315
  }, {
    "definition" : "general solution",
    "score" : 0.6687181434333315
  }, {
    "definition" : "physicists ' hermite",
    "score" : 0.6687181434333315
  }, {
    "definition" : "physicists ' Hermite polynomial",
    "score" : 0.6687181434333315
  }, {
    "definition" : "second kind",
    "score" : 0.6687181434333315
  } ]
}

Specify your own input