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 z^2y^{\prime\prime} + zy^\prime +(z^2-\nu^2)y = 0 .}

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

Semantic latex: z^2y^{\prime\prime} + zy^\prime +(z^2-\nu^2)y = 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

  • Bessel 's equation
  • solution of inhomogeneous form
  • anger
  • Weber function

Complete translation information:

{
  "id" : "FORMULA_2f97e5e1cc6d5281d4d1c9cae1601201",
  "formula" : "z^2y^{\\prime\\prime} + zy^\\prime +(z^2-\\nu^2)y = 0",
  "semanticFormula" : "z^2y^{\\prime\\prime} + zy^\\prime +(z^2-\\nu^2)y = 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" : 3,
    "sentence" : 0,
    "word" : 14
  } ],
  "includes" : [ "\\nu" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "Bessel 's equation",
    "score" : 0.722
  }, {
    "definition" : "solution of inhomogeneous form",
    "score" : 0.6859086196238077
  }, {
    "definition" : "anger",
    "score" : 0.6460746792928004
  }, {
    "definition" : "Weber function",
    "score" : 0.5988174995334326
  } ]
}

Specify your own input