在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):erwanp/pytexit开源软件地址(OpenSource Url):https://github.com/erwanp/pytexit开源编程语言(OpenSource Language):Python 100.0%开源软件介绍(OpenSource Introduction):pytexitConvert a Python expression to a LaTeX formula Documentationhttps://pytexit.readthedocs.io Install
pip install pytexit Use
In a Terminal, use py2tex 'x = 2*sqrt(2*pi*k*T_e/m_e)*(DeltaE/(k*T_e))**2*a_0**2' In a Python console, use from pytexit import py2tex py2tex('x = 2*sqrt(2*pi*k*T_e/m_e)*(DeltaE/(k*T_e))**2*a_0**2') returns the corresponding LaTeX formula (to re-use in papers): $$x=2\\sqrt{\\frac{2\\pi k T_e}{m_e}} \\left(\\frac{\\Delta E}{k T_e}\\right)^2 a_0^2$$ and (in ipython console only) prints the equation: ReferencesInitial work from Geoff Reedy on StackOverflow: https://stackoverflow.com/a/3874621/5622825 . Kudos. Similar projects:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论