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 _{1}(z) =}

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

Semantic latex: _{1}(z) =

Confidence: 0

Mathematica

Translation: Subscript[$0, 1]*(z) ==

Information

Free variables

  • z

Tests

Symbolic
Numeric

SymPy

Translation: Symbol('{$0}_{1}')*(z) ==

Information

Free variables

  • z

Tests

Symbolic
Numeric

Maple

Translation: $0[1]*(z) =

Information

Free variables

  • z

Tests

Symbolic
Numeric

Dependency Graph Information

Description

  • TeX Source
  • Formula
  • link
  • Gold ID
  • z

Complete translation information:

{
  "id" : "FORMULA_e939f30d07578c2fb0d8cb5201db3c79",
  "formula" : "_{1}(z) =",
  "semanticFormula" : "_{1}(z) =",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "Subscript[$0, 1]*(z) ==",
      "translationInformation" : {
        "freeVariables" : [ "z" ]
      },
      "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('{$0}_{1}')*(z) ==",
      "translationInformation" : {
        "freeVariables" : [ "z" ]
      },
      "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" : "$0[1]*(z) =",
      "translationInformation" : {
        "freeVariables" : [ "z" ]
      },
      "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" : 1,
    "sentence" : 0,
    "word" : 8
  } ],
  "includes" : [ ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "TeX Source",
    "score" : 0.722
  }, {
    "definition" : "Formula",
    "score" : 0.7125985104912714
  }, {
    "definition" : "link",
    "score" : 0.6859086196238077
  }, {
    "definition" : "Gold ID",
    "score" : 0.6460746792928004
  }, {
    "definition" : "z",
    "score" : 0.6460746792928004
  } ]
}

Specify your own input