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 (0,\pm b)}

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

Semantic latex: (0,\pm b)

Confidence: 0

Mathematica

Translation: (0 , \[PlusMinus]b)

Information

Sub Equations

  • (0 , + b)
  • (0 , - b)

Free variables

  • b

Symbol info

  • was translated to: \[PlusMinus]

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

  • (LaTeX -> SymPy) An unknown or missing element occurred: Cannot translate operation \pm

Tests

Symbolic
Numeric

Maple

Translation: (0 , &+- b)

Information

Sub Equations

  • (0 , + b)
  • (0 , - b)

Free variables

  • b

Symbol info

  • was translated to: &+-

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Description

  • co-vertex
  • center of curvature
  • Radius of curvature

Complete translation information:

{
  "id" : "FORMULA_2e8c98888d4503b25f1ecc458bbd8ab2",
  "formula" : "(0,\\pm b)",
  "semanticFormula" : "(0,\\pm b)",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "(0 , \\[PlusMinus]b)",
      "translationInformation" : {
        "subEquations" : [ "(0 , + b)", "(0 , - b)" ],
        "freeVariables" : [ "b" ],
        "tokenTranslations" : {
          "\\pm" : "was translated to: \\[PlusMinus]"
        }
      },
      "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" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> SymPy) An unknown or missing element occurred: Cannot translate operation \\pm"
        }
      },
      "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" : "(0 , &+- b)",
      "translationInformation" : {
        "subEquations" : [ "(0 , + b)", "(0 , - b)" ],
        "freeVariables" : [ "b" ],
        "tokenTranslations" : {
          "\\pm" : "was translated to: &+-"
        }
      },
      "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" : 38,
    "sentence" : 2,
    "word" : 9
  } ],
  "includes" : [ "b" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "co-vertex",
    "score" : 0.722
  }, {
    "definition" : "center of curvature",
    "score" : 0.6859086196238077
  }, {
    "definition" : "Radius of curvature",
    "score" : 0.6460746792928004
  } ]
}

Specify your own input