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 H\sqrt[3]{\ln T}e^{-c\sqrt{\ln\ln T}} }

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

Semantic latex: \HeavisideH@{x} \sqrt[3]{\ln T} \expe^{-c\sqrt{\ln\ln T}}

Confidence: 0.58614263533287

Mathematica

Translation:

Information

Symbol info

  • (LaTeX -> Mathematica) Error while translating DLMF/DRMF Macro: Unable to retrieve correct number of arguments for the macro \ln [\ln]

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

  • (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \HeavisideH [\HeavisideH]

Tests

Symbolic
Numeric

Maple

Translation:

Information

Symbol info

  • (LaTeX -> Maple) Error while translating DLMF/DRMF Macro: Unable to retrieve correct number of arguments for the macro \ln [\ln]

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Description

  • point
  • changes sign
  • function
  • interval
  • mean value theorem
  • theorem
  • result
  • interval of the real line

Complete translation information:

{
  "id" : "FORMULA_d8e4ed98b3001c3a51873a9b9b5801cb",
  "formula" : "H\\sqrt[3]{\\ln T}e^{-c\\sqrt{\\ln\\ln T}}",
  "semanticFormula" : "\\HeavisideH@{x} \\sqrt[3]{\\ln T} \\expe^{-c\\sqrt{\\ln\\ln T}}",
  "confidence" : 0.5861426353328741,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) Error while translating DLMF/DRMF Macro: Unable to retrieve correct number of arguments for the macro \\ln [\\ln]"
        }
      },
      "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) No translation possible for given token: Cannot extract information from feature set: \\HeavisideH [\\HeavisideH]"
        }
      },
      "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" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Maple) Error while translating DLMF/DRMF Macro: Unable to retrieve correct number of arguments for the macro \\ln [\\ln]"
        }
      },
      "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" : 13,
    "sentence" : 3,
    "word" : 36
  } ],
  "includes" : [ "H", "T", "c" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "point",
    "score" : 0.722
  }, {
    "definition" : "changes sign",
    "score" : 0.6460746792928004
  }, {
    "definition" : "function",
    "score" : 0.6460746792928004
  }, {
    "definition" : "interval",
    "score" : 0.6460746792928004
  }, {
    "definition" : "mean value theorem",
    "score" : 0.5988174995334326
  }, {
    "definition" : "theorem",
    "score" : 0.5988174995334326
  }, {
    "definition" : "result",
    "score" : 0.5500952380952381
  }, {
    "definition" : "interval of the real line",
    "score" : 0.5049074255814494
  } ]
}

Specify your own input