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 \Re(a)>0\wedge\Re(s)<0\wedge z<1}

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

Semantic latex: \realpart(a)>0\wedge\realpart(s)<0\wedge z<1

Confidence: 0

Mathematica

Translation:

Information

Symbol info

  • (LaTeX -> Mathematica) An unknown or missing element occurred: Cannot translate operation \wedge

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) An unknown or missing element occurred: Cannot translate operation \wedge

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Complete translation information:

{
  "id" : "FORMULA_eb53b1d674f13be99d2189e017a3e73b",
  "formula" : "\\realpart(a)>0\\wedge\\realpart(s)<0\\wedge z<1",
  "semanticFormula" : "\\realpart(a)>0\\wedge\\realpart(s)<0\\wedge z<1",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) An unknown or missing element occurred: Cannot translate operation \\wedge"
        }
      }
    },
    "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) An unknown or missing element occurred: Cannot translate operation \\wedge"
        }
      }
    }
  },
  "positions" : [ ],
  "includes" : [ "a", "\\Re(a)>0\\wedge\\Re(s)<0\\wedge z<1", "\\Re(a)>0", "z", "s" ],
  "isPartOf" : [ "\\Re(a)>0\\wedge\\Re(s)<0\\wedge z<1" ],
  "definiens" : [ ]
}

Specify your own input