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 \, y=2\pi x \Rightarrow dx=dy/(2\pi)}

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

Semantic latex: y = 2 \cpi x \Rightarrow dx = dy /(2 \cpi)

Confidence: 0

Mathematica

Translation:

Information

Symbol info

  • (LaTeX -> Mathematica) No translation possible for given token: Unknown relation. Cannot translate: \Rightarrow [\Rightarrow]

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

  • (LaTeX -> SymPy) No translation possible for given token: Unknown relation. Cannot translate: \Rightarrow [\Rightarrow]

Tests

Symbolic
Numeric

Maple

Translation:

Information

Symbol info

  • (LaTeX -> Maple) No translation possible for given token: Unknown relation. Cannot translate: \Rightarrow [\Rightarrow]

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Complete translation information:

{
  "id" : "FORMULA_6ae221277369d24f9ca1ea0ccb5b3ce8",
  "formula" : "y=2\\pi x \\Rightarrow dx=dy/(2\\pi)",
  "semanticFormula" : "y = 2 \\cpi x \\Rightarrow dx = dy /(2 \\cpi)",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) No translation possible for given token: Unknown relation. Cannot translate: \\Rightarrow [\\Rightarrow]"
        }
      }
    },
    "SymPy" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> SymPy) No translation possible for given token: Unknown relation. Cannot translate: \\Rightarrow [\\Rightarrow]"
        }
      }
    },
    "Maple" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Maple) No translation possible for given token: Unknown relation. Cannot translate: \\Rightarrow [\\Rightarrow]"
        }
      }
    }
  },
  "positions" : [ ],
  "includes" : [ "\\, y=2\\pi x \\Rightarrow dx=dy/(2\\pi)", "\\, 2\\pi" ],
  "isPartOf" : [ "\\, y=2\\pi x \\Rightarrow dx=dy/(2\\pi)" ],
  "definiens" : [ ]
}

Specify your own input