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 F(x;k) = u}

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

Semantic latex: F(x;k) = u

Confidence: 0

Mathematica

Translation: F[x ; k] == u

Information

Sub Equations

  • F[x ; k] = u

Free variables

  • k
  • u
  • x

Symbol info

  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).

Tests

Symbolic

Test expression: (F*(x ; k))-(u)

ERROR:

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

SymPy

Translation: F(x ; k) == u

Information

Sub Equations

  • F(x ; k) = u

Free variables

  • k
  • u
  • x

Symbol info

  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).

Tests

Symbolic
Numeric

Maple

Translation: F(x ; k) = u

Information

Sub Equations

  • F(x ; k) = u

Free variables

  • k
  • u
  • x

Symbol info

  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).

Tests

Symbolic
Numeric

Dependency Graph Information

Description

  • TeX Source
  • f
  • link
  • x
  • Formula
  • Gold ID
  • u

Complete translation information:

{
  "id" : "FORMULA_04e9de23897a3b23dee1a9b7312ad99e",
  "formula" : "F(x;k) = u",
  "semanticFormula" : "F(x;k) = u",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "F[x ; k] == u",
      "translationInformation" : {
        "subEquations" : [ "F[x ; k] = u" ],
        "freeVariables" : [ "k", "u", "x" ],
        "tokenTranslations" : {
          "F" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
        }
      },
      "numericResults" : {
        "overallResult" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "wasAborted" : false,
        "crashed" : false,
        "testCalculationsGroups" : [ ]
      },
      "symbolicResults" : {
        "overallResult" : "ERROR",
        "numberOfTests" : 1,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 1,
        "crashed" : false,
        "testCalculationsGroup" : [ {
          "lhs" : "F*(x ; k)",
          "rhs" : "u",
          "testExpression" : "(F*(x ; k))-(u)",
          "testCalculations" : [ {
            "result" : "ERROR",
            "testTitle" : "Simple",
            "testExpression" : null,
            "resultExpression" : null,
            "wasAborted" : false,
            "conditionallySuccessful" : false
          } ]
        } ]
      }
    },
    "SymPy" : {
      "translation" : "F(x ; k) == u",
      "translationInformation" : {
        "subEquations" : [ "F(x ; k) = u" ],
        "freeVariables" : [ "k", "u", "x" ],
        "tokenTranslations" : {
          "F" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
        }
      }
    },
    "Maple" : {
      "translation" : "F(x ; k) = u",
      "translationInformation" : {
        "subEquations" : [ "F(x ; k) = u" ],
        "freeVariables" : [ "k", "u", "x" ],
        "tokenTranslations" : {
          "F" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
        }
      }
    }
  },
  "positions" : [ {
    "section" : 1,
    "sentence" : 0,
    "word" : 8
  } ],
  "includes" : [ ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "TeX Source",
    "score" : 0.722
  }, {
    "definition" : "f",
    "score" : 0.7125985104912714
  }, {
    "definition" : "link",
    "score" : 0.7125985104912714
  }, {
    "definition" : "x",
    "score" : 0.7125985104912714
  }, {
    "definition" : "Formula",
    "score" : 0.6859086196238077
  }, {
    "definition" : "Gold ID",
    "score" : 0.6859086196238077
  }, {
    "definition" : "u",
    "score" : 0.6859086196238077
  } ]
}

Specify your own input