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 \hat{f}(s)=\int_1^\infty f(x)P_s(x)dx,\qquad -1\leq\Re(s)\leq 0 }

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

Semantic latex: \hat{f}(s) = \int_1^\infty f(x) \LegendrepolyP{s}@{x} \diff{x} , \qquad - 1 \leq \realpart@@{(s)} \leq 0

Confidence: 0.655523902109

Mathematica

Translation:

Information

Symbol info

  • (LaTeX -> Mathematica) No translation possible for given token: Accents are not supported.

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

  • (LaTeX -> SymPy) No translation possible for given token: Accents are not supported.

Tests

Symbolic
Numeric

Maple

Translation:

Information

Symbol info

  • (LaTeX -> Maple) No translation possible for given token: Accents are not supported.

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Complete translation information:

{
  "id" : "FORMULA_2faca451b47db4409540f0fc321b1646",
  "formula" : "\\hat{f}(s)=\\int_1^\\infty f(x)P_s(x)dx,\\qquad -1\\leq\\realpart(s)\\leq 0",
  "semanticFormula" : "\\hat{f}(s) = \\int_1^\\infty f(x) \\LegendrepolyP{s}@{x} \\diff{x} , \\qquad - 1 \\leq \\realpart@@{(s)} \\leq 0",
  "confidence" : 0.6555239021089977,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) No translation possible for given token: Accents are not supported."
        }
      }
    },
    "SymPy" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> SymPy) No translation possible for given token: Accents are not supported."
        }
      }
    },
    "Maple" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Maple) No translation possible for given token: Accents are not supported."
        }
      }
    }
  },
  "positions" : [ ],
  "includes" : [ "P_{n}", "P_s", "P", "-1" ],
  "isPartOf" : [ ],
  "definiens" : [ ]
}

Specify your own input