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 \theta}

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

Semantic latex: \theta

Confidence: 0

Mathematica

Translation: \[Theta]

Information

Sub Equations

  • \[Theta]

Free variables

  • \[Theta]

Tests

Symbolic
Numeric

SymPy

Translation: Symbol('theta')

Information

Sub Equations

  • Symbol('theta')

Free variables

  • Symbol('theta')

Tests

Symbolic
Numeric

Maple

Translation: theta

Information

Sub Equations

  • theta

Free variables

  • theta

Tests

Symbolic
Numeric

Dependency Graph Information

Is part of

Description

  • factorial

Complete translation information:

{
  "id" : "FORMULA_2554a2bb846cffd697389e5dc8912759",
  "formula" : "\\theta",
  "semanticFormula" : "\\theta",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "\\[Theta]",
      "translationInformation" : {
        "subEquations" : [ "\\[Theta]" ],
        "freeVariables" : [ "\\[Theta]" ]
      },
      "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('theta')",
      "translationInformation" : {
        "subEquations" : [ "Symbol('theta')" ],
        "freeVariables" : [ "Symbol('theta')" ]
      },
      "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" : "theta",
      "translationInformation" : {
        "subEquations" : [ "theta" ],
        "freeVariables" : [ "theta" ]
      },
      "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" : 10,
    "word" : 8
  } ],
  "includes" : [ ],
  "isPartOf" : [ "(\\theta)_n" ],
  "definiens" : [ {
    "definition" : "factorial",
    "score" : 0.7125985104912714
  } ]
}

Specify your own input