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 h^3}

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

Semantic latex: h^3

Confidence: 0

Mathematica

Translation: (h)^(3)

Information

Sub Equations

  • (h)^(3)

Free variables

  • h

Tests

Symbolic
Numeric

SymPy

Translation: (h)**(3)

Information

Sub Equations

  • (h)**(3)

Free variables

  • h

Tests

Symbolic
Numeric

Maple

Translation: (h)^(3)

Information

Sub Equations

  • (h)^(3)

Free variables

  • h

Tests

Symbolic
Numeric

Dependency Graph Information

Description

  • order
  • error in these approximation

Complete translation information:

{
  "id" : "FORMULA_cbea292f6b6b315a248a649c0c9faa44",
  "formula" : "h^3",
  "semanticFormula" : "h^3",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "(h)^(3)",
      "translationInformation" : {
        "subEquations" : [ "(h)^(3)" ],
        "freeVariables" : [ "h" ]
      },
      "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" : "(h)**(3)",
      "translationInformation" : {
        "subEquations" : [ "(h)**(3)" ],
        "freeVariables" : [ "h" ]
      },
      "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" : "(h)^(3)",
      "translationInformation" : {
        "subEquations" : [ "(h)^(3)" ],
        "freeVariables" : [ "h" ]
      },
      "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" : 37,
    "sentence" : 5,
    "word" : 14
  } ],
  "includes" : [ ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "order",
    "score" : 0.722
  }, {
    "definition" : "error in these approximation",
    "score" : 0.7125985104912714
  } ]
}

Specify your own input