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 \Lambda = A}

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

Semantic latex: \Lambda = A

Confidence: 0

Mathematica

Translation: \[CapitalLambda] == A

Information

Sub Equations

  • \[CapitalLambda] = A

Free variables

  • A
  • \[CapitalLambda]

Tests

Symbolic

Test expression: (\[CapitalLambda])-(A)

ERROR:

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

SymPy

Translation: Symbol('Lambda') == A

Information

Sub Equations

  • Symbol('Lambda') = A

Free variables

  • A
  • Symbol('Lambda')

Tests

Symbolic
Numeric

Maple

Translation: Lambda = A

Information

Sub Equations

  • Lambda = A

Free variables

  • A
  • Lambda

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Description

  • equation
  • Lamé equation

Complete translation information:

{
  "id" : "FORMULA_737c63829e4450e184f4e2f376343b39",
  "formula" : "\\Lambda = A",
  "semanticFormula" : "\\Lambda = A",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "\\[CapitalLambda] == A",
      "translationInformation" : {
        "subEquations" : [ "\\[CapitalLambda] = A" ],
        "freeVariables" : [ "A", "\\[CapitalLambda]" ]
      },
      "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" : "\\[CapitalLambda]",
          "rhs" : "A",
          "testExpression" : "(\\[CapitalLambda])-(A)",
          "testCalculations" : [ {
            "result" : "ERROR",
            "testTitle" : "Simple",
            "testExpression" : null,
            "resultExpression" : null,
            "wasAborted" : false,
            "conditionallySuccessful" : false
          } ]
        } ]
      }
    },
    "SymPy" : {
      "translation" : "Symbol('Lambda') == A",
      "translationInformation" : {
        "subEquations" : [ "Symbol('Lambda') = A" ],
        "freeVariables" : [ "A", "Symbol('Lambda')" ]
      }
    },
    "Maple" : {
      "translation" : "Lambda = A",
      "translationInformation" : {
        "subEquations" : [ "Lambda = A" ],
        "freeVariables" : [ "A", "Lambda" ]
      }
    }
  },
  "positions" : [ {
    "section" : 1,
    "sentence" : 5,
    "word" : 9
  } ],
  "includes" : [ "A", "\\Lambda" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "equation",
    "score" : 0.6859086196238077
  }, {
    "definition" : "Lamé equation",
    "score" : 0.6859086196238077
  } ]
}

Specify your own input