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 \mathrm{Li}_n(z)}

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

Semantic latex: L \iunit_n(z)

Confidence: 0

Mathematica

Translation: L*Subscript[I, n]*(z)

Information

Sub Equations

  • L*Subscript[I, n]*(z)

Free variables

  • L
  • n
  • z

Symbol info

  • Imaginary unit was translated to: I

Tests

Symbolic
Numeric

SymPy

Translation: L*Symbol('{I}_{n}')*(z)

Information

Sub Equations

  • L*Symbol('{I}_{n}')*(z)

Free variables

  • L
  • n
  • z

Symbol info

  • Imaginary unit was translated to: I

Tests

Symbolic
Numeric

Maple

Translation: L*I[n]*(z)

Information

Sub Equations

  • L*I[n]*(z)

Free variables

  • L
  • n
  • z

Symbol info

  • Imaginary unit was translated to: I

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Description

  • polylogarithm function
  • series
  • polylogarithm
  • special case
  • special case of the Lerch Zeta
  • Legendre chi function

Complete translation information:

{
  "id" : "FORMULA_9bd403fdc642d3f5e2894709f78b2743",
  "formula" : "\\mathrm{Li}_n(z)",
  "semanticFormula" : "L \\iunit_n(z)",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "L*Subscript[I, n]*(z)",
      "translationInformation" : {
        "subEquations" : [ "L*Subscript[I, n]*(z)" ],
        "freeVariables" : [ "L", "n", "z" ],
        "tokenTranslations" : {
          "\\iunit" : "Imaginary unit was translated to: I"
        }
      },
      "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" : "L*Symbol('{I}_{n}')*(z)",
      "translationInformation" : {
        "subEquations" : [ "L*Symbol('{I}_{n}')*(z)" ],
        "freeVariables" : [ "L", "n", "z" ],
        "tokenTranslations" : {
          "\\iunit" : "Imaginary unit was translated to: I"
        }
      },
      "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" : "L*I[n]*(z)",
      "translationInformation" : {
        "subEquations" : [ "L*I[n]*(z)" ],
        "freeVariables" : [ "L", "n", "z" ],
        "tokenTranslations" : {
          "\\iunit" : "Imaginary unit was translated to: I"
        }
      },
      "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" : 6,
    "sentence" : 0,
    "word" : 3
  } ],
  "includes" : [ "z" ],
  "isPartOf" : [ "\\,\\chi_n(z)=2^{-n}z \\Phi (z^2,n,1/2)", "\\Phi(z,s,a)=\\frac{1}{a^s}+\\sum_{m=0}^\\infty (1-m-s)_m \\operatorname{Li}_{s+m}(z)\\frac{a^m}{m!}; |a|<1", "\\,\\textrm{Li}_s(z)=z\\Phi(z,s,1)", "\\operatorname{Li}_s(z)", "\\Phi(z,s,a)=\\sum_{k=0}^n \\frac{z^k}{(a+k)^s}+z^n\\sum_{m=0}^\\infty (1-m-s)_{m}\\operatorname{Li}_{s+m}(z)\\frac{(a+n)^m}{m!};\\ a\\rightarrow-n" ],
  "definiens" : [ {
    "definition" : "polylogarithm function",
    "score" : 0.722
  }, {
    "definition" : "series",
    "score" : 0.5795132416441358
  }, {
    "definition" : "polylogarithm",
    "score" : 0.5472063310660241
  }, {
    "definition" : "special case",
    "score" : 0.5266136566361475
  }, {
    "definition" : "special case of the Lerch Zeta",
    "score" : 0.351598510491561
  }, {
    "definition" : "Legendre chi function",
    "score" : 0.32490861962881074
  } ]
}

Specify your own input