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 f(t) }

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

Semantic latex: f(t)

Confidence: 0

Mathematica

Translation: f[t]

Information

Sub Equations

  • f[t]

Free variables

  • t

Symbol info

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

Tests

Symbolic
Numeric

SymPy

Translation: f(t)

Information

Sub Equations

  • f(t)

Free variables

  • t

Symbol info

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

Tests

Symbolic
Numeric

Maple

Translation: f(t)

Information

Sub Equations

  • f(t)

Free variables

  • t

Symbol info

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

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Description

  • Hill equation
  • periodic function by minimal period
  • second-order linear ordinary differential equation
  • equation
  • mathematics
  • number
  • Hill differential equation
  • Fourier series
  • period
  • exact shape
  • solution
  • amplitude of the oscillation
  • time

Complete translation information:

{
  "id" : "FORMULA_d6e3af948a34fd5f432cb9d377a98ef0",
  "formula" : "f(t)",
  "semanticFormula" : "f(t)",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "f[t]",
      "translationInformation" : {
        "subEquations" : [ "f[t]" ],
        "freeVariables" : [ "t" ],
        "tokenTranslations" : {
          "f" : "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" : "f(t)",
      "translationInformation" : {
        "subEquations" : [ "f(t)" ],
        "freeVariables" : [ "t" ],
        "tokenTranslations" : {
          "f" : "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" : "f(t)",
      "translationInformation" : {
        "subEquations" : [ "f(t)" ],
        "freeVariables" : [ "t" ],
        "tokenTranslations" : {
          "f" : "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" : 0,
    "sentence" : 0,
    "word" : 24
  }, {
    "section" : 0,
    "sentence" : 3,
    "word" : 1
  }, {
    "section" : 0,
    "sentence" : 3,
    "word" : 17
  }, {
    "section" : 0,
    "sentence" : 6,
    "word" : 6
  } ],
  "includes" : [ "t" ],
  "isPartOf" : [ "\\frac{d^2y}{dt^2} + f(t) y = 0", "f(t+\\pi)=f(t)", "f(t+p) = f(t)" ],
  "definiens" : [ {
    "definition" : "Hill equation",
    "score" : 0.7543972134070743
  }, {
    "definition" : "periodic function by minimal period",
    "score" : 0.722
  }, {
    "definition" : "second-order linear ordinary differential equation",
    "score" : 0.7048095238095237
  }, {
    "definition" : "equation",
    "score" : 0.6793245439387732
  }, {
    "definition" : "mathematics",
    "score" : 0.6687181434333315
  }, {
    "definition" : "number",
    "score" : 0.6432331635625809
  }, {
    "definition" : "Hill differential equation",
    "score" : 0.6288842031023242
  }, {
    "definition" : "Fourier series",
    "score" : 0.5235032723960333
  }, {
    "definition" : "period",
    "score" : 0.4968133815285695
  }, {
    "definition" : "exact shape",
    "score" : 0.3730866057293667
  }, {
    "definition" : "solution",
    "score" : 0.3654644119836777
  }, {
    "definition" : "amplitude of the oscillation",
    "score" : 0.2593055947715278
  }, {
    "definition" : "time",
    "score" : 0.2593055947715278
  } ]
}

Specify your own input