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

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

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

Confidence: 0.72606363917343

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) No translation possible for given token: Cannot extract information from feature set: \BarnesG [\BarnesG]

Tests

Symbolic
Numeric

Maple

Translation:

Information

Symbol info

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

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Description

  • proof of this result
  • evaluation of the cotangent integral
  • fact
  • integral substitution
  • integration by part
  • logcotangent
  • logtangent integral on the right-hand side
  • notation
  • order
  • term of the Clausen function
  • different proof
  • Adamchik
  • equivalent form
  • equivalent form of the reflection formula
  • proof
  • ref
  • reflection formula by a factor
  • relation
  • slight rearrangement of term

Complete translation information:

{
  "id" : "FORMULA_4cde3a0a6426c3aec591765eaaadc8ee",
  "formula" : "2\\pi \\log\\left( \\frac{G(1-z)}{G(1+z)} \\right)= 2\\pi z\\log\\left(\\frac{\\sin\\pi z}{\\pi} \\right) + \\operatorname{Cl}_2(2\\pi z)",
  "semanticFormula" : "2 \\cpi \\log(\\frac{\\BarnesG@{1 - z}}{\\BarnesG@{1 + z}}) = 2 \\cpi z \\log(\\frac{\\sin \\cpi z}{\\cpi}) + \\operatorname{Cl}_2(2 \\cpi z)",
  "confidence" : 0.7260636391734279,
  "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) No translation possible for given token: Cannot extract information from feature set: \\BarnesG [\\BarnesG]"
        }
      },
      "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) No translation possible for given token: Cannot extract information from feature set: \\BarnesG [\\BarnesG]"
        }
      },
      "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" : 1,
    "word" : 27
  } ],
  "includes" : [ "G", "z", "\\, 2\\pi" ],
  "isPartOf" : [ "2\\pi \\log\\left( \\frac{G(1-z)}{G(1+z)} \\right)= 2\\pi z\\log\\left(\\frac{\\sin\\pi z}{\\pi} \\right)+\\operatorname{Cl}_2(2\\pi z)\\, . \\, \\Box" ],
  "definiens" : [ {
    "definition" : "proof of this result",
    "score" : 0.722
  }, {
    "definition" : "evaluation of the cotangent integral",
    "score" : 0.6859086196238077
  }, {
    "definition" : "fact",
    "score" : 0.6859086196238077
  }, {
    "definition" : "integral substitution",
    "score" : 0.6859086196238077
  }, {
    "definition" : "integration by part",
    "score" : 0.6859086196238077
  }, {
    "definition" : "logcotangent",
    "score" : 0.6859086196238077
  }, {
    "definition" : "logtangent integral on the right-hand side",
    "score" : 0.6859086196238077
  }, {
    "definition" : "notation",
    "score" : 0.6859086196238077
  }, {
    "definition" : "order",
    "score" : 0.6859086196238077
  }, {
    "definition" : "term of the Clausen function",
    "score" : 0.6859086196238077
  }, {
    "definition" : "different proof",
    "score" : 0.4690549350834092
  }, {
    "definition" : "Adamchik",
    "score" : 0.44236504421594536
  }, {
    "definition" : "equivalent form",
    "score" : 0.44236504421594536
  }, {
    "definition" : "equivalent form of the reflection formula",
    "score" : 0.44236504421594536
  }, {
    "definition" : "proof",
    "score" : 0.44236504421594536
  }, {
    "definition" : "ref",
    "score" : 0.44236504421594536
  }, {
    "definition" : "reflection formula by a factor",
    "score" : 0.44236504421594536
  }, {
    "definition" : "relation",
    "score" : 0.44236504421594536
  }, {
    "definition" : "slight rearrangement of term",
    "score" : 0.44236504421594536
  } ]
}

Specify your own input