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 A}

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

Semantic latex: A

Confidence: 0

Mathematica

Translation: A

Information

Sub Equations

  • A

Free variables

  • A

Tests

Symbolic
Numeric

SymPy

Translation: A

Information

Sub Equations

  • A

Free variables

  • A

Tests

Symbolic
Numeric

Maple

Translation: A

Information

Sub Equations

  • A

Free variables

  • A

Tests

Symbolic
Numeric

Dependency Graph Information

Is part of

Description

  • Glaisher -- Kinkelin
  • derivative of the Riemann zeta function
  • Bernoulli number
  • asymptotic expansion
  • logarithm
  • Barnes

Complete translation information:

{
  "id" : "FORMULA_7fc56270e7a70fa81a5935b72eacbe29",
  "formula" : "A",
  "semanticFormula" : "A",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "A",
      "translationInformation" : {
        "subEquations" : [ "A" ],
        "freeVariables" : [ "A" ]
      },
      "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" : "A",
      "translationInformation" : {
        "subEquations" : [ "A" ],
        "freeVariables" : [ "A" ]
      },
      "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" : "A",
      "translationInformation" : {
        "subEquations" : [ "A" ],
        "freeVariables" : [ "A" ]
      },
      "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" : 1,
    "word" : 11
  }, {
    "section" : 7,
    "sentence" : 0,
    "word" : 24
  } ],
  "includes" : [ ],
  "isPartOf" : [ "\\begin{align}\\log G(z+1) = {} & \\frac{z^2}{2} \\log z - \\frac{3z^2}{4} + \\frac{z}{2}\\log 2\\pi -\\frac{1}{12} \\log z \\\\            & {} + \\left(\\frac{1}{12}-\\log A \\right)            +\\sum_{k=1}^N \\frac{B_{2k + 2}}{4k\\left(k + 1\\right)z^{2k}}+O\\left(\\frac{1}{z^{2N + 2}}\\right).\\end{align}" ],
  "definiens" : [ {
    "definition" : "Glaisher -- Kinkelin",
    "score" : 0.8869384888466118
  }, {
    "definition" : "derivative of the Riemann zeta function",
    "score" : 0.6687181434333315
  }, {
    "definition" : "Bernoulli number",
    "score" : 0.6042528684491243
  }, {
    "definition" : "asymptotic expansion",
    "score" : 0.5377290372506534
  }, {
    "definition" : "logarithm",
    "score" : 0.5377290372506534
  }, {
    "definition" : "Barnes",
    "score" : 0.441749596053091
  } ]
}

Specify your own input