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 \Phi(z, s, \alpha) = \sum_{n=0}^\infty \frac { z^n} {(n+\alpha)^s}.}

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

Semantic latex: \Phi(z, s, \alpha) = \sum_{n=0}^\infty \frac { z^n} {(n+\alpha)^s}

Confidence: 0

Mathematica

Translation: \[CapitalPhi][z , s , \[Alpha]] == Sum[Divide[(z)^(n),(n + \[Alpha])^(s)], {n, 0, Infinity}, GenerateConditions->None]

Information

Sub Equations

  • \[CapitalPhi][z , s , \[Alpha]] = Sum[Divide[(z)^(n),(n + \[Alpha])^(s)], {n, 0, Infinity}, GenerateConditions->None]

Free variables

  • \[Alpha]
  • \[CapitalPhi]
  • s
  • z

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

SymPy

Translation: Symbol('Phi')(z , s , Symbol('alpha')) == Sum(((z)**(n))/((n + Symbol('alpha'))**(s)), (n, 0, oo))

Information

Sub Equations

  • Symbol('Phi')(z , s , Symbol('alpha')) = Sum(((z)**(n))/((n + Symbol('alpha'))**(s)), (n, 0, oo))

Free variables

  • Symbol('Phi')
  • Symbol('alpha')
  • s
  • z

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: Phi(z , s , alpha) = sum(((z)^(n))/((n + alpha)^(s)), n = 0..infinity)

Information

Sub Equations

  • Phi(z , s , alpha) = sum(((z)^(n))/((n + alpha)^(s)), n = 0..infinity)

Free variables

  • Phi
  • alpha
  • s
  • z

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

Complete translation information:

{
  "id" : "FORMULA_8d6e159f2fcb2147b2d19f327fc37613",
  "formula" : "\\Phi(z, s, \\alpha) = \\sum_{n=0}^\\infty\n\\frac { z^n} {(n+\\alpha)^s}",
  "semanticFormula" : "\\Phi(z, s, \\alpha) = \\sum_{n=0}^\\infty\n\\frac { z^n} {(n+\\alpha)^s}",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "\\[CapitalPhi][z , s , \\[Alpha]] == Sum[Divide[(z)^(n),(n + \\[Alpha])^(s)], {n, 0, Infinity}, GenerateConditions->None]",
      "translationInformation" : {
        "subEquations" : [ "\\[CapitalPhi][z , s , \\[Alpha]] = Sum[Divide[(z)^(n),(n + \\[Alpha])^(s)], {n, 0, Infinity}, GenerateConditions->None]" ],
        "freeVariables" : [ "\\[Alpha]", "\\[CapitalPhi]", "s", "z" ],
        "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",
          "\\Phi" : "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" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "crashed" : false,
        "testCalculationsGroup" : [ ]
      }
    },
    "SymPy" : {
      "translation" : "Symbol('Phi')(z , s , Symbol('alpha')) == Sum(((z)**(n))/((n + Symbol('alpha'))**(s)), (n, 0, oo))",
      "translationInformation" : {
        "subEquations" : [ "Symbol('Phi')(z , s , Symbol('alpha')) = Sum(((z)**(n))/((n + Symbol('alpha'))**(s)), (n, 0, oo))" ],
        "freeVariables" : [ "Symbol('Phi')", "Symbol('alpha')", "s", "z" ],
        "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",
          "\\Phi" : "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" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "crashed" : false,
        "testCalculationsGroup" : [ ]
      }
    },
    "Maple" : {
      "translation" : "Phi(z , s , alpha) = sum(((z)^(n))/((n + alpha)^(s)), n = 0..infinity)",
      "translationInformation" : {
        "subEquations" : [ "Phi(z , s , alpha) = sum(((z)^(n))/((n + alpha)^(s)), n = 0..infinity)" ],
        "freeVariables" : [ "Phi", "alpha", "s", "z" ],
        "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",
          "\\Phi" : "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" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "crashed" : false,
        "testCalculationsGroup" : [ ]
      }
    }
  },
  "positions" : [ ],
  "includes" : [ "\\Phi(z,s,a)", "\\Phi(z, s, \\alpha) = \\sum_{n=0}^\\infty\\frac { z^n} {(n+\\alpha)^s}", "z", "s", "n= 0" ],
  "isPartOf" : [ "\\Phi(z, s, \\alpha) = \\sum_{n=0}^\\infty\\frac { z^n} {(n+\\alpha)^s}", "\\Phi(\\omega, s, \\alpha) = \\sum_{n=0}^\\infty\\frac {\\omega^n} {(n+\\alpha)^s} = \\sum_{m=0}^{q-1} \\sum_{n=0}^\\infty \\frac {\\omega^{qn + m}}{(qn + m + \\alpha)^s} = \\sum_{m=0}^{q-1} \\omega^m q^{-s} \\zeta(s,\\frac{m + \\alpha}{q})" ],
  "definiens" : [ ]
}

Specify your own input