| The Following 24 Users Say Thank You to rcolistete For This Useful Post: | ||
|
|
10-16-2011
, 06:43 PM
|
|
Posts: 693 |
Thanked: 1,420 times |
Joined on May 2011
@ Brazil
|
#2
|
| The Following 4 Users Say Thank You to rcolistete For This Useful Post: | ||
|
|
10-21-2011
, 05:56 PM
|
|
Posts: 693 |
Thanked: 1,420 times |
Joined on May 2011
@ Brazil
|
#3
|
| The Following 2 Users Say Thank You to rcolistete For This Useful Post: | ||
|
|
11-01-2011
, 12:08 PM
|
|
Posts: 693 |
Thanked: 1,420 times |
Joined on May 2011
@ Brazil
|
#4
|
| The Following User Says Thank You to rcolistete For This Useful Post: | ||
|
|
11-01-2011
, 07:54 PM
|
|
Posts: 693 |
Thanked: 1,420 times |
Joined on May 2011
@ Brazil
|
#5
|
| The Following User Says Thank You to rcolistete For This Useful Post: | ||
|
|
11-05-2011
, 12:13 PM
|
|
Posts: 693 |
Thanked: 1,420 times |
Joined on May 2011
@ Brazil
|
#6
|


| The Following 2 Users Say Thank You to rcolistete For This Useful Post: | ||
|
|
11-06-2011
, 11:30 PM
|
|
Posts: 693 |
Thanked: 1,420 times |
Joined on May 2011
@ Brazil
|
#7
|



