• Complain

it-ebooks - SymPy 1.1.1 documentation

Here you can read online it-ebooks - SymPy 1.1.1 documentation full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2017, publisher: iBooker it-ebooks, genre: Romance novel. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

No cover
  • Book:
    SymPy 1.1.1 documentation
  • Author:
  • Publisher:
    iBooker it-ebooks
  • Genre:
  • Year:
    2017
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

SymPy 1.1.1 documentation: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "SymPy 1.1.1 documentation" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

it-ebooks: author's other books


Who wrote SymPy 1.1.1 documentation? Find out the surname, the name of the author of the book and a list of all author's works by series.

SymPy 1.1.1 documentation — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "SymPy 1.1.1 documentation" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
SymPy 1.1.1 documentation

From: http://docs.sympy.org/latest/index.html

A PDF version of these docs can be found here.

.

This is the central page for all of SymPys documentation.

Contents:

Installation

The SymPy CAS can be installed on virtually any computer with Python 2.7 orabove. SymPy does require mpmath Python library to be installed first. Thecurrent recommended method of installation is through Anaconda, which includesmpmath, as well as several other useful libraries. Alternatively, executablesare available for Windows, and some Linux distributions have SymPy packagesavailable.

SymPy officially supports Python 2.7, 3.3, 3.4, 3.5, and PyPy.

Anaconda

Anaconda is a free Python distribution fromContinuum Analytics that includes SymPy, Matplotlib, IPython, NumPy, and manymore useful packages for scientific computing. This is recommended becausemany nice features of SymPy are only enabled when certain libraries areinstalled. For example, without Matplotlib, only simple text-based plottingis enabled. With the IPython notebook or qtconsole, you can get nicer \(\LaTeX\) printing by running init_printing() .

If you already have Anaconda and want to update SymPy to the latest version,use:

conda update sympy
Git

If you wish to contribute to SymPy or like to get the latest updates as theycome, install SymPy from git. To download the repository, execute thefollowing from the command line:

git clone git : // github . com / sympy / sympy . git

To update to the latest version, go into your repository and execute:

git pull origin master

If you want to install SymPy, but still want to use the git version, you can runfrom your repository:

setupegg . py develop

This will cause the installed version to always point to the version in the gitdirectory.

Other Methods

An installation executable (.exe) is available for Windows users at thedownloads site. In addition, various Linux distributions have SymPyavailable as a package. You may also install SymPy from source or using pip.

Run SymPy

After installation, it is best to verify that your freshly-installed SymPyworks. To do this, start up Python and import the SymPy libraries:

$ python>>> from sympy import *

From here, execute some simple SymPy statements like the ones below:

>>> x = Symbol ( 'x' ) >>> limit ( sin ( x ) / x , x , ) >>> integrate ( / x , x ) log(x)

For a starter guide on using SymPy effectively, refer to the .

Mpmath

Versions of SymPy prior to 1.0 included mpmath, but it now depends on it asan external dependency. If you installed SymPy with Anaconda, it will alreadyinclude mpmath. Use:

conda install mpmath

to ensure that it is installed.

If you do not wish to use Anaconda, you can use pip install mpmath .

If you use mpmath via sympy.mpmath in your code, you will need to changethis to use just mpmath . If you depend on code that does this that youcannot easily change, you can work around it by doing:

import sys import mpmath sys . modules [ 'sympy.mpmath' ] = mpmath

before the code that imports sympy.mpmath . It is recommended to changecode that uses sympy.mpmath to use mpmath directly wherever possible.

Questions

If you have a question about installation or SymPy in general, feel free tovisit our chat on Gitter. In addition, our mailing list is an excellentsource of community support.

If you think theres a bug or you would like to request a feature, please openan issue ticket.

SymPy Tutorial
Preliminaries

This tutorial assumes that the reader already knows the basics of the Python programminglanguage. If you do not, the official Pythontutorial is excellent.

This tutorial assumes a decent mathematical background. Most examples requireknowledge lower than a calculus level, and some require knowledge at acalculus level. Some of the advanced features require more than this. If youcome across a section that uses some mathematical function you are notfamiliar with, you can probably skip over it, or replace it with a similar onethat you are more familiar with. Or look up the function on Wikipedia andlearn something new. Some important mathematical concepts that are not commonknowledge will be introduced as necessary.

Installation

Quick Tip

You do not need to install SymPy to try it. You can use the online shellat http://live.sympy.org, or the shell at the bottom right of thisdocumentation page.

You will need to install SymPy first. See the installation guide .

Alternately, you can just use the SymPy Live Sphinx extension to run the codeblocks in the browser. For example, click on the green Run code block inSymPy Live button below

>>> from sympy import * >>> x = symbols ( 'x' ) >>> a = Integral ( cos ( x ) * exp ( x ), x ) >>> Eq ( a , a . doit ()) Eq(Integral(exp(x)*cos(x), x), exp(x)*sin(x)/2 + exp(x)*cos(x)/2)

The SymPy Live shell in the bottom corner will pop up and evaluate the codeblock. You can also click any individual line to evaluate it one at a time.

The SymPy Live shell is a fully interactive Python shell. You can type anyexpression in the input box to evaluate it. Feel free to use it throughoutthe tutorial to experiment.

To show or hide the SymPy Live shell at any time, just click the green buttonon the bottom right of the screen.

By default, the SymPy Live shell uses \(\LaTeX\) for output. If you want theoutput to look more like the output in the documentation, change theoutput format to Str or Unicode in the settings.

If you wish to modify an example before evaluating it, change the evaluationmode to copy in the SymPy Live settings. This will cause clicking on anexample to copy the example to the SymPy Live shell, but not evaluate it,allowing you to change it before execution. You can also use the up/downarrow keys on your keyboard in the input box to move through the shellhistory.

The SymPy Live shell is also available at http://live.sympy.org, with extrafeatures, like a mobile phone enhanced version and saved history.

Exercises

This tutorial was the basis for a tutorial given at the 2013 SciPy conferencein Austin, TX. The website for that tutorial is here. It has linksto videos, materials, and IPython notebook exercises. The IPython notebookexercises in particular are recommended to anyone going through this tutorial.

About This Tutorial

This tutorial aims to give an introduction to SymPy for someone who has notused the library before. Many features of SymPy will be introduced in thistutorial, but they will not be exhaustive. In fact, virtually everyfunctionality shown in this tutorial will have more options or capabilitiesthan what will be shown. The rest of the SymPy documentation serves as APIdocumentation, which extensively lists every feature and option of eachfunction.

These are the goals of this tutorial:

  • To give a guide, suitable for someone who has never used SymPy (but who hasused Python and knows the necessary mathematics).
  • To be written in a narrative format, which is both easy and fun to follow.It should read like a book.
  • To give insightful examples and exercises, to help the reader learn and tomake it entertaining to work through.
  • To introduce concepts in a logical order.
  • To use good practices and idioms, and avoid antipatterns. Functions ormethodologies that tend to lead to antipatterns are avoided. Features thatare only useful to advanced users are not shown.
Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «SymPy 1.1.1 documentation»

Look at similar books to SymPy 1.1.1 documentation. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «SymPy 1.1.1 documentation»

Discussion, reviews of the book SymPy 1.1.1 documentation and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.