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 \pi(x)}

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

Semantic latex: \cpi(x)

Confidence: 0

Mathematica

Translation: Pi*(x)

Information

Sub Equations

  • Pi*(x)

Free variables

  • x

Symbol info

  • Pi was translated to: Pi

Tests

Symbolic
Numeric

SymPy

Translation: pi*(x)

Information

Sub Equations

  • pi*(x)

Free variables

  • x

Symbol info

  • Pi was translated to: pi

Tests

Symbolic
Numeric

Maple

Translation: Pi*(x)

Information

Sub Equations

  • Pi*(x)

Free variables

  • x

Symbol info

  • Pi was translated to: Pi

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Description

  • prime number theorem state
  • example
  • number of prime
  • Riemann hypothesis

Complete translation information:

{
  "id" : "FORMULA_e5cb16c20d9f01bbbfe8f299e28d1f4b",
  "formula" : "\\pi(x)",
  "semanticFormula" : "\\cpi(x)",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "Pi*(x)",
      "translationInformation" : {
        "subEquations" : [ "Pi*(x)" ],
        "freeVariables" : [ "x" ],
        "tokenTranslations" : {
          "\\cpi" : "Pi was translated to: Pi"
        }
      },
      "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" : "pi*(x)",
      "translationInformation" : {
        "subEquations" : [ "pi*(x)" ],
        "freeVariables" : [ "x" ],
        "tokenTranslations" : {
          "\\cpi" : "Pi was translated to: pi"
        }
      },
      "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" : "Pi*(x)",
      "translationInformation" : {
        "subEquations" : [ "Pi*(x)" ],
        "freeVariables" : [ "x" ],
        "tokenTranslations" : {
          "\\cpi" : "Pi was translated to: Pi"
        }
      },
      "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" : 12
  } ],
  "includes" : [ "x)", "x" ],
  "isPartOf" : [ "\\pi(x)\\sim\\operatorname{Li}(x)", "\\operatorname{Li}(x)-\\pi(x) = O(\\sqrt{x}\\log x)" ],
  "definiens" : [ {
    "definition" : "prime number theorem state",
    "score" : 0.7125985104912714
  }, {
    "definition" : "example",
    "score" : 0.6859086196238077
  }, {
    "definition" : "number of prime",
    "score" : 0.6859086196238077
  }, {
    "definition" : "Riemann hypothesis",
    "score" : 0.6205896994220499
  } ]
}

Specify your own input