| The Following 2 Users Say Thank You to rcolistete For This Useful Post: | ||
|
|
11-12-2011
, 12:14 AM
|
|
Posts: 693 |
Thanked: 1,420 times |
Joined on May 2011
@ Brazil
|
#8
|
| The Following User Says Thank You to rcolistete For This Useful Post: | ||
|
|
11-14-2011
, 09:43 AM
|
|
Posts: 693 |
Thanked: 1,420 times |
Joined on May 2011
@ Brazil
|
#9
|
| The Following 2 Users Say Thank You to rcolistete For This Useful Post: | ||
|
|
11-14-2011
, 09:11 PM
|
|
Posts: 693 |
Thanked: 1,420 times |
Joined on May 2011
@ Brazil
|
#10
|
| The Following User Says Thank You to rcolistete For This Useful Post: | ||
![]() |
| Thread Tools | Search this Thread |
|
See the SymPy sites :
SymPy for smartphones & tablets
SymPy.org
SymPy Wiki
SymPy documentation
SymPy v0.7.2 (16/10/2012) and v0.7.1 (29/07/2011) run on Maemo 4 (Diablo), Maemo 5 (Fremantle) and MeeGo 1.2 Harmattan ("Maemo 6").
Check the release notes of SymPy 0.7.2, this new version has a lot of improvements and bug fixes. Some of them :
- improved integration methods, e.g., some integrals are faster in v0.7.2;
- new plotting module using NumPy & MatPlotLib (which are loaded automatically if installed), adding another option to easily use SymPy to make 2D/3D plots;
- I am now co-author of SymPy (in the authors list) for a small contribution about implementing "num_columns" in "init_printing" and "pretty"/"pretty_print"/"pprint", an useful feature for displaying SymPy results in small screens of smartphones and tablets.
Nokia N900 showing some calculus, after tapping the SymPy icon or typing "isympy" in X Terminal :
Nokia N9 running SymPy using the IPython 0.13.1 Notebook interface on Firefox v15. "init_printing()" is used to show nice outputs with LaTeX :
So SymPy 0.7.2 now has 3 options to make plots :
- "Plot()" using PyGlet (only on Maemo 5), see post #11 for some usage examples on Nokia N900;
- new plotting module using NumPy & MatPlotLib (on Maemo 5 and MeeGo Harmattan), see post #30 for some usage examples on Nokia N9 & N900;
- mpmath plotting functions using MatPlotLib (on Maemo 5 and MeeGo Harmattan), see post #32 for some usage examples on Nokia N9 & N900.
Comparing the 3 options :
- 'Plot()'/PyGlet only works on Maemo 5, while plotting module and mpmath plotting work on Maemo 5 and MeeGo Harmattan;
- 'Plot()' labels on axes and axes tick marks don't work on Maemo 5, while in plotting module they are ok;
- 'Plot()' can use cylindrical or spherical coordinate systems to make 3D parametric surfaces, while plotting 'plot3d' and mpmath plotting can't;
- 3D parametric curve of plotting module doesn't work on Maemo 5 (MatPlotLib 1.0.0 is too old);
- mpmath plotting has no 2D parametric plots and no options to specify axis names, title name, plot color, etc;
- mpmath plotting has surfaces plots with some faulty colors on Maemo 5 & MeeGo Harmattan;
- 3D plots with 'Plot()' are faster than with plotting module or mpmath plotting.
Nokia N9 plot made by the new plotting module of SymPy 0.7.2 :
Nokia N900 screenshot with 3D plot made by 'Plot()', it is interactive, being controlled by keyboard or stylus :
Nokia N9 showing SymPy 0.7.2 new plotting features in IPython 0.13.1 Notebook interface on Firefox v15. With "%pylab inline", MatPloLib 1.2.0 & NumPy 1.7.0 are loaded in interactive mode and the plots are embedded.
See more plot examples in post #11 about "Plot()", post #30 about new plotting module and post #32 about mpmath plotting.
SymPy 0.7.2 can be easily installed by using my Harmattan repository or the "Community Share Repository" (from rzr) enabled in MeeCatalog (available from Nokia Store). After configuring it, use :
- MeeCatalog then search for SymPy and install;
- or Terminal as root :
# apt-get install python-sympy
SymPy 0.7.2 takes about 26 MB after install.
It is strongly suggested to also install IPython for MeeGo Harmattan, so the interactive use of MatPlotLib/NumPy becomes a lot easier
With the new IPython 0.13.1 Harmattan, there are 3 interfaces to choose : IPython terminal, IPython Notebook and IPython Qt console.
1) IPython 0.13.1 terminal interface :
1.a) Tap the IPython icon, then :
In [1]: from sympy import *
In [2]: init_printing()
The "init_printing()" is used to show pretty printing outputs.
If you want to use both PyLab (MatPlotLib + NumPy) and SymPy, always load PyLab before SymPy 0.7.2 :
In [1]: %pylab
In [2]: from sympy import *
In [3]: init_printing()
1.b) Or in Terminal, type :
$ isympy
or
$ isympy -p ascii
if (a large) output is badly not aligned.
If you want to use both PyLab (MatPlotLib + NumPy) and SymPy, in Terminal type :
$ ipython --pylab --profile=sympy
For 1.a and 1.b, if (a large) output is badly not aligned, then use "init_printing(use_unicode=False)".
2) IPython 0.13.1 Qt console :
2.a) Tap the "IPy QtConsole" icon, then :
In [1]: from sympy import *
In [2]: init_printing()
The "init_printing()" is used to show nice outputs using LaTeX.
If you want to use both PyLab (MatPlotLib + NumPy) and SymPy, always load PyLab before SymPy 0.7.2 :
In [1]: %pylab inline
In [2]: from sympy import *
In [3]: init_printing()
The magic command "%pylab inline" shows plots embedded in Qt console, while "%pylab" displays plots in interactive MatPlotLib (Qt4) backend.
2.b) Or in Terminal, type :
$ ipython qtconsole --profile=sympy
but the plots are not embedded in Qt console.
If you want to use both PyLab (MatPlotLib + NumPy) and SymPy, in Terminal type :
$ ipython qtconsole --pylab --profile=sympy
or
$ ipython qtconsole --pylab=inline --profile=sympy
for embedded plots in Qt console.
3) IPython 0.13.1 Notebook :
3.a) Tap the "IPy Notebook" icon, then :
In [1]: from sympy import *
In [2]: init_printing()
The "init_printing()" is used to show nice outputs using LaTeX.
If you want to use both PyLab (MatPlotLib + NumPy) and SymPy, always load PyLab before SymPy 0.7.2 :
In [1]: %pylab inline
In [2]: from sympy import *
In [3]: init_printing()
The magic command "%pylab inline" shows plots embedded in IPython notebook, while "%pylab" displays plots in interactive MatPlotLib (Qt4) backend.
3.b) Or in Terminal, type :
$ ipython notebook --profile=sympy
but the plots are not embedded in IPython notebook.
If you want to use both PyLab (MatPlotLib + NumPy) and SymPy, in Terminal type :
$ ipython notebook --pylab --profile=sympy
or
$ ipython notebook --pylab-inline --profile=sympy
for embedded plots in IPython notebook.
The terminal commands of 1.b, 2.b and 3.b can be used in new .desktop files in "/usr/share/applications", just copy "ipy*.desktop" to fit your needs.
For making SymPy 0.7.2 plots on MeeGo Harmattan there are 2 options, both using MatPlotLib 1.2.0 (install it following the topic "MatPlotLib - 2D & 3D plots for MeeGo Harmattan") :
- new plotting module, see post #30 for more detailed instructions and examples on Nokia N9;
- mpmath plotting functions, see post #32 for more detailed instructions and examples on Nokia N9.
Until the auto-builder of Maemo Extras works again, install SymPy v0.7.2 for Maemo 5 Fremantle by downloading :
python-sympy_0.7.2-1maemo1_all.deb (2.3 MB)
then using
$ dpkg -i python-sympy_0.7.2-1maemo1_all.deb
in X Terminal as root.
Click the install icon in Maemo.org Downloads or enable extras repository, search for SymPy in the application manager and install "SymPy interactive shell", it will install IPython (if not installed), SymPy (0.7.1 if v0.7.2 is not installed like described above), isympy (X-terminal script with some initialization of variables and output type) and its icon. SymPy takes about 25 MB after install but it is optified.
To use SymPy 0.7.2 on Maemo 5 :
1) the "SymPy" icon or the terminal command "isympy" opens IPython terminal (if installed, or else just X Terminal and Python) and setup SymPy interactive mode;
2) If you want to use both PyLab (MatPlotLib 1.0.0 + NumPy 1.4.0) and SymPy 0.7.2.
2.a) Tap the IPython icon, then always load PyLab before SymPy 0.7.2 :
In [1]: %pylab
In [2]: from sympy import *
In [3]: init_printing()
The "init_printing()" is used to show pretty printing outputs.
2.b) Or in Terminal, type :
$ ipython --pylab --profile=sympy
There are 3 options for making SymPy 0.7.2 plots on Maemo 5 Fremantle :
- "Plot()" for 2D/3D interactive plots, using PyGlet". See post #11 of this topic for more detailed instructions to use 'Plot()' on Maemo 5.
See also the topic PyGlet for Maemo 5 or the PyGlet for Maemo 5 web page for more details. To install PyGlet on Maemo 5, just open "X terminal" :
$ sudo gainroot
# apt-get update
# apt-get install python-pyglet
Beware that PyGlet takes 6.4 MB (it is optified) after install plus its mesa dependencies use 5.2 MB in root partition.
- new plotting module, using MatPlotLib. See post #30 for more detailed instructions and examples on Nokia N900. To install it on Maemo 5 takes about 39 MB (which 3 MB not-optified), use the X Terminal with Extras-Devel repository enabled and type :
$ sudo gainroot
# apt-get update
# apt-get install python-matplotlib
Then, as user, create the folder "/home/user/.matplotlib" and the file "/home/user/.matplotlib/matplotlibrc" with the text :
datapath : /usr/share/matplotlib/mpl-data
backend : Qt4Agg
- mpmath plotting functions, using MatPlotLib. See post #32 for more detailed instructions and examples on Nokia N900. Follow the instructions above to install MatPlotLib.
To Nokia N900 users, please help promote SymPy, SymPy Interactive Shell and SymPy Documentation to extras repository by voting in :
SymPy 0.7.1-maemo6
SymPy interactive shell 0.7.1-fremantle3
SymPy documentation and examples
Until the auto-builder of Maemo Extras works again, install SymPy v0.7.2 for Maemo 4 Diablo by downloading :
python-sympy_0.7.2-1maemo1-m4_all.deb (2.3 MB)
then using
$ dpkg -i python-sympy_0.7.2-1maemo1-m4_all.deb
in X Terminal as root.
Click the install icon in Maemo.org Downloads or enable extras repository, search for SymPy in the application manager and install "SymPy Interactive Shell", it will install IPython (if not installed, using 6 MB after install), SymPy (0.7.1 if v0.7.2 is not installed like described above), isympy (X-terminal script with some initialization of variables and output type) and its icon.
SymPy v0.7.2 (25 MB) and its dependency python2.5-dev (other 15 MB) takes about 40 MB after install.
The SymPy icon or the terminal command "isympy" launches the IPython interactive shell and loads SymPy with some initialization (of variables and output type).
See post #36 for detailed SymPy benchmarks.
SymPy is also used by "Integral", "Derivative" and "Limit" on Maemo 4 & 5. With SymPy 0.7.2, due to the new beta function, beta can't be used anymore as symbol/variable.
Python, C/C++, Qt and CAS developer. For Maemo/MeeGo :
Integral, Derivative, Limit - calculating mathematical integrals, derivatives and limits. SymPy - Computer Algebra System.
MatPlotLib - 2D & 3D plots in Python. IPython - Python interactive shell. PyGlet - OpenGL, etc in Python.
-- My blog about mobile & scientific computing ---
Nokia N9 16GB Black @ 1.35 GHz with Easy Debian + Stowaway foldable BT keyboard.
Nokia N900 @ 1.1 GHz, EasyDebian, MeeGo 1.2, NITDroid 2.2. N810 with cloned Maemo on SD, EasyDebian.
Last edited by rcolistete; 02-14-2013 at 07:23 PM. Reason: Installation of SymPy 0.7.2 Harmattan using rzr repo