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 \lim_{u \to \pm \infty} (x(u),\, y(u)) = (-a,\, 0)\;.}

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

Semantic latex: \lim_{u \to \pm \infty} (x(u), y(u)) = (-a, 0)

Confidence: 0

Mathematica

Translation: Limit[x[u], y[u], u -> \[PlusMinus]Infinity, GenerateConditions->None] == (- a , 0)

Information

Sub Equations

  • Limit[x[u], y[u], u -> + Infinity, GenerateConditions->None] = (- a , 0)
  • Limit[x[u], y[u], u -> - Infinity, GenerateConditions->None] = (- a , 0)

Free variables

  • a

Symbol info

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

Tests

Symbolic

Test expression: (Limit[x*(u), y*(u), u -> + Infinity, GenerateConditions->None])-((- a , 0))

ERROR:

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

Test expression: (Limit[x*(u), y*(u), u -> - Infinity, GenerateConditions->None])-((- a , 0))

ERROR:

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

SymPy

Translation:

Information

Symbol info

  • (LaTeX -> SymPy) No translation possible for given token: Unable to identify interval of LIM

Tests

Symbolic
Numeric

Maple

Translation: limit(x(u), y(u), u = &+- infinity) = (- a , 0)

Information

Sub Equations

  • limit(x(u), y(u), u = + infinity) = (- a , 0)
  • limit(x(u), y(u), u = - infinity) = (- a , 0)

Free variables

  • a

Symbol info

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

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Complete translation information:

{
  "id" : "FORMULA_9018fd037f40a431fa3c82e91a32c233",
  "formula" : "\\lim_{u \\to \\pm \\infty} (x(u), y(u)) = (-a, 0)",
  "semanticFormula" : "\\lim_{u \\to \\pm \\infty} (x(u), y(u)) = (-a, 0)",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "Limit[x[u], y[u], u -> \\[PlusMinus]Infinity, GenerateConditions->None] == (- a , 0)",
      "translationInformation" : {
        "subEquations" : [ "Limit[x[u], y[u], u -> + Infinity, GenerateConditions->None] = (- a , 0)", "Limit[x[u], y[u], u -> - Infinity, GenerateConditions->None] = (- a , 0)" ],
        "freeVariables" : [ "a" ],
        "tokenTranslations" : {
          "x" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
          "y" : "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" : 2,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 2,
        "crashed" : false,
        "testCalculationsGroup" : [ {
          "lhs" : "Limit[x*(u), y*(u), u -> + Infinity, GenerateConditions->None]",
          "rhs" : "(- a , 0)",
          "testExpression" : "(Limit[x*(u), y*(u), u -> + Infinity, GenerateConditions->None])-((- a , 0))",
          "testCalculations" : [ {
            "result" : "ERROR",
            "testTitle" : "Simple",
            "testExpression" : null,
            "resultExpression" : null,
            "wasAborted" : false,
            "conditionallySuccessful" : false
          } ]
        }, {
          "lhs" : "Limit[x*(u), y*(u), u -> - Infinity, GenerateConditions->None]",
          "rhs" : "(- a , 0)",
          "testExpression" : "(Limit[x*(u), y*(u), u -> - Infinity, GenerateConditions->None])-((- a , 0))",
          "testCalculations" : [ {
            "result" : "ERROR",
            "testTitle" : "Simple",
            "testExpression" : null,
            "resultExpression" : null,
            "wasAborted" : false,
            "conditionallySuccessful" : false
          } ]
        } ]
      }
    },
    "SymPy" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> SymPy) No translation possible for given token: Unable to identify interval of LIM"
        }
      }
    },
    "Maple" : {
      "translation" : "limit(x(u), y(u), u = &+- infinity) = (- a , 0)",
      "translationInformation" : {
        "subEquations" : [ "limit(x(u), y(u), u = + infinity) = (- a , 0)", "limit(x(u), y(u), u = - infinity) = (- a , 0)" ],
        "freeVariables" : [ "a" ],
        "tokenTranslations" : {
          "x" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
          "y" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
        }
      }
    }
  },
  "positions" : [ ],
  "includes" : [ "u", "\\lim_{u \\to \\pm \\infty} (x(u),\\, y(u)) = (-a,\\, 0)\\;", "y(x)", "a", "(x(t),y(t))", "y", "a,\\, b", "a,b", "x", "(-a,\\, 0)", "a,\\; b" ],
  "isPartOf" : [ "\\lim_{u \\to \\pm \\infty} (x(u),\\, y(u)) = (-a,\\, 0)\\;" ],
  "definiens" : [ ]
}

Specify your own input