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 \left (1-x^2 \right )y'' + ( \beta-\alpha - (\alpha + \beta + 2)x )y' + n(n+\alpha+\beta+1) y = 0.}

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

Semantic latex: (1 - x^2) y ' ' +(\beta - \alpha -(\alpha + \beta + 2) x) y ' + n(n + \alpha + \beta + 1) 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

  • solution of the second order linear homogeneous differential equation
  • Jacobi polynomial

Complete translation information:

{
  "id" : "FORMULA_643faf34fb9ce455fa62652afb937fb3",
  "formula" : "\\left (1-x^2 \\right )y'' + ( \\beta-\\alpha - (\\alpha + \\beta + 2)x )y' + n(n+\\alpha+\\beta+1) y = 0",
  "semanticFormula" : "(1 - x^2) y ' ' +(\\beta - \\alpha -(\\alpha + \\beta + 2) x) y ' + n(n + \\alpha + \\beta + 1) 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" : 8,
    "sentence" : 0,
    "word" : 15
  } ],
  "includes" : [ "n + \\alpha + \\beta", "n", "x" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "solution of the second order linear homogeneous differential equation",
    "score" : 0.722
  }, {
    "definition" : "Jacobi polynomial",
    "score" : 0.6859086196238077
  } ]
}

Specify your own input