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 K(k)}

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

Semantic latex: K(k)

Confidence: 0

Mathematica

Translation: K[k]

Information

Sub Equations

  • K[k]

Free variables

  • k

Symbol info

  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).

Tests

Symbolic
Numeric

SymPy

Translation: K(k)

Information

Sub Equations

  • K(k)

Free variables

  • k

Symbol info

  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).

Tests

Symbolic
Numeric

Maple

Translation: K(k)

Information

Sub Equations

  • K(k)

Free variables

  • k

Symbol info

  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Description

  • quarter period
  • boundary condition
  • ellipsoidal wave
  • period
  • prime meaning

Complete translation information:

{
  "id" : "FORMULA_7e75ad9449e77e769eb2fa0d0aee272d",
  "formula" : "K(k)",
  "semanticFormula" : "K(k)",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "K[k]",
      "translationInformation" : {
        "subEquations" : [ "K[k]" ],
        "freeVariables" : [ "k" ],
        "tokenTranslations" : {
          "K" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
        }
      },
      "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" : "K(k)",
      "translationInformation" : {
        "subEquations" : [ "K(k)" ],
        "freeVariables" : [ "k" ],
        "tokenTranslations" : {
          "K" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
        }
      },
      "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" : "K(k)",
      "translationInformation" : {
        "subEquations" : [ "K(k)" ],
        "freeVariables" : [ "k" ],
        "tokenTranslations" : {
          "K" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
        }
      },
      "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" : 2,
    "sentence" : 3,
    "word" : 8
  } ],
  "includes" : [ "k" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "quarter period",
    "score" : 0.722
  }, {
    "definition" : "boundary condition",
    "score" : 0.6687181434333315
  }, {
    "definition" : "ellipsoidal wave",
    "score" : 0.6687181434333315
  }, {
    "definition" : "period",
    "score" : 0.6687181434333315
  }, {
    "definition" : "prime meaning",
    "score" : 0.6687181434333315
  } ]
}

Specify your own input