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 \Gamma(\alpha,x;0)=\Gamma(\alpha,x)}

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

Semantic latex: \Gamma(\alpha,x;0)=\Gamma(\alpha,x)

Confidence: 0

Mathematica

Translation: \[CapitalGamma][\[Alpha], x ; 0] == \[CapitalGamma][\[Alpha], x]

Information

Sub Equations

  • \[CapitalGamma][\[Alpha], x ; 0] = \[CapitalGamma][\[Alpha], x]

Free variables

  • \[Alpha]
  • \[CapitalGamma]
  • x

Symbol info

  • Could be the second Feigenbaum constant.

But this system doesn't know how to translate it as a constant. It was translated as a general letter.

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

Tests

Symbolic

Test expression: (\[CapitalGamma]*(\[Alpha], x ; 0))-(\[CapitalGamma]*(\[Alpha], x))

ERROR:

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

SymPy

Translation: Symbol('Gamma')(Symbol('alpha'), x ; 0) == Symbol('Gamma')(Symbol('alpha'), x)

Information

Sub Equations

  • Symbol('Gamma')(Symbol('alpha'), x ; 0) = Symbol('Gamma')(Symbol('alpha'), x)

Free variables

  • Symbol('Gamma')
  • Symbol('alpha')
  • x

Symbol info

  • Could be the second Feigenbaum constant.

But this system doesn't know how to translate it as a constant. It was translated as a general letter.

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

Tests

Symbolic
Numeric

Maple

Translation: Gamma(alpha , x ; 0) = Gamma(alpha , x)

Information

Sub Equations

  • Gamma(alpha , x ; 0) = Gamma(alpha , x)

Free variables

  • Gamma
  • alpha
  • x

Symbol info

  • Could be the second Feigenbaum constant.

But this system doesn't know how to translate it as a constant. It was translated as a general letter.

  • 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

Description

  • advantage
  • associated Anger -- Weber function
  • type incomplete-version of Bessel function
  • example
  • Digital Library of Mathematical Functions

Complete translation information:

{
  "id" : "FORMULA_82b31a423f1404077054b2256b85fefe",
  "formula" : "\\Gamma(\\alpha,x;0)=\\Gamma(\\alpha,x)",
  "semanticFormula" : "\\Gamma(\\alpha,x;0)=\\Gamma(\\alpha,x)",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "\\[CapitalGamma][\\[Alpha], x ; 0] == \\[CapitalGamma][\\[Alpha], x]",
      "translationInformation" : {
        "subEquations" : [ "\\[CapitalGamma][\\[Alpha], x ; 0] = \\[CapitalGamma][\\[Alpha], x]" ],
        "freeVariables" : [ "\\[Alpha]", "\\[CapitalGamma]", "x" ],
        "tokenTranslations" : {
          "\\alpha" : "Could be the second Feigenbaum constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\n",
          "\\Gamma" : "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" : "\\[CapitalGamma]*(\\[Alpha], x ; 0)",
          "rhs" : "\\[CapitalGamma]*(\\[Alpha], x)",
          "testExpression" : "(\\[CapitalGamma]*(\\[Alpha], x ; 0))-(\\[CapitalGamma]*(\\[Alpha], x))",
          "testCalculations" : [ {
            "result" : "ERROR",
            "testTitle" : "Simple",
            "testExpression" : null,
            "resultExpression" : null,
            "wasAborted" : false,
            "conditionallySuccessful" : false
          } ]
        } ]
      }
    },
    "SymPy" : {
      "translation" : "Symbol('Gamma')(Symbol('alpha'), x ; 0) == Symbol('Gamma')(Symbol('alpha'), x)",
      "translationInformation" : {
        "subEquations" : [ "Symbol('Gamma')(Symbol('alpha'), x ; 0) = Symbol('Gamma')(Symbol('alpha'), x)" ],
        "freeVariables" : [ "Symbol('Gamma')", "Symbol('alpha')", "x" ],
        "tokenTranslations" : {
          "\\alpha" : "Could be the second Feigenbaum constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\n",
          "\\Gamma" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
        }
      }
    },
    "Maple" : {
      "translation" : "Gamma(alpha , x ; 0) = Gamma(alpha , x)",
      "translationInformation" : {
        "subEquations" : [ "Gamma(alpha , x ; 0) = Gamma(alpha , x)" ],
        "freeVariables" : [ "Gamma", "alpha", "x" ],
        "tokenTranslations" : {
          "\\alpha" : "Could be the second Feigenbaum constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\n",
          "\\Gamma" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
        }
      }
    }
  },
  "positions" : [ {
    "section" : 1,
    "sentence" : 0,
    "word" : 3
  } ],
  "includes" : [ "\\gamma(\\alpha,x;0)=\\gamma(\\alpha,x)" ],
  "isPartOf" : [ "\\gamma(\\alpha,x;0)=\\gamma(\\alpha,x)" ],
  "definiens" : [ {
    "definition" : "advantage",
    "score" : 0.7125985104912714
  }, {
    "definition" : "associated Anger -- Weber function",
    "score" : 0.6460746792928004
  }, {
    "definition" : "type incomplete-version of Bessel function",
    "score" : 0.6460746792928004
  }, {
    "definition" : "example",
    "score" : 0.5500952380952381
  }, {
    "definition" : "Digital Library of Mathematical Functions",
    "score" : 0.5049074255814494
  } ]
}

Specify your own input