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 *_4}

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

Semantic latex: *_4

Confidence: 0

Mathematica

Translation: Subscript[*, 4]

Information

Sub Equations

  • Subscript[*, 4]

Tests

Symbolic
Numeric

SymPy

Translation: Symbol('{*}_{4}')

Information

Sub Equations

  • Symbol('{*}_{4}')

Tests

Symbolic
Numeric

Maple

Translation: *[4]

Information

Sub Equations

  • *[4]

Tests

Symbolic
Numeric

Dependency Graph Information

Is part of

Description

  • entry
  • example
  • asterisk
  • index

Complete translation information:

{
  "id" : "FORMULA_12abefd349c732fb7af3b4b45ff4663c",
  "formula" : "*_4",
  "semanticFormula" : "*_4",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "Subscript[*, 4]",
      "translationInformation" : {
        "subEquations" : [ "Subscript[*, 4]" ]
      },
      "numericResults" : {
        "overallResult" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "wasAborted" : false,
        "crashed" : false,
        "testCalculationsGroups" : [ ]
      },
      "symbolicResults" : {
        "overallResult" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "crashed" : false,
        "testCalculationsGroup" : [ ]
      }
    },
    "SymPy" : {
      "translation" : "Symbol('{*}_{4}')",
      "translationInformation" : {
        "subEquations" : [ "Symbol('{*}_{4}')" ]
      },
      "numericResults" : {
        "overallResult" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "wasAborted" : false,
        "crashed" : false,
        "testCalculationsGroups" : [ ]
      },
      "symbolicResults" : {
        "overallResult" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "crashed" : false,
        "testCalculationsGroup" : [ ]
      }
    },
    "Maple" : {
      "translation" : "*[4]",
      "translationInformation" : {
        "subEquations" : [ "*[4]" ]
      },
      "numericResults" : {
        "overallResult" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "wasAborted" : false,
        "crashed" : false,
        "testCalculationsGroups" : [ ]
      },
      "symbolicResults" : {
        "overallResult" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "crashed" : false,
        "testCalculationsGroup" : [ ]
      }
    }
  },
  "positions" : [ {
    "section" : 7,
    "sentence" : 4,
    "word" : 7
  } ],
  "includes" : [ ],
  "isPartOf" : [ "p_n(x;a,b,c|q)=a^{-n}e^{-inu}(abe^{2iu},ac,ad;q)_n*_4\\Phi_3(q^{-n},abcdq^{n-1},ae^{i{(t+2u)}},ae^{-it};abe^{2iu},ac,ad;q;q)" ],
  "definiens" : [ {
    "definition" : "entry",
    "score" : 0.6965150201292494
  }, {
    "definition" : "example",
    "score" : 0.6871135306205209
  }, {
    "definition" : "asterisk",
    "score" : 0.6859086196238077
  }, {
    "definition" : "index",
    "score" : 0.6859086196238077
  } ]
}

Specify your own input