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)}

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

Semantic latex: \operatorname{Lc}(z)

Confidence: 0

Mathematica

Translation: Lc[z]

Information

Sub Equations

  • Lc[z]

Free variables

  • z

Symbol info

  • Was interpreted as a function call because of a leading \operatorname.

Tests

Symbolic
Numeric

SymPy

Translation: Lc(z)

Information

Sub Equations

  • Lc(z)

Free variables

  • z

Symbol info

  • Was interpreted as a function call because of a leading \operatorname.

Tests

Symbolic
Numeric

Maple

Translation: Lc(z)

Information

Sub Equations

  • Lc(z)

Free variables

  • z

Symbol info

  • Was interpreted as a function call because of a leading \operatorname.

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Description

  • notation
  • evaluation of the cotangent integral
  • fact
  • integral substitution
  • integration by part
  • logcotangent
  • logtangent integral on the right-hand side
  • order
  • proof of this result
  • term of the Clausen function
  • definition with the result
  • logtangent
  • relation

Complete translation information:

{
  "id" : "FORMULA_78103d41971e02001a6a1cf7a988a8ce",
  "formula" : "\\operatorname{Lc}(z)",
  "semanticFormula" : "\\operatorname{Lc}(z)",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "Lc[z]",
      "translationInformation" : {
        "subEquations" : [ "Lc[z]" ],
        "freeVariables" : [ "z" ],
        "tokenTranslations" : {
          "Lc" : "Was interpreted as a function call because of a leading \\operatorname."
        }
      },
      "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" : "Lc(z)",
      "translationInformation" : {
        "subEquations" : [ "Lc(z)" ],
        "freeVariables" : [ "z" ],
        "tokenTranslations" : {
          "Lc" : "Was interpreted as a function call because of a leading \\operatorname."
        }
      },
      "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" : "Lc(z)",
      "translationInformation" : {
        "subEquations" : [ "Lc(z)" ],
        "freeVariables" : [ "z" ],
        "tokenTranslations" : {
          "Lc" : "Was interpreted as a function call because of a leading \\operatorname."
        }
      },
      "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" : 46
  } ],
  "includes" : [ "z" ],
  "isPartOf" : [ "\\begin{align}\\operatorname{Lc}(z) &= \\int_0^z\\pi x\\cot \\pi x\\,dx \\\\        &= z\\log(\\sin \\pi z)-\\int_0^z\\log(\\sin \\pi x)\\,dx \\\\        &= z\\log(\\sin \\pi z)-\\int_0^z\\Bigg[\\log(2\\sin \\pi x)-\\log 2\\Bigg]\\,dx \\\\        &= z\\log(2\\sin \\pi z)-\\int_0^z\\log(2\\sin \\pi x)\\,dx .\\end{align}", "\\operatorname{Lc}(z)=z\\log(2\\sin \\pi z)+\\frac{1}{2\\pi} \\operatorname{Cl}_2(2\\pi z)" ],
  "definiens" : [ {
    "definition" : "notation",
    "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" : "order",
    "score" : 0.6859086196238077
  }, {
    "definition" : "proof of this result",
    "score" : 0.6859086196238077
  }, {
    "definition" : "term of the Clausen function",
    "score" : 0.6859086196238077
  }, {
    "definition" : "definition with the result",
    "score" : 0.4741699173880385
  }, {
    "definition" : "logtangent",
    "score" : 0.4741699173880385
  }, {
    "definition" : "relation",
    "score" : 0.4269127376286707
  } ]
}

Specify your own input