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 \tbinom{n}{k}}

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

Semantic latex: \tbinom{n}{k}

Confidence: 0

Mathematica

Translation: Binomial[n,k]

Information

Sub Equations

  • Binomial[n,k]

Free variables

  • k
  • n

Tests

Symbolic
Numeric

SymPy

Translation: binomial(n,k)

Information

Sub Equations

  • binomial(n,k)

Free variables

  • k
  • n

Tests

Symbolic
Numeric

Maple

Translation: binomial(n,k)

Information

Sub Equations

  • binomial(n,k)

Free variables

  • k
  • n

Tests

Symbolic
Numeric

Dependency Graph Information

Is part of

Description

  • binomial coefficient
  • series representation for the Lerch
  • note

Complete translation information:

{
  "id" : "FORMULA_3eeadfda1f542d8bcd7b493e964cbb44",
  "formula" : "\\tbinom{n}{k}",
  "semanticFormula" : "\\tbinom{n}{k}",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "Binomial[n,k]",
      "translationInformation" : {
        "subEquations" : [ "Binomial[n,k]" ],
        "freeVariables" : [ "k", "n" ]
      },
      "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" : "binomial(n,k)",
      "translationInformation" : {
        "subEquations" : [ "binomial(n,k)" ],
        "freeVariables" : [ "k", "n" ]
      },
      "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" : "binomial(n,k)",
      "translationInformation" : {
        "subEquations" : [ "binomial(n,k)" ],
        "freeVariables" : [ "k", "n" ]
      },
      "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" : 5,
    "sentence" : 1,
    "word" : 3
  } ],
  "includes" : [ ],
  "isPartOf" : [ "\\Phi(z,s,q)=\\frac{1}{1-z} \\sum_{n=0}^\\infty \\left(\\frac{-z}{1-z} \\right)^n\\sum_{k=0}^n (-1)^k \\binom{n}{k} (q+k)^{-s}" ],
  "definiens" : [ {
    "definition" : "binomial coefficient",
    "score" : 0.722
  }, {
    "definition" : "series representation for the Lerch",
    "score" : 0.660423639753057
  }, {
    "definition" : "note",
    "score" : 0.6460746792928004
  } ]
}

Specify your own input