Sympy reference release-0.7.6.1

所需积分/C币:25 2015-10-06 15:55:40 12.35MB PDF

sympy是Python的数学符号计算库,本文档是sympy的官方参考手册。
CONTENTS 1 Installation 1 Source 1.2Git.. 1.3 Anaconda 1. 4 Other methods 111222 1.5 Run SymPy 1.6 Questions 2 SymPy Tutorial 2.1 Preliminaries 2.2 Introduction 557 2.3 Gotchas 10 2.4 Basic Operations 4 15 2.5 Printing 18 2.6 Simplification 23 2.7 Calculus 春·垂 2.8 Solvers 43 2.9 Matrices 4 2.10 Advanced Expression Manipulation 52 3 Gotchas and pitfalls 61 3.1 Introduction 61 3.2 Equals Signs(=) 6 3.3 Variables 62 3.4 Symbolic Expressions 65 3.5 Special Symbols 69 3.6 Getting help from within SymPy 72 4 SymPy User’ s Guide 75 4.1 Introduction 75 4.2 Learning SymPy 75 4.3 SymPy's Architecture 77 4.4 Contributing 84 5 SymPy Modules reference 85 5.1 SymPy Core 85 5.2 Combinatorics module 186 5.3 Number Theory 275 5.4 Basic Cryptography Module 302 5.5 Concrete mathematic 318 5.6 Numerical evaluation 330 5.7 Numeric Computation.,....... 336 5.8 Functions module 339 5.9 Geometric Algebra Module 449 5.10 Geometry Module 488 5. 11 Symbolic Integrals 582 5. 12 Numeric Integrals 617 5.13 Logic Module ....624 5.14 Matrices 634 5.15 Welcome to mpmath's documentation! ,,,,711 5.16 Polynomials Manipulation Module 1042 5. 17 Printing system 垂 1242 5. 18 Plotting Module 1264 5.19 Pyglet Plotting Module ,,,,,,,,,,,,.,,,,1277 5.20 Assumptions module 1281 5.21 Term rewriting ..1296 5.22 Series Expansions 1298 5.235ets ....1306 5. 24 Simplify ,,,,,,,1321 5.25 Details on the Hypergeometric Function Expansion Module 1344 5.26 Stats 1355 5.270DE. ....1391 5.28 PDE ..1454 5.29 Solvers.,,,,,,,,,,,,,,,, 1462 5.30 Diophantine ....1477 5.31 Inequality Solve 1499 5.32 Tensor module 4 1502 5.33 Utilities ..1526 5.34 Parsing input 1581 5.35 Calculus 1586 5.36 Physics Module 1591 5.37 Category Theory Module 1823 5.38 Differential Geometry Module................. 1840 5.39 Contributions to docs 1854 6 Development Tips: Comparisons in Python 1855 6.1 Introduction 185 6.2 Hashing 1855 6.3 Method resolution 1856 6.4 General notes and caveats ..1858 6.5 Script To Verify This Guide 1858 7 wiki 1863 7.1 FAQ .,1863 8 SymPy Papers 1865 9 Planet SymPy 1867 10 SymPy logos 1869 11 Projects using SymP 1871 12 Blogs, News, Magazines 1873 13 About 1875 13.1 SymPy Development Team 1875 13.2 Financial and Infrastructure Support 1885 13.3 License 1886 14 SymPy Special Topics 1887 14.1 Introduction 1887 14.2 Finite Difference Approximations to Derivatives 1887 Bibliography 1893 Python Module Index 1913 Index 1917 CHAPTER ONE INSTALLATION The SymPy Cas can be installed on virtually any computer with Python 2. 6 or above. SymPy does not require any special Python modules: let us know if you have any problems with SymPy on a standard Python install. The current recommended method of installation is directly from the source files. Alternatively, executables are available for Windows, and some Linux distributions have SymPy packages available SymPy officially supports Python 2.6, 2.7,, 3.3,3.4, and Py Py. 11 Source SymPy currently recommends that users install directly from the source files. You will first have to download the source files via the archive. Download the latest release(tar. gz) from the downloads site and open it with your operating system's standard decompression utility. After the download is complete, you should have a folder called"sympy". From your favorite command line terminal, change directory into that folder and execute the following 8 python setup. py install Alternatively, if you dont want to install the package onto your computer, you may run SymP ith the"isympy"console(which automatically imports SymPy packages and defines common symbols) by executing within the "sympy"folder: /bin/isympy You may now run SymPy statements directly within the Python shell >>> from future import division > from sympy import x x, y,z,t= symbols('xy z t) >>>k, m, n= symbols( k m n, integer=True) f, g, h= symbols('f g h, cls=Function) >>>diff(x**2/2,x) 1.2 Git O you are a developer or like to get the latest updates as they come, be sure to install fror To download the repository execute the following from the command line SymPy Documentation, Release 0.7.6.1 8 git clone git: //github. com/sympy /sympy git Then, execute either the setup. py or the bin /isyrnpy scripts as demonstrated above To update to the latest version, go into your repository and execute s git pull origin master If you want to install SymPy, but still want to use the git version, you can run from your repository s setupegg py develop This will cause the installed version to always point to the version in the git directory 1 3 Anaconda Although Sym Py does not have any hard dependencies, many nice features are only enabled when certain libraries are installed. For example, without Matplotlib, only simple text-based plotting is enabled. With the IPython notebook or gtconsole, you can get nicer LATEX printing by running init-printing(). An easy way to get all these libraries in addition to SymPy is to install Anaconda, which is a free Python distribution from Continuum Analytics that includes SymPy, Matplotlib, IPython, NumPy, and many more useful packages for scientific computing 1. 4 Other methods An installation executable ( exe) is available for Windows users at the downloads site. In addition, various Linux distributions have SymPy available as a package. Others are strongly encouraged to download from source (details above) 1.5 Run SymPy After installation, it is best to verify that your freshly-installed SymPy works. To do this, start up Python and import the SymPy libraries s python > from sympy import k From here, execute some simple SymPy statements like the ones below x= Symbol(x' >> limit(sin(x)/x, x, 0) >> integrate(l/x,x) Log(X) For a starter guide on using SymPy effectively, refer to the SymPy Tutorial (page 5) Chapter 1. Installation SymPy Documentation, Release 0.7.6.1 1.6 Questions If you have a question about installation or SymPy in general, feel free to visit our chat on Gitter. In addition, our mailing list is an excellent source of community support If you think there's a bug or you would like to request a feature, please open an issue ticket. 1.6. Questions 3 SymPy Documentation, Release 0.7.6.1 Chapter 1. Installation

...展开详情

评论 下载该资源后可以进行评论 1

ygys1234 没想到有1500页,虽不是最新版本,已是难得了,谢谢
2016-12-05
回复
img
corfox_liu

关注 私信 TA的资源

上传资源赚积分,得勋章
    最新推荐