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 \Pi(n,k) = \int_0^{\pi/2} \frac{\mathrm{d} \theta} {(1 - n \sin^2 \theta) \sqrt{1 - k^2 \sin^2 \theta}} = \frac {\pi} {2} \,F_1(\tfrac 1 2, 1, \tfrac 1 2, 1; n,k^2) ~. }

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

Semantic latex: \Pi(n , k) = \int_0^{\cpi / 2} \frac{\mathrm{d} \theta} {(1 - n \sin^2 \theta) \sqrt{1 - k^2 \sin^2 \theta}} = \frac{\cpi}{2} F_1(\tfrac 12 , 1 , \tfrac 12 , 1 ; n , k^2)

Confidence: 0

Mathematica

Translation:

Information

Symbol info

  • (LaTeX -> Mathematica) The input LaTeX is invalid: Unable to retrieve free variables for limit expression.

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

  • (LaTeX -> SymPy) The input LaTeX is invalid: Unable to retrieve free variables for limit expression.

Tests

Symbolic
Numeric

Maple

Translation:

Information

Symbol info

  • (LaTeX -> Maple) The input LaTeX is invalid: Unable to retrieve free variables for limit expression.

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Complete translation information:

{
  "id" : "FORMULA_7d909e3b1d63ae439cc37479f68118ed",
  "formula" : "\\Pi(n,k) = \\int_0^{\\pi/2} \\frac{\\mathrm{d} \\theta} {(1 - n \\sin^2 \\theta) \n\\sqrt{1 - k^2 \\sin^2 \\theta}} = \\frac {\\pi} {2} F_1(\\tfrac 12, 1, \\tfrac 12, 1; \nn,k^2) ~",
  "semanticFormula" : "\\Pi(n , k) = \\int_0^{\\cpi / 2} \\frac{\\mathrm{d} \\theta} {(1 - n \\sin^2 \\theta) \n\\sqrt{1 - k^2 \\sin^2 \\theta}} = \\frac{\\cpi}{2} F_1(\\tfrac 12 , 1 , \\tfrac 12 , 1 ; n , k^2)",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) The input LaTeX is invalid: Unable to retrieve free variables for limit expression."
        }
      },
      "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: Unable to retrieve free variables for limit expression."
        }
      },
      "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: Unable to retrieve free variables for limit expression."
        }
      },
      "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" : [ ],
  "includes" : [ "\\Pi(n,k) = \\int_0^{\\pi/2} \\frac{\\mathrm{d} \\theta} {(1 - n \\sin^2 \\theta) \\sqrt{1 - k^2 \\sin^2 \\theta}} = \\frac {\\pi} {2} \\,F_1(\\tfrac 1 2, 1, \\tfrac 1 2, 1; n,k^2)", "F_{1}", "F", "\\Pi" ],
  "isPartOf" : [ "\\Pi(n,k) = \\int_0^{\\pi/2} \\frac{\\mathrm{d} \\theta} {(1 - n \\sin^2 \\theta) \\sqrt{1 - k^2 \\sin^2 \\theta}} = \\frac {\\pi} {2} \\,F_1(\\tfrac 1 2, 1, \\tfrac 1 2, 1; n,k^2)" ],
  "definiens" : [ ]
}

Specify your own input