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{Lc}(z)=z\log(2\sin \pi z)+\frac{1}{2\pi} \operatorname{Cl}_2(2\pi z).}

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

Semantic latex: \operatorname{Lc}(z) = z \log(2 \sin \cpi z) + \frac{1}{2 \cpi} \operatorname{Cl}_2(2 \cpi z)

Confidence: 0

Mathematica

Translation:

Information

Symbol info

  • (LaTeX -> Mathematica) The input LaTeX is invalid: The element Cl cannot be tagged as a function [Cl]

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

  • (LaTeX -> SymPy) The input LaTeX is invalid: The element Cl cannot be tagged as a function [Cl]

Tests

Symbolic
Numeric

Maple

Translation:

Information

Symbol info

  • (LaTeX -> Maple) The input LaTeX is invalid: The element Cl cannot be tagged as a function [Cl]

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Description

  • definition with the result
  • logtangent
  • relation

Complete translation information:

{
  "id" : "FORMULA_2c867bdb0f30460d03b1f6c5c2b05916",
  "formula" : "\\operatorname{Lc}(z)=z\\log(2\\sin \\pi z)+\\frac{1}{2\\pi} \\operatorname{Cl}_2(2\\pi z)",
  "semanticFormula" : "\\operatorname{Lc}(z) = z \\log(2 \\sin \\cpi z) + \\frac{1}{2 \\cpi} \\operatorname{Cl}_2(2 \\cpi z)",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) The input LaTeX is invalid: The element Cl cannot be tagged as a function [Cl]"
        }
      },
      "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) The input LaTeX is invalid: The element Cl cannot be tagged as a function [Cl]"
        }
      },
      "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) The input LaTeX is invalid: The element Cl cannot be tagged as a function [Cl]"
        }
      },
      "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" : 3,
    "sentence" : 4,
    "word" : 18
  } ],
  "includes" : [ "z", "\\operatorname{Lc}(z)", "\\, 2\\pi" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "definition with the result",
    "score" : 0.6460746792928004
  }, {
    "definition" : "logtangent",
    "score" : 0.6460746792928004
  }, {
    "definition" : "relation",
    "score" : 0.5988174995334326
  } ]
}

Specify your own input