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 x(s)=s}

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

Semantic latex: x(s)=s

Confidence: 0

Mathematica

Translation: x[s] == s

Information

Sub Equations

  • x[s] = s

Free variables

  • s

Symbol info

  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).

Tests

Symbolic

Test expression: (x*(s))-(s)

ERROR:

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

SymPy

Translation: x(s) == s

Information

Sub Equations

  • x(s) = s

Free variables

  • s

Symbol info

  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).

Tests

Symbolic
Numeric

Maple

Translation: x(s) = s

Information

Sub Equations

  • x(s) = s

Free variables

  • s

Symbol info

  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).

Tests

Symbolic
Numeric

Dependency Graph Information

Description

  • uniform lattice
  • Hahn polynomial
  • parameter

Complete translation information:

{
  "id" : "FORMULA_8d4a831e656c11a22b1b4a5b3c455d44",
  "formula" : "x(s)=s",
  "semanticFormula" : "x(s)=s",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "x[s] == s",
      "translationInformation" : {
        "subEquations" : [ "x[s] = s" ],
        "freeVariables" : [ "s" ],
        "tokenTranslations" : {
          "x" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
        }
      },
      "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" : "x*(s)",
          "rhs" : "s",
          "testExpression" : "(x*(s))-(s)",
          "testCalculations" : [ {
            "result" : "ERROR",
            "testTitle" : "Simple",
            "testExpression" : null,
            "resultExpression" : null,
            "wasAborted" : false,
            "conditionallySuccessful" : false
          } ]
        } ]
      }
    },
    "SymPy" : {
      "translation" : "x(s) == s",
      "translationInformation" : {
        "subEquations" : [ "x(s) = s" ],
        "freeVariables" : [ "s" ],
        "tokenTranslations" : {
          "x" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
        }
      }
    },
    "Maple" : {
      "translation" : "x(s) = s",
      "translationInformation" : {
        "subEquations" : [ "x(s) = s" ],
        "freeVariables" : [ "s" ],
        "tokenTranslations" : {
          "x" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
        }
      }
    }
  },
  "positions" : [ {
    "section" : 3,
    "sentence" : 0,
    "word" : 12
  } ],
  "includes" : [ ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "uniform lattice",
    "score" : 0.722
  }, {
    "definition" : "Hahn polynomial",
    "score" : 0.6859086196238077
  }, {
    "definition" : "parameter",
    "score" : 0.6460746792928004
  } ]
}

Specify your own input