SymPy now works nicely with SAGE.
[sympy.git] / README
blob6c768941d27f3a4492cac8c52bd8dc330b042064
1 SymPy
2 =====
4 A Python library for symbolic mathematics.
6 http://code.google.com/p/sympy/
8 All people who contributed to SymPy by sending at least a patch or more (in
9 the order of the date of their first contribution): 
10     Ondrej Certik <ondrej@certik.cz>
11     Fabian Seoane <fabian@fseoane.net>
12     Jurjen N.E. Bos <jnebos@gmail.com>
13     Mateusz Paprocki <mattpap@gmail.com> 
14     Marc-Etienne M.Leveille <protonyc@gmail.com>
15     Brian Jorgensen <brian.jorgensen@gmail.com>
16     Jason Gedge <inferno1386@gmail.com>
17     Robert Schwarz <lethargo@googlemail.com>
18     Pearu Peterson <pearu.peterson@gmail.com>
19     Fredrik Johansson <fredrik.johansson@gmail.com>
20     Chris Wu <chris.wu@gmail.com>
21     Kirill Smelkov <kirr@landau.phys.spbu.ru>
22     Ulrich Hecht <ulrich.hecht@gmail.com>
24 And many more people helped on the mailinglist, reported bugs etc.
26 License: New BSD License (see the LICENSE file for details)
27 covers all files in the sympy repository unless stated otherwise.
29 0. Download
30 -----------
32 svn checkout http://sympy.googlecode.com/svn/trunk/ sympy
34 For other options (tarballs, debs, etc.), see the web page of SymPy.
37 1. Documentation and usage
38 --------------------------
40 Everything is at:
42 http://code.google.com/p/sympy/wiki/Documentation
44 If you don't want to read that, here is a short usage:
46 From this directory, start python and:
47 >>> from sympy import Symbol, cos
48 >>> x=Symbol('x')
49 >>> e=1/cos(x)
50 >>> print e.series(x,10)
51 1 + (1/2)*x**2 + (5/24)*x**4 + (61/720)*x**6 + (277/8064)*x**8 + O(x**10)
53 SymPy also comes with a console that is a simple wrapper around the
54 classic python console (or ipython when available) that loads the
55 sympy namespace and defines three symbols: x, y, z.
57 To start it issue:
59   ./bin/isympy
61 from this directory if SymPy is not installed or simply
63   isympy
65 if SymPy is installed somewhere in your PATH.
68 3. Tests
69 --------
71 to execute tests, run
73 ./setup.py test
75 in the current directory.  You need to have py.test installed.
78 4. How to install py.test
79 -------------------------
81 If you use Debian, just install the python-codespeak-lib. Otherwise:
83 Execute in your home directory:
85 svn co http://codespeak.net/svn/py/dist py-dist
87 This will create a "py-dist" directory in you home dir. Add this line to
88 your .bashrc:
90 eval `python ~/py-dist/py/env.py`
92 Now you can call "py.test" from anywhere.
94 5. Clean
95 --------
97 To clean everything (thus getting the same tree as in the svn):
99 ./setup.py clean
102 6. Brief History
103 ----------------
105 SymPy was started by Ondrej Certik in 2005, he wrote some code during the
106 summer, then he wrote some more code during the summer 2006. In February 2007,
107 Fabian Seoane joined the project and helped fixed many things, contributed
108 documentation and made it alive again. 5 students improved SymPy incredibly
109 during the summer 2007 as part of the Google Summer of Code. Pearu Peterson
110 joined the development during the summer 2007 and he has made SymPy much more
111 competitive by rewriting the core from scratch, that has made it from 10x to
112 100x faster.