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 \operatorname{sn}}

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

Semantic latex: \operatorname{sn}

Confidence: 0

Mathematica

Translation: s*n

Information

Sub Equations

  • s*n

Free variables

  • n
  • s

Symbol info

  • Was interpreted as a function call because of a leading \operatorname.

Tests

Symbolic
Numeric

SymPy

Translation: s*n

Information

Sub Equations

  • s*n

Free variables

  • n
  • s

Symbol info

  • Was interpreted as a function call because of a leading \operatorname.

Tests

Symbolic
Numeric

Maple

Translation: s*n

Information

Sub Equations

  • s*n

Free variables

  • n
  • s

Symbol info

  • Was interpreted as a function call because of a leading \operatorname.

Tests

Symbolic
Numeric

Dependency Graph Information

Is part of

Description

  • elliptic sine function
  • case
  • elliptic modulus
  • integer
  • meromorphic function
  • solution
  • whole complex plane
  • important case
  • algebraic form
  • constant
  • ellipsoidal equation
  • ellipsoidal wave equation
  • elliptic modulus of the Jacobian elliptic function
  • general form of Lamé 's equation
  • Lamé 's equation
  • change
  • special case of Heun 's equation

Complete translation information:

{
  "id" : "FORMULA_acda49fda866da686f6c4e602dfad7f6",
  "formula" : "\\operatorname{sn}",
  "semanticFormula" : "\\operatorname{sn}",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "s*n",
      "translationInformation" : {
        "subEquations" : [ "s*n" ],
        "freeVariables" : [ "n", "s" ],
        "tokenTranslations" : {
          "sn" : "Was interpreted as a function call because of a leading \\operatorname."
        }
      },
      "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" : "s*n",
      "translationInformation" : {
        "subEquations" : [ "s*n" ],
        "freeVariables" : [ "n", "s" ],
        "tokenTranslations" : {
          "sn" : "Was interpreted as a function call because of a leading \\operatorname."
        }
      },
      "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" : "s*n",
      "translationInformation" : {
        "subEquations" : [ "s*n" ],
        "freeVariables" : [ "n", "s" ],
        "tokenTranslations" : {
          "sn" : "Was interpreted as a function call because of a leading \\operatorname."
        }
      },
      "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" : 1,
    "word" : 9
  } ],
  "includes" : [ ],
  "isPartOf" : [ "B\\weierp(x) = - \\kappa^2 \\operatorname{sn}^2x", "t=\\operatorname{sn} x", "\\frac{d^2y}{dx^2} + (\\Lambda - \\kappa^2 \\operatorname{sn}^2x - \\Omega^2k^4 \\operatorname{sn}^4x)y = 0" ],
  "definiens" : [ {
    "definition" : "elliptic sine function",
    "score" : 0.722
  }, {
    "definition" : "case",
    "score" : 0.6859086196238077
  }, {
    "definition" : "elliptic modulus",
    "score" : 0.6859086196238077
  }, {
    "definition" : "integer",
    "score" : 0.6859086196238077
  }, {
    "definition" : "meromorphic function",
    "score" : 0.6859086196238077
  }, {
    "definition" : "solution",
    "score" : 0.6859086196238077
  }, {
    "definition" : "whole complex plane",
    "score" : 0.6859086196238077
  }, {
    "definition" : "important case",
    "score" : 0.6460746792928004
  }, {
    "definition" : "algebraic form",
    "score" : 0.5549195134411294
  }, {
    "definition" : "constant",
    "score" : 0.5406937485865095
  }, {
    "definition" : "ellipsoidal equation",
    "score" : 0.5140038577190457
  }, {
    "definition" : "ellipsoidal wave equation",
    "score" : 0.5140038577190457
  }, {
    "definition" : "elliptic modulus of the Jacobian elliptic function",
    "score" : 0.5140038577190457
  }, {
    "definition" : "general form of Lamé 's equation",
    "score" : 0.5140038577190457
  }, {
    "definition" : "Lamé 's equation",
    "score" : 0.5076623336817617
  }, {
    "definition" : "change",
    "score" : 0.4589400722435672
  }, {
    "definition" : "special case of Heun 's equation",
    "score" : 0.4589400722435672
  } ]
}

Specify your own input