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 m+n\ge l \ge m-n}

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

Semantic latex: m+n\ge l \ge m-n

Confidence: 0

Mathematica

Translation: m + n >= l >= m - n

Information

Sub Equations

  • m + n >= l
  • l >= m - n

Free variables

  • l
  • m
  • n

Tests

Symbolic

Test expression: m + n\geql

ERROR:

{
    "result": "ERROR",
    "testTitle": "Simple",
    "testExpression": null,
    "resultExpression": null,
    "wasAborted": false,
    "conditionallySuccessful": false
}

Test expression: l\geqm - n

ERROR:

{
    "result": "ERROR",
    "testTitle": "Simple",
    "testExpression": null,
    "resultExpression": null,
    "wasAborted": false,
    "conditionallySuccessful": false
}
Numeric

SymPy

Translation: m + n >= l >= m - n

Information

Sub Equations

  • m + n >= l
  • l >= m - n

Free variables

  • l
  • m
  • n

Tests

Symbolic
Numeric

Maple

Translation: m + n >= l >= m - n

Information

Sub Equations

  • m + n >= l
  • l >= m - n

Free variables

  • l
  • m
  • n

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Description

  • order
  • degree
  • formula
  • non-negative integer
  • Dong
  • arbitrary number
  • assumption
  • derivation of this formula
  • Gaunt 's formula
  • integer
  • integral
  • integral over a product
  • Legendre polynomial
  • Lemus
  • Other quantity
  • sum of degree
  • triangular condition

Complete translation information:

{
  "id" : "FORMULA_92b70295d773248a6364f897ff75339e",
  "formula" : "m+n\\ge l \\ge m-n",
  "semanticFormula" : "m+n\\ge l \\ge m-n",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "m + n >= l >= m - n",
      "translationInformation" : {
        "subEquations" : [ "m + n >= l", "l >= m - n" ],
        "freeVariables" : [ "l", "m", "n" ]
      },
      "numericResults" : {
        "overallResult" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "wasAborted" : false,
        "crashed" : false,
        "testCalculationsGroups" : [ ]
      },
      "symbolicResults" : {
        "overallResult" : "ERROR",
        "numberOfTests" : 2,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 2,
        "crashed" : false,
        "testCalculationsGroup" : [ {
          "lhs" : "m + n",
          "rhs" : "l",
          "testExpression" : "m + n\\geql",
          "testCalculations" : [ {
            "result" : "ERROR",
            "testTitle" : "Simple",
            "testExpression" : null,
            "resultExpression" : null,
            "wasAborted" : false,
            "conditionallySuccessful" : false
          } ]
        }, {
          "lhs" : "l",
          "rhs" : "m - n",
          "testExpression" : "l\\geqm - n",
          "testCalculations" : [ {
            "result" : "ERROR",
            "testTitle" : "Simple",
            "testExpression" : null,
            "resultExpression" : null,
            "wasAborted" : false,
            "conditionallySuccessful" : false
          } ]
        } ]
      }
    },
    "SymPy" : {
      "translation" : "m + n >= l >= m - n",
      "translationInformation" : {
        "subEquations" : [ "m + n >= l", "l >= m - n" ],
        "freeVariables" : [ "l", "m", "n" ]
      }
    },
    "Maple" : {
      "translation" : "m + n >= l >= m - n",
      "translationInformation" : {
        "subEquations" : [ "m + n >= l", "l >= m - n" ],
        "freeVariables" : [ "l", "m", "n" ]
      }
    }
  },
  "positions" : [ {
    "section" : 9,
    "sentence" : 2,
    "word" : 82
  } ],
  "includes" : [ "m", "\\ge" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "order",
    "score" : 0.9062395022034093
  }, {
    "definition" : "degree",
    "score" : 0.828523764440511
  }, {
    "definition" : "formula",
    "score" : 0.828523764440511
  }, {
    "definition" : "non-negative integer",
    "score" : 0.828523764440511
  }, {
    "definition" : "Dong",
    "score" : 0.722
  }, {
    "definition" : "arbitrary number",
    "score" : 0.6629879847031728
  }, {
    "definition" : "assumption",
    "score" : 0.6629879847031728
  }, {
    "definition" : "derivation of this formula",
    "score" : 0.6629879847031728
  }, {
    "definition" : "Gaunt 's formula",
    "score" : 0.6629879847031728
  }, {
    "definition" : "integer",
    "score" : 0.6629879847031728
  }, {
    "definition" : "integral",
    "score" : 0.6629879847031728
  }, {
    "definition" : "integral over a product",
    "score" : 0.6629879847031728
  }, {
    "definition" : "Legendre polynomial",
    "score" : 0.6629879847031728
  }, {
    "definition" : "Lemus",
    "score" : 0.6629879847031728
  }, {
    "definition" : "Other quantity",
    "score" : 0.6629879847031728
  }, {
    "definition" : "sum of degree",
    "score" : 0.6629879847031728
  }, {
    "definition" : "triangular condition",
    "score" : 0.6629879847031728
  } ]
}

Specify your own input