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 \theta_4(0,\tau) = \sum_{n=-\infty}^\infty (-1)^n q^{n^2} }

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

Semantic latex: \theta_4(0,\tau) = \sum_{n=-\infty}^\infty (-1)^n q^{n^2}

Confidence: 0

Mathematica

Translation: Subscript[\[Theta], 4][0 , \[Tau]] == Sum[(- 1)^(n)* (q)^((n)^(2)), {n, - Infinity, Infinity}, GenerateConditions->None]

Information

Sub Equations

  • Subscript[\[Theta], 4][0 , \[Tau]] = Sum[(- 1)^(n)* (q)^((n)^(2)), {n, - Infinity, Infinity}, GenerateConditions->None]

Free variables

  • Subscript[\[Theta], 4]
  • \[Tau]
  • q

Symbol info

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

Tests

Symbolic
Numeric

SymPy

Translation: Symbol('{Symbol('theta')}_{4}')(0 , Symbol('tau')) == Sum((- 1)**(n)* (q)**((n)**(2)), (n, - oo, oo))

Information

Sub Equations

  • Symbol('{Symbol('theta')}_{4}')(0 , Symbol('tau')) = Sum((- 1)**(n)* (q)**((n)**(2)), (n, - oo, oo))

Free variables

  • Symbol('tau')
  • Symbol('{Symbol('theta')}_{4}')
  • q

Symbol info

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

Tests

Symbolic
Numeric

Maple

Translation: theta[4](0 , tau) = sum((- 1)^(n)* (q)^((n)^(2)), n = - infinity..infinity)

Information

Sub Equations

  • theta[4](0 , tau) = sum((- 1)^(n)* (q)^((n)^(2)), n = - infinity..infinity)

Free variables

  • q
  • tau
  • theta[4]

Symbol info

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

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Description

  • nome
  • term of the half-period
  • term of the Dedekind eta function
  • Weierstrass 's elliptic function
  • fundamental pair of period
  • theta function

Complete translation information:

{
  "id" : "FORMULA_70a8e452814b90d56c3d27903bd308ab",
  "formula" : "\\theta_4(0,\\tau) = \\sum_{n=-\\infty}^\\infty (-1)^n q^{n^2}",
  "semanticFormula" : "\\theta_4(0,\\tau) = \\sum_{n=-\\infty}^\\infty (-1)^n q^{n^2}",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "Subscript[\\[Theta], 4][0 , \\[Tau]] == Sum[(- 1)^(n)* (q)^((n)^(2)), {n, - Infinity, Infinity}, GenerateConditions->None]",
      "translationInformation" : {
        "subEquations" : [ "Subscript[\\[Theta], 4][0 , \\[Tau]] = Sum[(- 1)^(n)* (q)^((n)^(2)), {n, - Infinity, Infinity}, GenerateConditions->None]" ],
        "freeVariables" : [ "Subscript[\\[Theta], 4]", "\\[Tau]", "q" ],
        "tokenTranslations" : {
          "\\theta" : "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('{Symbol('theta')}_{4}')(0 , Symbol('tau')) == Sum((- 1)**(n)* (q)**((n)**(2)), (n, - oo, oo))",
      "translationInformation" : {
        "subEquations" : [ "Symbol('{Symbol('theta')}_{4}')(0 , Symbol('tau')) = Sum((- 1)**(n)* (q)**((n)**(2)), (n, - oo, oo))" ],
        "freeVariables" : [ "Symbol('tau')", "Symbol('{Symbol('theta')}_{4}')", "q" ],
        "tokenTranslations" : {
          "\\theta" : "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" : "theta[4](0 , tau) = sum((- 1)^(n)* (q)^((n)^(2)), n = - infinity..infinity)",
      "translationInformation" : {
        "subEquations" : [ "theta[4](0 , tau) = sum((- 1)^(n)* (q)^((n)^(2)), n = - infinity..infinity)" ],
        "freeVariables" : [ "q", "tau", "theta[4]" ],
        "tokenTranslations" : {
          "\\theta" : "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" : [ {
    "section" : 2,
    "sentence" : 1,
    "word" : 24
  } ],
  "includes" : [ "\\tau", "q" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "nome",
    "score" : 0.7125985104912714
  }, {
    "definition" : "term of the half-period",
    "score" : 0.6859086196238077
  }, {
    "definition" : "term of the Dedekind eta function",
    "score" : 0.5988174995334326
  }, {
    "definition" : "Weierstrass 's elliptic function",
    "score" : 0.5500952380952381
  }, {
    "definition" : "fundamental pair of period",
    "score" : 0.5049074255814494
  }, {
    "definition" : "theta function",
    "score" : 0.5049074255814494
  } ]
}

Specify your own input