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 w(x)=\Gamma(a+ix)\,\Gamma(b+ix)\,\Gamma(c-ix)\,\Gamma(d-ix).}

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

Semantic latex: w(x) = \Gamma(a + \iunit x) \Gamma(b + \iunit x) \Gamma(c - \iunit x) \Gamma(d - \iunit x)

Confidence: 0

Mathematica

Translation: w[x] == \[CapitalGamma]*(a + I*x)*\[CapitalGamma]*(b + I*x)*\[CapitalGamma]*(c - I*x)*\[CapitalGamma]*(d - I*x)

Information

Sub Equations

  • w[x] = \[CapitalGamma]*(a + I*x)*\[CapitalGamma]*(b + I*x)*\[CapitalGamma]*(c - I*x)*\[CapitalGamma]*(d - I*x)

Free variables

  • \[CapitalGamma]
  • a
  • b
  • c
  • d
  • x

Symbol info

  • Imaginary unit was translated to: I
  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).

Tests

Symbolic

Test expression: (w*(x))-(\[CapitalGamma]*(a + I*x)*\[CapitalGamma]*(b + I*x)*\[CapitalGamma]*(c - I*x)*\[CapitalGamma]*(d - I*x))

ERROR:

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

SymPy

Translation: w(x) == Symbol('Gamma')*(a + I*x)*Symbol('Gamma')*(b + I*x)*Symbol('Gamma')*(c - I*x)*Symbol('Gamma')*(d - I*x)

Information

Sub Equations

  • w(x) = Symbol('Gamma')*(a + I*x)*Symbol('Gamma')*(b + I*x)*Symbol('Gamma')*(c - I*x)*Symbol('Gamma')*(d - I*x)

Free variables

  • Symbol('Gamma')
  • a
  • b
  • c
  • d
  • x

Symbol info

  • Imaginary unit was translated to: I
  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).

Tests

Symbolic
Numeric

Maple

Translation: w(x) = Gamma*(a + I*x)*Gamma*(b + I*x)*Gamma*(c - I*x)*Gamma*(d - I*x)

Information

Sub Equations

  • w(x) = Gamma*(a + I*x)*Gamma*(b + I*x)*Gamma*(c - I*x)*Gamma*(d - I*x)

Free variables

  • Gamma
  • a
  • b
  • c
  • d
  • x

Symbol info

  • Imaginary unit was translated to: I
  • 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_b6fe1a8a5d1df8ec16e1d1f8eb1da0a9",
  "formula" : "w(x)=\\Gamma(a+ix)\\Gamma(b+ix)\\Gamma(c-ix)\\Gamma(d-ix)",
  "semanticFormula" : "w(x) = \\Gamma(a + \\iunit x) \\Gamma(b + \\iunit x) \\Gamma(c - \\iunit x) \\Gamma(d - \\iunit x)",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "w[x] == \\[CapitalGamma]*(a + I*x)*\\[CapitalGamma]*(b + I*x)*\\[CapitalGamma]*(c - I*x)*\\[CapitalGamma]*(d - I*x)",
      "translationInformation" : {
        "subEquations" : [ "w[x] = \\[CapitalGamma]*(a + I*x)*\\[CapitalGamma]*(b + I*x)*\\[CapitalGamma]*(c - I*x)*\\[CapitalGamma]*(d - I*x)" ],
        "freeVariables" : [ "\\[CapitalGamma]", "a", "b", "c", "d", "x" ],
        "tokenTranslations" : {
          "\\iunit" : "Imaginary unit was translated to: I",
          "w" : "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" : "w*(x)",
          "rhs" : "\\[CapitalGamma]*(a + I*x)*\\[CapitalGamma]*(b + I*x)*\\[CapitalGamma]*(c - I*x)*\\[CapitalGamma]*(d - I*x)",
          "testExpression" : "(w*(x))-(\\[CapitalGamma]*(a + I*x)*\\[CapitalGamma]*(b + I*x)*\\[CapitalGamma]*(c - I*x)*\\[CapitalGamma]*(d - I*x))",
          "testCalculations" : [ {
            "result" : "ERROR",
            "testTitle" : "Simple",
            "testExpression" : null,
            "resultExpression" : null,
            "wasAborted" : false,
            "conditionallySuccessful" : false
          } ]
        } ]
      }
    },
    "SymPy" : {
      "translation" : "w(x) == Symbol('Gamma')*(a + I*x)*Symbol('Gamma')*(b + I*x)*Symbol('Gamma')*(c - I*x)*Symbol('Gamma')*(d - I*x)",
      "translationInformation" : {
        "subEquations" : [ "w(x) = Symbol('Gamma')*(a + I*x)*Symbol('Gamma')*(b + I*x)*Symbol('Gamma')*(c - I*x)*Symbol('Gamma')*(d - I*x)" ],
        "freeVariables" : [ "Symbol('Gamma')", "a", "b", "c", "d", "x" ],
        "tokenTranslations" : {
          "\\iunit" : "Imaginary unit was translated to: I",
          "w" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
        }
      }
    },
    "Maple" : {
      "translation" : "w(x) = Gamma*(a + I*x)*Gamma*(b + I*x)*Gamma*(c - I*x)*Gamma*(d - I*x)",
      "translationInformation" : {
        "subEquations" : [ "w(x) = Gamma*(a + I*x)*Gamma*(b + I*x)*Gamma*(c - I*x)*Gamma*(d - I*x)" ],
        "freeVariables" : [ "Gamma", "a", "b", "c", "d", "x" ],
        "tokenTranslations" : {
          "\\iunit" : "Imaginary unit was translated to: I",
          "w" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
        }
      }
    }
  },
  "positions" : [ ],
  "includes" : [ "w(x)=\\Gamma(a+ix)\\,\\Gamma(b+ix)\\,\\Gamma(c-ix)\\,\\Gamma(d-ix)" ],
  "isPartOf" : [ "w(x)=\\Gamma(a+ix)\\,\\Gamma(b+ix)\\,\\Gamma(c-ix)\\,\\Gamma(d-ix)" ],
  "definiens" : [ ]
}

Specify your own input