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 \frac{d^2y}{dx^2} + (A+B\weierp(x))y = 0, }

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

Semantic latex: \deriv [2]{y}{x} +(A + B \weierp(x)) y = 0

Confidence: 0

Mathematica

Translation:

Information

Symbol info

  • (LaTeX -> Mathematica) Unknown LaTeX Command: Reached unknown latex-command \weierp [\weierp]

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

  • (LaTeX -> SymPy) Unknown LaTeX Command: Reached unknown latex-command \weierp [\weierp]

Tests

Symbolic
Numeric

Maple

Translation:

Information

Symbol info

  • (LaTeX -> Maple) Unknown LaTeX Command: Reached unknown latex-command \weierp [\weierp]

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Description

  • constant
  • elliptic function
  • Weierstrass
  • Lamé 's equation

Complete translation information:

{
  "id" : "FORMULA_1eabadefcaa3e05cf41a894f3c7f6266",
  "formula" : "\\frac{d^2y}{dx^2} + (A+B\\weierp(x))y  = 0",
  "semanticFormula" : "\\deriv [2]{y}{x} +(A + B \\weierp(x)) y = 0",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) Unknown LaTeX Command: Reached unknown latex-command \\weierp [\\weierp]"
        }
      }
    },
    "SymPy" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> SymPy) Unknown LaTeX Command: Reached unknown latex-command \\weierp [\\weierp]"
        }
      }
    },
    "Maple" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Maple) Unknown LaTeX Command: Reached unknown latex-command \\weierp [\\weierp]"
        }
      }
    }
  },
  "positions" : [ {
    "section" : 1,
    "sentence" : 0,
    "word" : 4
  } ],
  "includes" : [ "A", "B" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "constant",
    "score" : 0.7125985104912714
  }, {
    "definition" : "elliptic function",
    "score" : 0.7125985104912714
  }, {
    "definition" : "Weierstrass",
    "score" : 0.7125985104912714
  }, {
    "definition" : "Lamé 's equation",
    "score" : 0.6859086196238077
  } ]
}

Specify your own input