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, q \in \mathbb{Z}}

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

Semantic latex: p, q \in \mathbb{Z}

Confidence: 0

Mathematica

Translation: p , q \[Element]Z

Information

Free variables

  • Z
  • p
  • q

Tests

Symbolic
Numeric

SymPy

Translation: p , q null Z

Information

Free variables

  • Z
  • p
  • q

Tests

Symbolic
Numeric

Maple

Translation: p , q in Z

Information

Free variables

  • Z
  • p
  • q

Tests

Symbolic
Numeric

Dependency Graph Information

Is part of

Description

  • point
  • contour
  • integral representation

Complete translation information:

{
  "id" : "FORMULA_c55a183bf2ad8990d7eeccf700d50181",
  "formula" : "p, q \\in \\mathbb{Z}",
  "semanticFormula" : "p, q \\in \\mathbb{Z}",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "p , q \\[Element]Z",
      "translationInformation" : {
        "freeVariables" : [ "Z", "p", "q" ]
      },
      "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 , q null Z",
      "translationInformation" : {
        "freeVariables" : [ "Z", "p", "q" ]
      },
      "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 , q in Z",
      "translationInformation" : {
        "freeVariables" : [ "Z", "p", "q" ]
      },
      "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" : 4,
    "sentence" : 1,
    "word" : 3
  } ],
  "includes" : [ ],
  "isPartOf" : [ "t=\\log(z)+2k\\pi i,k\\in Z" ],
  "definiens" : [ {
    "definition" : "point",
    "score" : 0.3610308415964304
  }, {
    "definition" : "contour",
    "score" : 0.36055876318226077
  }, {
    "definition" : "integral representation",
    "score" : 0.23784834112986297
  } ]
}

Specify your own input