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 p}

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

Semantic latex: p

Confidence: 0

Mathematica

Translation: p

Information

Sub Equations

  • p

Free variables

  • p

Tests

Symbolic
Numeric

SymPy

Translation: p

Information

Sub Equations

  • p

Free variables

  • p

Tests

Symbolic
Numeric

Maple

Translation: p

Information

Sub Equations

  • p

Free variables

  • p

Tests

Symbolic
Numeric

Dependency Graph Information

Is part of

Description

  • equation
  • number

Complete translation information:

{
  "id" : "FORMULA_83878c91171338902e0fe0fb97a8c47a",
  "formula" : "p",
  "semanticFormula" : "p",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "p",
      "translationInformation" : {
        "subEquations" : [ "p" ],
        "freeVariables" : [ "p" ]
      },
      "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" : "p",
      "translationInformation" : {
        "subEquations" : [ "p" ],
        "freeVariables" : [ "p" ]
      },
      "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" : "p",
      "translationInformation" : {
        "subEquations" : [ "p" ],
        "freeVariables" : [ "p" ]
      },
      "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" : 0,
    "sentence" : 1,
    "word" : 12
  } ],
  "includes" : [ ],
  "isPartOf" : [ "0 < p < \\pi", "f(t+p) = f(t)" ],
  "definiens" : [ {
    "definition" : "equation",
    "score" : 0.722
  }, {
    "definition" : "number",
    "score" : 0.722
  } ]
}

Specify your own input