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 \,\chi_n(z)=2^{-n}z \Phi (z^2,n,1/2).}

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

Semantic latex: \chi_n(z)=2^{-n}z \Phi (z^2,n,1/2)

Confidence: 0

Mathematica

Translation: Subscript[\[Chi], n][z] == (2)^(- n)* z*\[CapitalPhi][(z)^(2), n , 1/2]

Information

Sub Equations

  • Subscript[\[Chi], n][z] = (2)^(- n)* z*\[CapitalPhi][(z)^(2), n , 1/2]

Free variables

  • Subscript[\[Chi], n]
  • \[CapitalPhi]
  • n
  • z

Symbol info

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

Tests

Symbolic
Numeric

SymPy

Translation: Symbol('{Symbol('chi')}_{n}')(z) == (2)**(- n)* z*Symbol('Phi')((z)**(2), n , 1/2)

Information

Sub Equations

  • Symbol('{Symbol('chi')}_{n}')(z) = (2)**(- n)* z*Symbol('Phi')((z)**(2), n , 1/2)

Free variables

  • Symbol('Phi')
  • Symbol('{Symbol('chi')}_{n}')
  • n
  • z

Symbol info

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

Tests

Symbolic
Numeric

Maple

Translation: chi[n](z) = (2)^(- n)* z*Phi((z)^(2), n , 1/2)

Information

Sub Equations

  • chi[n](z) = (2)^(- n)* z*Phi((z)^(2), n , 1/2)

Free variables

  • Phi
  • chi[n]
  • n
  • z

Symbol info

  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
  • 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

Complete translation information:

{
  "id" : "FORMULA_431e43f126f00a3103b84ae536b3c79d",
  "formula" : "\\chi_n(z)=2^{-n}z \\Phi (z^2,n,1/2)",
  "semanticFormula" : "\\chi_n(z)=2^{-n}z \\Phi (z^2,n,1/2)",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "Subscript[\\[Chi], n][z] == (2)^(- n)* z*\\[CapitalPhi][(z)^(2), n , 1/2]",
      "translationInformation" : {
        "subEquations" : [ "Subscript[\\[Chi], n][z] = (2)^(- n)* z*\\[CapitalPhi][(z)^(2), n , 1/2]" ],
        "freeVariables" : [ "Subscript[\\[Chi], n]", "\\[CapitalPhi]", "n", "z" ],
        "tokenTranslations" : {
          "\\Phi" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
          "\\chi" : "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" : "Symbol('{Symbol('chi')}_{n}')(z) == (2)**(- n)* z*Symbol('Phi')((z)**(2), n , 1/2)",
      "translationInformation" : {
        "subEquations" : [ "Symbol('{Symbol('chi')}_{n}')(z) = (2)**(- n)* z*Symbol('Phi')((z)**(2), n , 1/2)" ],
        "freeVariables" : [ "Symbol('Phi')", "Symbol('{Symbol('chi')}_{n}')", "n", "z" ],
        "tokenTranslations" : {
          "\\Phi" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
          "\\chi" : "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" : "chi[n](z) = (2)^(- n)* z*Phi((z)^(2), n , 1/2)",
      "translationInformation" : {
        "subEquations" : [ "chi[n](z) = (2)^(- n)* z*Phi((z)^(2), n , 1/2)" ],
        "freeVariables" : [ "Phi", "chi[n]", "n", "z" ],
        "tokenTranslations" : {
          "\\Phi" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
          "\\chi" : "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" : [ ],
  "includes" : [ "\\,\\chi_n(z)=2^{-n}z \\Phi (z^2,n,1/2)", "\\Phi(z,s,a)", "z", "\\mathrm{Li}_n(z)" ],
  "isPartOf" : [ "\\,\\chi_n(z)=2^{-n}z \\Phi (z^2,n,1/2)" ],
  "definiens" : [ ]
}

Specify your own input