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 \omega^q = 1}

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

Semantic latex: \omega^q = 1

Confidence: 0

Mathematica

Translation: \[Omega]^(q) == 1

Information

Sub Equations

  • \[Omega]^(q) = 1

Free variables

  • \[Omega]
  • q

Tests

Symbolic

Test expression: (\[Omega]^(q))-(1)

ERROR:

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

SymPy

Translation: (Symbol('omega'))**(q) == 1

Information

Sub Equations

  • (Symbol('omega'))**(q) = 1

Free variables

  • Symbol('omega')
  • q

Tests

Symbolic
Numeric

Maple

Translation: (omega)^(q) = 1

Information

Sub Equations

  • (omega)^(q) = 1

Free variables

  • omega
  • q

Tests

Symbolic
Numeric

Dependency Graph Information

Complete translation information:

{
  "id" : "FORMULA_16ed1e0eb985e4eda4e0fd95b325b5b1",
  "formula" : "\\omega^q = 1",
  "semanticFormula" : "\\omega^q = 1",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "\\[Omega]^(q) == 1",
      "translationInformation" : {
        "subEquations" : [ "\\[Omega]^(q) = 1" ],
        "freeVariables" : [ "\\[Omega]", "q" ]
      },
      "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" : "\\[Omega]^(q)",
          "rhs" : "1",
          "testExpression" : "(\\[Omega]^(q))-(1)",
          "testCalculations" : [ {
            "result" : "ERROR",
            "testTitle" : "Simple",
            "testExpression" : null,
            "resultExpression" : null,
            "wasAborted" : false,
            "conditionallySuccessful" : false
          } ]
        } ]
      }
    },
    "SymPy" : {
      "translation" : "(Symbol('omega'))**(q) == 1",
      "translationInformation" : {
        "subEquations" : [ "(Symbol('omega'))**(q) = 1" ],
        "freeVariables" : [ "Symbol('omega')", "q" ]
      }
    },
    "Maple" : {
      "translation" : "(omega)^(q) = 1",
      "translationInformation" : {
        "subEquations" : [ "(omega)^(q) = 1" ],
        "freeVariables" : [ "omega", "q" ]
      }
    }
  },
  "positions" : [ {
    "section" : 4,
    "sentence" : 2,
    "word" : 3
  } ],
  "includes" : [ ],
  "isPartOf" : [ ],
  "definiens" : [ ]
}

Specify your own input