查看“︁SymPy”︁的源代码
←
SymPy
跳转到导航
跳转到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{Infobox software | name = SymPy | logo = [[Image:sympy-160px.png|160px]] | developer = Ondřej Čertík和Aaron Meurer等 | released = {{Start date and age|2007}} | latest release version = 1.6.2 | latest release date = {{Start date and age|2020|08|10|df=yes}} | status = Active | programming language = [[Python]] | operating system = [[跨平台]] | genre = [[计算机代数系统]] | license = 修正的[[BSD许可证]]<ref name="donate">{{Cite web |url=http://sympy.org/en/donate.html |title=Support SymPy Development |accessdate=2013-11-03 |archive-date=2013-11-04 |archive-url=https://web.archive.org/web/20131104103003/http://sympy.org/en/donate.html |dead-url=no }}</ref> | website = {{URL|http://sympy.org/}} }} '''SymPy'''是一个符号计算的[[Python]][[库 (计算机)|库]]。它的目标是成为一个全功能的[[计算机代数系统]],同时保持代码简洁、易于理解和扩展。它完全由[[Python语言]]写成,不依赖于外部库。<ref name="sympy.org">{{Cite web |url=http://sympy.org/ |title=SymPy官方网站 |accessdate=2013-11-03 |archive-date=2019-11-20 |archive-url=https://web.archive.org/web/20191120004825/https://www.sympy.org/ |dead-url=yes }}</ref> SymPy支持符号计算、[[高精度计算]]、[[模式匹配]]、[[圖形計算機|绘图]]、[[解方程]]、[[微积分]]、[[组合数学]]、[[离散数学]]、[[几何学]]、[[概率与统计]]、[[物理学]]等方面的功能。<ref name="sympy.org" /><ref>{{Cite web |url=http://www.oschina.net/p/sympy/ |title=Python代数计算库 SymPy - 开源中国 |accessdate=2013-11-03 |archive-date=2013-11-04 |archive-url=https://web.archive.org/web/20131104031423/http://www.oschina.net/p/sympy/ |dead-url=no }}</ref> SymPy在新[[BSD许可证]]下开源。<ref name="donate" /> ==用例== 求<math>f(x) = \frac{x^2+2x+1+(3x+1)\sqrt{x+\ln x}}{x\,\sqrt{x+\ln x}(x+\sqrt{x+\ln x})}</math>的积分: <syntaxhighlight lang="python"> >>> from sympy import init_printing, integrate, log, sqrt, symbols >>> init_printing() >>> x = symbols('x') >>> g = sqrt(x + log(x)) >>> f = (x ** 2 + 2 * x + 1 + (3 * x + 1) * g) / (x * g * (x + g)) >>> f 2 ____________ x + 2⋅x + ╲╱ x + log(x) ⋅(3⋅x + 1) + 1 ─────────────────────────────────────── ⎛ ____________⎞ ____________ x⋅⎝x + ╲╱ x + log(x) ⎠⋅╲╱ x + log(x) >>> integrate(f, x) ____________ ⎛ ____________⎞ 2⋅╲╱ x + log(x) + 2⋅log⎝x + ╲╱ x + log(x) ⎠ </syntaxhighlight> ==参考资料== <references /> ==外部链接== *[http://live.sympy.org/ SymPy Live]{{Wayback|url=http://live.sympy.org/ |date=20131104110423 }}, 可以在这里在线使用SymPy *[http://www.sympygamma.com SymPy Gamma]{{Wayback|url=http://www.sympygamma.com/ |date=20200708142019 }}, SymPy版的[[Wolfram Alpha]] *[https://github.com/sympy/sympy/ SymPy on GitHub]{{Wayback|url=https://github.com/sympy/sympy/ |date=20140704074450 }}, SymPy的[[GitHub]]页面 {{计算机代数系统}} [[Category:带有Python代码示例的条目]] [[Category:Linux计算机代数系统软件]] [[Category:MacOS计算机代数系统软件]] [[Category:Windows计算机代数系统软件]] [[Category:自由计算机代数系统]] [[Category:自由數學軟件]] [[Category:用Python編程的自由軟體]] [[Category:Python科学库]]
该页面使用的模板:
Template:Cite web
(
查看源代码
)
Template:Infobox software
(
查看源代码
)
Template:Wayback
(
查看源代码
)
Template:计算机代数系统
(
查看源代码
)
返回
SymPy
。
导航菜单
个人工具
登录
命名空间
页面
讨论
不转换
查看
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
工具
链入页面
相关更改
页面信息