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 wd\theta / 2\pi}

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

Semantic latex: wd \theta / 2 \cpi

Confidence: 0

Mathematica

Translation: w*d*\[Theta]/2*Pi

Information

Sub Equations

  • w*d*\[Theta]/2*Pi

Free variables

  • \[Theta]
  • d
  • w

Symbol info

  • Pi was translated to: Pi

Tests

Symbolic
Numeric

SymPy

Translation: w*d*Symbol('theta')/2*pi

Information

Sub Equations

  • w*d*Symbol('theta')/2*pi

Free variables

  • Symbol('theta')
  • d
  • w

Symbol info

  • Pi was translated to: pi

Tests

Symbolic
Numeric

Maple

Translation: w*d*theta/2*Pi

Information

Sub Equations

  • w*d*theta/2*Pi

Free variables

  • d
  • theta
  • w

Symbol info

  • Pi was translated to: Pi

Tests

Symbolic
Numeric

Dependency Graph Information

Is part of

Description

  • continuous part of the measure
  • Szegő 's theorem

Complete translation information:

{
  "id" : "FORMULA_9a1e49c2eba8a370317d5107c7cd6106",
  "formula" : "wd\\theta / 2\\pi",
  "semanticFormula" : "wd \\theta / 2 \\cpi",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "w*d*\\[Theta]/2*Pi",
      "translationInformation" : {
        "subEquations" : [ "w*d*\\[Theta]/2*Pi" ],
        "freeVariables" : [ "\\[Theta]", "d", "w" ],
        "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" : "w*d*Symbol('theta')/2*pi",
      "translationInformation" : {
        "subEquations" : [ "w*d*Symbol('theta')/2*pi" ],
        "freeVariables" : [ "Symbol('theta')", "d", "w" ],
        "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" : "w*d*theta/2*Pi",
      "translationInformation" : {
        "subEquations" : [ "w*d*theta/2*Pi" ],
        "freeVariables" : [ "d", "theta", "w" ],
        "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" : 0,
    "word" : 7
  } ],
  "includes" : [ ],
  "isPartOf" : [ "\\prod_{n = 1}^\\infty(1-|\\alpha_n|^2) = \\exp\\big(\\int_0^{2\\pi}\\log(w(\\theta))d\\theta/2\\pi\\big)" ],
  "definiens" : [ {
    "definition" : "continuous part of the measure",
    "score" : 0.7125985104912714
  }, {
    "definition" : "Szegő 's theorem",
    "score" : 0.5988174995334326
  } ]
}

Specify your own input