CODEPROGRAMMER Telegram 2685
🖥 Latexify: Generates LaTeX math description from Python functions.

Cool Python library that allows you to display functions in LaTeX format


pip install latexify

That is, you simply define the function as usual, like this:
def quadratic(a,b,c):
return (-b + math.sqrt(b**2 - 4*a*c)) / (2*a)


To output a LaTeX formula, we simply place the @latexify.function decorator above the function definition and print the function name quadratic in the Google Colab cell.
It turns out like this - and we will see the formula:
@latexify.function
def quadratic(a,b,c):
return (-b + math.sqrt(b**2 - 4*a*c)) / (2*a)

quadratic


Perfect for those who study at the intersection of IT and physics/mathematics/other disciplines;
Here in Google Colab you can test how it works

🖥 GitHub

🪄 https://www.tgoop.com/codeprogrammer 🖼
Please open Telegram to view this post
VIEW IN TELEGRAM
👍225💯2



tgoop.com/CodeProgrammer/2685
Create:
Last Update:

🖥 Latexify: Generates LaTeX math description from Python functions.

Cool Python library that allows you to display functions in LaTeX format


pip install latexify

That is, you simply define the function as usual, like this:

def quadratic(a,b,c):
return (-b + math.sqrt(b**2 - 4*a*c)) / (2*a)


To output a LaTeX formula, we simply place the @latexify.function decorator above the function definition and print the function name quadratic in the Google Colab cell.
It turns out like this - and we will see the formula:
@latexify.function
def quadratic(a,b,c):
return (-b + math.sqrt(b**2 - 4*a*c)) / (2*a)

quadratic


Perfect for those who study at the intersection of IT and physics/mathematics/other disciplines;
Here in Google Colab you can test how it works

🖥 GitHub

🪄 https://www.tgoop.com/codeprogrammer 🖼

BY Python | Machine Learning | Coding | R




Share with your friend now:
tgoop.com/CodeProgrammer/2685

View MORE
Open in Telegram


Telegram News

Date: |

More>> In handing down the sentence yesterday, deputy judge Peter Hui Shiu-keung of the district court said that even if Ng did not post the messages, he cannot shirk responsibility as the owner and administrator of such a big group for allowing these messages that incite illegal behaviors to exist. 2How to set up a Telegram channel? (A step-by-step tutorial) Telegram Channels requirements & features How to create a business channel on Telegram? (Tutorial)
from us


Telegram Python | Machine Learning | Coding | R
FROM American