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 i,k \ge 0}

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

Semantic latex: \iunit , k \ge 0

Confidence: 0

Mathematica

Translation: I , k >= 0

Information

Sub Equations

  • I , k >= 0

Free variables

  • k

Symbol info

  • Imaginary unit was translated to: I

Tests

Symbolic

Test expression: I , k\geq0

ERROR:

{
    "result": "ERROR",
    "testTitle": "Simple",
    "testExpression": null,
    "resultExpression": null,
    "wasAborted": false,
    "conditionallySuccessful": false
}
Numeric

SymPy

Translation: I , k >= 0

Information

Sub Equations

  • I , k >= 0

Free variables

  • k

Symbol info

  • Imaginary unit was translated to: I

Tests

Symbolic
Numeric

Maple

Translation: I , k >= 0

Information

Sub Equations

  • I , k >= 0

Free variables

  • k

Symbol info

  • Imaginary unit was translated to: I

Tests

Symbolic
Numeric

Dependency Graph Information

Description

  • integer

Complete translation information:

{
  "id" : "FORMULA_462144b2ff4c175802a839f72e2f3d29",
  "formula" : "i,k \\ge 0",
  "semanticFormula" : "\\iunit , k \\ge 0",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "I , k >= 0",
      "translationInformation" : {
        "subEquations" : [ "I , k >= 0" ],
        "freeVariables" : [ "k" ],
        "tokenTranslations" : {
          "\\iunit" : "Imaginary unit was translated to: I"
        }
      },
      "numericResults" : {
        "overallResult" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "wasAborted" : false,
        "crashed" : false,
        "testCalculationsGroups" : [ ]
      },
      "symbolicResults" : {
        "overallResult" : "ERROR",
        "numberOfTests" : 1,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 1,
        "crashed" : false,
        "testCalculationsGroup" : [ {
          "lhs" : "I , k",
          "rhs" : "0",
          "testExpression" : "I , k\\geq0",
          "testCalculations" : [ {
            "result" : "ERROR",
            "testTitle" : "Simple",
            "testExpression" : null,
            "resultExpression" : null,
            "wasAborted" : false,
            "conditionallySuccessful" : false
          } ]
        } ]
      }
    },
    "SymPy" : {
      "translation" : "I , k >= 0",
      "translationInformation" : {
        "subEquations" : [ "I , k >= 0" ],
        "freeVariables" : [ "k" ],
        "tokenTranslations" : {
          "\\iunit" : "Imaginary unit was translated to: I"
        }
      }
    },
    "Maple" : {
      "translation" : "I , k >= 0",
      "translationInformation" : {
        "subEquations" : [ "I , k >= 0" ],
        "freeVariables" : [ "k" ],
        "tokenTranslations" : {
          "\\iunit" : "Imaginary unit was translated to: I"
        }
      }
    }
  },
  "positions" : [ {
    "section" : 3,
    "sentence" : 0,
    "word" : 2
  } ],
  "includes" : [ ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "integer",
    "score" : 0.722
  } ]
}

Specify your own input