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 4K, 2K, 2K, 4K, }

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

Semantic latex: 4K, 2K, 2K, 4K

Confidence: 0

Mathematica

Translation: 4*K , 2*K , 2*K , 4*K

Information

Sub Equations

  • 4*K , 2*K , 2*K , 4*K

Free variables

  • K

Tests

Symbolic
Numeric

SymPy

Translation: 4*K , 2*K , 2*K , 4*K

Information

Sub Equations

  • 4*K , 2*K , 2*K , 4*K

Free variables

  • K

Tests

Symbolic
Numeric

Maple

Translation: 4*K , 2*K , 2*K , 4*K

Information

Sub Equations

  • 4*K , 2*K , 2*K , 4*K

Free variables

  • K

Tests

Symbolic
Numeric

Dependency Graph Information

Description

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

Complete translation information:

{
  "id" : "FORMULA_3d22d2da48ea25a33f4d2f238dc205ec",
  "formula" : "4K, 2K, 2K, 4K",
  "semanticFormula" : "4K, 2K, 2K, 4K",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "4*K , 2*K , 2*K , 4*K",
      "translationInformation" : {
        "subEquations" : [ "4*K , 2*K , 2*K , 4*K" ],
        "freeVariables" : [ "K" ]
      },
      "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" : "4*K , 2*K , 2*K , 4*K",
      "translationInformation" : {
        "subEquations" : [ "4*K , 2*K , 2*K , 4*K" ],
        "freeVariables" : [ "K" ]
      },
      "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" : "4*K , 2*K , 2*K , 4*K",
      "translationInformation" : {
        "subEquations" : [ "4*K , 2*K , 2*K , 4*K" ],
        "freeVariables" : [ "K" ]
      },
      "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" : 42
  } ],
  "includes" : [ ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "period",
    "score" : 0.722
  }, {
    "definition" : "boundary condition",
    "score" : 0.6687181434333315
  }, {
    "definition" : "ellipsoidal wave",
    "score" : 0.6687181434333315
  }, {
    "definition" : "prime meaning",
    "score" : 0.6687181434333315
  }, {
    "definition" : "quarter period",
    "score" : 0.6687181434333315
  } ]
}

Specify your own input