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 \tau=\frac{\omega_2}{\omega_1}}

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

Semantic latex: \tau=\frac{\omega_2}{\omega_1}

Confidence: 0

Mathematica

Translation: \[Tau] == Divide[Subscript[\[Omega], 2],Subscript[\[Omega], 1]]

Information

Sub Equations

  • \[Tau] = Divide[Subscript[\[Omega], 2],Subscript[\[Omega], 1]]

Free variables

  • Subscript[\[Omega], 1]
  • Subscript[\[Omega], 2]
  • \[Tau]

Tests

Symbolic
Numeric

SymPy

Translation: Symbol('tau') == (Symbol('{Symbol('omega')}_{2}'))/(Symbol('{Symbol('omega')}_{1}'))

Information

Sub Equations

  • Symbol('tau') = (Symbol('{Symbol('omega')}_{2}'))/(Symbol('{Symbol('omega')}_{1}'))

Free variables

  • Symbol('tau')
  • Symbol('{Symbol('omega')}_{1}')
  • Symbol('{Symbol('omega')}_{2}')

Tests

Symbolic
Numeric

Maple

Translation: tau = (omega[2])/(omega[1])

Information

Sub Equations

  • tau = (omega[2])/(omega[1])

Free variables

  • omega[1]
  • omega[2]
  • tau

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Description

  • fundamental pair of period
  • term of the Dedekind eta function
  • term of the half-period
  • theta function
  • nome
  • Weierstrass 's elliptic function

Complete translation information:

{
  "id" : "FORMULA_a51a3da31cb3727bdb11c5de07a8ee09",
  "formula" : "\\tau=\\frac{\\omega_2}{\\omega_1}",
  "semanticFormula" : "\\tau=\\frac{\\omega_2}{\\omega_1}",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "\\[Tau] == Divide[Subscript[\\[Omega], 2],Subscript[\\[Omega], 1]]",
      "translationInformation" : {
        "subEquations" : [ "\\[Tau] = Divide[Subscript[\\[Omega], 2],Subscript[\\[Omega], 1]]" ],
        "freeVariables" : [ "Subscript[\\[Omega], 1]", "Subscript[\\[Omega], 2]", "\\[Tau]" ]
      },
      "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" : "Symbol('tau') == (Symbol('{Symbol('omega')}_{2}'))/(Symbol('{Symbol('omega')}_{1}'))",
      "translationInformation" : {
        "subEquations" : [ "Symbol('tau') = (Symbol('{Symbol('omega')}_{2}'))/(Symbol('{Symbol('omega')}_{1}'))" ],
        "freeVariables" : [ "Symbol('tau')", "Symbol('{Symbol('omega')}_{1}')", "Symbol('{Symbol('omega')}_{2}')" ]
      },
      "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" : "tau = (omega[2])/(omega[1])",
      "translationInformation" : {
        "subEquations" : [ "tau = (omega[2])/(omega[1])" ],
        "freeVariables" : [ "omega[1]", "omega[2]", "tau" ]
      },
      "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" : 2,
    "sentence" : 1,
    "word" : 45
  } ],
  "includes" : [ "\\tau", "\\omega" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "fundamental pair of period",
    "score" : 0.7125985104912714
  }, {
    "definition" : "term of the Dedekind eta function",
    "score" : 0.6460746792928004
  }, {
    "definition" : "term of the half-period",
    "score" : 0.5500952380952381
  }, {
    "definition" : "theta function",
    "score" : 0.5500952380952381
  }, {
    "definition" : "nome",
    "score" : 0.5049074255814494
  }, {
    "definition" : "Weierstrass 's elliptic function",
    "score" : 0.4364921621676916
  } ]
}

Specify your own input