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 n=m}

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

Semantic latex: n=m

Confidence: 0

Mathematica

Translation: n == m

Information

Sub Equations

  • n = m

Free variables

  • m
  • n

Tests

Symbolic

Test expression: (n)-(m)

ERROR:

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

SymPy

Translation: n == m

Information

Sub Equations

  • n = m

Free variables

  • m
  • n

Tests

Symbolic
Numeric

Maple

Translation: n = m

Information

Sub Equations

  • n = m

Free variables

  • m
  • n

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Description

  • square root of the right hand side
  • equation
  • recurrence relation for the Jacobi polynomial
  • function of the Jacobi polynomial
  • branch of square root

Complete translation information:

{
  "id" : "FORMULA_7805eba586f1593f610d48d02c5d5ecb",
  "formula" : "n=m",
  "semanticFormula" : "n=m",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "n == m",
      "translationInformation" : {
        "subEquations" : [ "n = m" ],
        "freeVariables" : [ "m", "n" ]
      },
      "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" : "n",
          "rhs" : "m",
          "testExpression" : "(n)-(m)",
          "testCalculations" : [ {
            "result" : "ERROR",
            "testTitle" : "Simple",
            "testExpression" : null,
            "resultExpression" : null,
            "wasAborted" : false,
            "conditionallySuccessful" : false
          } ]
        } ]
      }
    },
    "SymPy" : {
      "translation" : "n == m",
      "translationInformation" : {
        "subEquations" : [ "n = m" ],
        "freeVariables" : [ "m", "n" ]
      }
    },
    "Maple" : {
      "translation" : "n = m",
      "translationInformation" : {
        "subEquations" : [ "n = m" ],
        "freeVariables" : [ "m", "n" ]
      }
    }
  },
  "positions" : [ {
    "section" : 5,
    "sentence" : 2,
    "word" : 21
  } ],
  "includes" : [ "n" ],
  "isPartOf" : [ "n= 2, 3, ...", "\\sum_{n=0}^\\infty P_n^{(\\alpha,\\beta)}(z) t^n = 2^{\\alpha + \\beta} R^{-1} (1 - t + R)^{-\\alpha} (1 + t + R)^{-\\beta}" ],
  "definiens" : [ {
    "definition" : "square root of the right hand side",
    "score" : 0.6460746792928004
  }, {
    "definition" : "equation",
    "score" : 0.5500952380952381
  }, {
    "definition" : "recurrence relation for the Jacobi polynomial",
    "score" : 0.3635871910523791
  }, {
    "definition" : "function of the Jacobi polynomial",
    "score" : 0.3427705987904743
  }, {
    "definition" : "branch of square root",
    "score" : 0.2556794787000992
  } ]
}

Specify your own input