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 \Omega}

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

Semantic latex: \Omega

Confidence: 0

Mathematica

Translation: \[CapitalOmega]

Information

Sub Equations

  • \[CapitalOmega]

Free variables

  • \[CapitalOmega]

Symbol info

  • Could be The omega constant == the Adamchik constant.

But this system doesn't know how to translate it as a constant. It was translated as a general letter.

Tests

Symbolic
Numeric

SymPy

Translation: Symbol('Omega')

Information

Sub Equations

  • Symbol('Omega')

Free variables

  • Symbol('Omega')

Symbol info

  • Could be The omega constant == the Adamchik constant.

But this system doesn't know how to translate it as a constant. It was translated as a general letter.

Tests

Symbolic
Numeric

Maple

Translation: Omega

Information

Sub Equations

  • Omega

Free variables

  • Omega

Symbol info

  • Could be The omega constant == the Adamchik constant.

But this system doesn't know how to translate it as a constant. It was translated as a general letter.

Tests

Symbolic
Numeric

Dependency Graph Information

Is part of

Description

  • equation
  • constant
  • ellipsoidal equation
  • ellipsoidal wave equation
  • elliptic modulus of the Jacobian elliptic function
  • general form of Lamé 's equation
  • Lamé equation
  • Mathieu equation
  • term
  • asymptotic expansion
  • boundary condition
  • eigenvalue
  • Ince
  • Müller
  • odd integer

Complete translation information:

{
  "id" : "FORMULA_2e9ef3d6ef62a48d70720728d3e90e31",
  "formula" : "\\Omega",
  "semanticFormula" : "\\Omega",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "\\[CapitalOmega]",
      "translationInformation" : {
        "subEquations" : [ "\\[CapitalOmega]" ],
        "freeVariables" : [ "\\[CapitalOmega]" ],
        "tokenTranslations" : {
          "\\Omega" : "Could be The omega constant == the Adamchik constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\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" : "Symbol('Omega')",
      "translationInformation" : {
        "subEquations" : [ "Symbol('Omega')" ],
        "freeVariables" : [ "Symbol('Omega')" ],
        "tokenTranslations" : {
          "\\Omega" : "Could be The omega constant == the Adamchik constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\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" : "Omega",
      "translationInformation" : {
        "subEquations" : [ "Omega" ],
        "freeVariables" : [ "Omega" ],
        "tokenTranslations" : {
          "\\Omega" : "Could be The omega constant == the Adamchik constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\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" : 1,
    "sentence" : 4,
    "word" : 48
  } ],
  "includes" : [ ],
  "isPartOf" : [ "\\frac{d^2y}{dx^2} + (\\Lambda - \\kappa^2 \\operatorname{sn}^2x - \\Omega^2k^4 \\operatorname{sn}^4x)y = 0", "\\Omega = 0", "\\Omega = 0, k = 0, \\kappa = 2h, \\Lambda -2h^2 = \\lambda, x= z \\pm \\frac{\\pi}{2}", "\\begin{align}\\Lambda(q) = {} & q\\kappa - \\frac{1}{2^3}(1+k^2)(q^2+1) - \\frac{q}{2^6\\kappa}\\{(1+k^2)^2(q^2+3) - 4k^2(q^2+5)\\} \\\\[6pt]& {} -\\frac{1}{2^{10}\\kappa^2} \\Big\\{(1+k^2)^3(5q^4+34q^2+9) - 4k^2(1+k^2)(5q^4+34q^2+9) \\\\[6pt]& {} - 384\\Omega^2k^4(q^2+1)\\Big\\} - \\cdots ,\\end{align}" ],
  "definiens" : [ {
    "definition" : "equation",
    "score" : 0.7751754969920388
  }, {
    "definition" : "constant",
    "score" : 0.722
  }, {
    "definition" : "ellipsoidal equation",
    "score" : 0.6601229053380933
  }, {
    "definition" : "ellipsoidal wave equation",
    "score" : 0.6601229053380933
  }, {
    "definition" : "elliptic modulus of the Jacobian elliptic function",
    "score" : 0.6601229053380933
  }, {
    "definition" : "general form of Lamé 's equation",
    "score" : 0.6601229053380933
  }, {
    "definition" : "Lamé equation",
    "score" : 0.6346379254673428
  }, {
    "definition" : "Mathieu equation",
    "score" : 0.5689677394864224
  }, {
    "definition" : "term",
    "score" : 0.3999578143176412
  }, {
    "definition" : "asymptotic expansion",
    "score" : 0.31698488450476003
  }, {
    "definition" : "boundary condition",
    "score" : 0.31698488450476003
  }, {
    "definition" : "eigenvalue",
    "score" : 0.31698488450476003
  }, {
    "definition" : "Ince",
    "score" : 0.31698488450476003
  }, {
    "definition" : "Müller",
    "score" : 0.31698488450476003
  }, {
    "definition" : "odd integer",
    "score" : 0.31698488450476003
  } ]
}

Specify your own input