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 |a|<1;\Re(s)<0 ;z\notin (-\infty,0) }

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

Semantic latex: |a|<1;\realpart(s)<0 ;z\notin (-\infty,0)

Confidence: 0

Mathematica

Translation:

Information

Symbol info

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

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

  • (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \realpart [\realpart]

Tests

Symbolic
Numeric

Maple

Translation:

Information

Symbol info

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

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Complete translation information:

{
  "id" : "FORMULA_21c0d08ee78af97e5acf8b4d25449702",
  "formula" : "|a|<1;\\realpart(s)<0 ;z\\notin (-\\infty,0)",
  "semanticFormula" : "|a|<1;\\realpart(s)<0 ;z\\notin (-\\infty,0)",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) No translation possible for given token: Unknown relation. Cannot translate: \\notin [\\notin]"
        }
      }
    },
    "SymPy" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \\realpart [\\realpart]"
        }
      }
    },
    "Maple" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Maple) No translation possible for given token: Unknown relation. Cannot translate: \\notin [\\notin]"
        }
      }
    }
  },
  "positions" : [ ],
  "includes" : [ "a", "|a|<1;\\Re(s)<0 ;z\\notin (-\\infty,0)", "z", "s" ],
  "isPartOf" : [ "|a|<1;\\Re(s)<0 ;z\\notin (-\\infty,0)" ],
  "definiens" : [ ]
}

Specify your own input