Jeffro / LatexLambda / 1.1.2

Table of Contents:

  1. Introduction
  2. Examples
  3. Development
  4. Demo
  5. Contact


Convert Latex notation into Lambda functions in Python. The lambda function is the string value in the func property of the output JSON. The function could be assigned as any ordinary function by evaluating the string using the eval method or by simply copy and pasting the code.

  • Input:
    • Latex notation string. (Required)

  • Output:
    • Lambda function as string.

    • Parameters to lambda function.


  1. Using the summation operator.

    Input (String):


    Output (JSON):

               "func":"lambda α,β,ε,λ: sum([(λ**(α))/(β**(1-α)) for i in range(int(1),int(ε)+1)])",
               "params":["α", "β", "ε", "λ"]
  2. Using the product operator and trigonometric functions.

    Input (String):


    Output (JSON):

            "func":"lambda n,ß,α:[(np.arcsin(α)*np.sin(ß))/(np.sqrt(α*ß)) for i in range(int(1),int(n)+1)])",
            "params":["n", "ß", "α"]
  3. Evaluating the lambda function.

        >>> import numpy as np
        >>> func = lambda n,ß,α:[(np.arcsin(α)*np.sin(ß))/(np.sqrt(α*ß)) for i in range(int(1),int(n)+1))])
        >>> func(4,1,1)


TODO Features
  • ... Which features would you like to see?

Help support this project. The smallest amount makes a difference.