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_2(0,\tau) = \sum_{n=-\infty}^\infty q^{\left({n+\frac12}\right)^2}}

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

Semantic latex: \theta_2(0 , \tau) = \sum_{n=-\infty}^\infty q^{({n+\frac12})^2}

Confidence: 0

Mathematica

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

Information

Sub Equations

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

Free variables

  • Subscript[\[Theta], 2]
  • \[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')}_{2}')(0 , Symbol('tau')) == Sum((q)**((n +(1)/(2))**(2)), (n, - oo, oo))

Information

Sub Equations

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

Free variables

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

Symbol info

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

Tests

Symbolic
Numeric

Maple

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

Information

Sub Equations

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

Free variables

  • q
  • tau
  • theta[2]

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_8ded10ffd08721d47fad55c6f236a8e9",
  "formula" : "\\theta_2(0,\\tau) = \\sum_{n=-\\infty}^\\infty q^{\\left({n+\\frac12}\\right)^2}",
  "semanticFormula" : "\\theta_2(0 , \\tau) = \\sum_{n=-\\infty}^\\infty q^{({n+\\frac12})^2}",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "Subscript[\\[Theta], 2][0 , \\[Tau]] == Sum[(q)^((n +Divide[1,2])^(2)), {n, - Infinity, Infinity}, GenerateConditions->None]",
      "translationInformation" : {
        "subEquations" : [ "Subscript[\\[Theta], 2][0 , \\[Tau]] = Sum[(q)^((n +Divide[1,2])^(2)), {n, - Infinity, Infinity}, GenerateConditions->None]" ],
        "freeVariables" : [ "Subscript[\\[Theta], 2]", "\\[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')}_{2}')(0 , Symbol('tau')) == Sum((q)**((n +(1)/(2))**(2)), (n, - oo, oo))",
      "translationInformation" : {
        "subEquations" : [ "Symbol('{Symbol('theta')}_{2}')(0 , Symbol('tau')) = Sum((q)**((n +(1)/(2))**(2)), (n, - oo, oo))" ],
        "freeVariables" : [ "Symbol('tau')", "Symbol('{Symbol('theta')}_{2}')", "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[2](0 , tau) = sum((q)^((n +(1)/(2))^(2)), n = - infinity..infinity)",
      "translationInformation" : {
        "subEquations" : [ "theta[2](0 , tau) = sum((q)^((n +(1)/(2))^(2)), n = - infinity..infinity)" ],
        "freeVariables" : [ "q", "tau", "theta[2]" ],
        "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" : 22
  } ],
  "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