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 \vec x'(t) = (-a\sin t,\, b\cos t)^\mathsf{T} \quad \rightarrow \quad m = -\frac{b}{a}\cot t\quad \rightarrow \quad \cot t = -\frac{ma}{b}.}

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

Semantic latex: \vec x'(t) = (-a\sin t, b\cos t)^\mathsf{T} \quad \rightarrow \quad m = -\frac{b}{a}\cot t\quad \rightarrow \quad \cot t = -\frac{ma}{b}

Confidence: 0

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_dcb317b5ba55d15e9571607bca487442",
  "formula" : "\\vec x'(t) = (-a\\sin t, b\\cos t)^\\mathsf{T} \\quad \\rightarrow \\quad m = -\\frac{b}{a}\\cot t\\quad \\rightarrow \\quad \\cot t = -\\frac{ma}{b}",
  "semanticFormula" : "\\vec x'(t) = (-a\\sin t, b\\cos t)^\\mathsf{T} \\quad \\rightarrow \\quad m = -\\frac{b}{a}\\cot t\\quad \\rightarrow \\quad \\cot t = -\\frac{ma}{b}",
  "confidence" : 0.0,
  "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" : [ "b", "a", "\\cos t", "m", "t", "x", "\\sin t" ],
  "isPartOf" : [ ],
  "definiens" : [ ]
}

Specify your own input