ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 09 May 2013 00:47:22 +0200Sage for physicistshttps://ask.sagemath.org/question/10093/sage-for-physicists/I am a physics undergrad and thinking of learning a CAS. Though, mathematica is a standard choice, I would prefer a free open source software, because of a fetish, and the fact that I can't use mathematica outside my university. Is Python Sage used by physicists? Does it have the same functionality as mathematica.
Could you recommend me an online guide/manual or a book which teaches Sage with an emphasis for physics applications i.e. an equvalent to the [A Physicist's guide to Mathematica](http://www.amazon.com/dp/0126831920/?tag=stackoverfl08-20) book?Mon, 06 May 2013 19:10:40 +0200https://ask.sagemath.org/question/10093/sage-for-physicists/Answer by slelievre for <p>I am a physics undergrad and thinking of learning a CAS. Though, mathematica is a standard choice, I would prefer a free open source software, because of a fetish, and the fact that I can't use mathematica outside my university. Is Python Sage used by physicists? Does it have the same functionality as mathematica.</p>
<p>Could you recommend me an online guide/manual or a book which teaches Sage with an emphasis for physics applications i.e. an equvalent to the <a href="http://www.amazon.com/dp/0126831920/?tag=stackoverfl08-20">A Physicist's guide to Mathematica</a> book?</p>
https://ask.sagemath.org/question/10093/sage-for-physicists/?answer=14888#post-id-14888Congratulations for preferring a free open source software. That's the way to go!
I can't answer all your questions, but I can say this:
* Yes, Python is used by physicists. More below.
* Sage's functionality covers a good part of Mathematica's functionality, and
it has functionality that Mathematica does not have.
* I don't know of any "online guide/manual or book which teaches Sage with an emphasis for physics"
but an equivalent to *A Physicist's guide to Mathematica* would certainly be a useful resource.
An example of the use of Python in Physics is at the French CEA.
CEA is the main Atomic energy research body in France, see the
[CEA website](http://www-centre-saclay.cea.fr/en/CEA-Identity-and-organisation) and the
[CEA wikipedia entry](http://en.wikipedia.org/wiki/Commissariat_%C3%A0_l%27%C3%A9nergie_atomique_et_aux_%C3%A9nergies_alternatives).
[Olivier Tache](http://iramis.cea.fr/sis2m/Phocea/Pisp/index.php?nom=olivier.tache),
a research engineer there, in the [LIONS lab](http://iramis.cea.fr/sis2m/lions/) of the
[SIS2M unit](http://iramis.cea.fr/sis2m/en/),
wrote about [Using Python for science (pdf)](http://iramis.cea.fr/Phocea/file.php?class=pisp&file=olivier.tache/files/31/Using_Python_for_science_2013.pdf&reload=1361538197).
He was in charge of renovating the command-control system for USAXS (Ultra-small-angle
X-ray scattering) lab experiments, and based on a study of different command-control
systems, he engineered the move to Python and Tango for command-control.
The LIONS lab developed
[PySAXS](http://iramis.cea.fr/sis2m/Phocea/Vie_des_labos/Ast/ast_sstechnique.php?id_ast=1799&id_groupe=50),
an Open Source Python package and GUI for
[SAXS](https://en.wikipedia.org/wiki/Small-angle_X-ray_scattering) data treatment,
entirely based on Numpy and SciPy.
Further reading:
* [Project Tango-Python at LIONS](http://iramis.cea.fr/sis2m/lions/tango/index.php)
* In French: Olivier Tache's
[pdf report](http://iramis.cea.fr/sis2m/lions/tango/tango-ds/memoire.pdf)
and
[pdf slides](http://iramis.cea.fr/sis2m/lions/tango/tango-ds/soutenance21dec2006.pdf)
about the migration project.
* More pages at LIONS:
[Using Python for data analysis](http://iramis.cea.fr/sis2m/Phocea/Vie_des_labos/Ast/ast_sstechnique.php?id_ast=1054&id_groupe=50);
[Scientific data analysis](http://iramis.cea.fr/sis2m/Phocea/Vie_des_labos/Ast/ast_technique.php?id_ast=1780).
* [Tango](http://www.tango-controls.org/) is an object oriented distributed control system.
It's an open-source project, collaboratively developed by a bunch of European synchrotron / nanoscience research labs. It provides programming support for C++, Java and Python.
Note: I am not connected to CEA. Olivier Tache was our guest at the December 2012 meeting of the
[Paris area Sage and Scientific Python user group](http://wiki.sagemath.org/GroupeUtilisateursParis).
He talked about the move to Python of the LIONS lab.
Tue, 07 May 2013 03:57:55 +0200https://ask.sagemath.org/question/10093/sage-for-physicists/?answer=14888#post-id-14888Answer by Jesustc for <p>I am a physics undergrad and thinking of learning a CAS. Though, mathematica is a standard choice, I would prefer a free open source software, because of a fetish, and the fact that I can't use mathematica outside my university. Is Python Sage used by physicists? Does it have the same functionality as mathematica.</p>
<p>Could you recommend me an online guide/manual or a book which teaches Sage with an emphasis for physics applications i.e. an equvalent to the <a href="http://www.amazon.com/dp/0126831920/?tag=stackoverfl08-20">A Physicist's guide to Mathematica</a> book?</p>
https://ask.sagemath.org/question/10093/sage-for-physicists/?answer=14891#post-id-14891Here's another physicist using Sage, in particular doing a PhD, and I can only encourage you to use Sage any time you can :) It cannot do everything that Mathematica does, but it goes the other way around too. For an undergrad, you won't notice the difference if you are patient in learning Sage.
As an approach for using Sage as a physicist, I would recommend simply going through the [tutorial](http://www.sagemath.org/doc/tutorial/), and asking here or in [sage-support](https://groups.google.com/forum/\?fromgroups\#\!forum/sage-support) any particular concern you may have, starting right now!Tue, 07 May 2013 12:24:56 +0200https://ask.sagemath.org/question/10093/sage-for-physicists/?answer=14891#post-id-14891Comment by dickfeynman for <p>Here's another physicist using Sage, in particular doing a PhD, and I can only encourage you to use Sage any time you can :) It cannot do everything that Mathematica does, but it goes the other way around too. For an undergrad, you won't notice the difference if you are patient in learning Sage.</p>
<p>As an approach for using Sage as a physicist, I would recommend simply going through the <a href="http://www.sagemath.org/doc/tutorial/">tutorial</a>, and asking here or in <a href="https://groups.google.com/forum/\?fromgroups#!forum/sage-support">sage-support</a> any particular concern you may have, starting right now!</p>
https://ask.sagemath.org/question/10093/sage-for-physicists/?comment=17735#post-id-17735Good to know atleast some physicists prefer sage, I haven't met a single physics student yet who uses sage instead of mathematica. Thanks for the link.Thu, 09 May 2013 00:47:22 +0200https://ask.sagemath.org/question/10093/sage-for-physicists/?comment=17735#post-id-17735Comment by Jesustc for <p>Here's another physicist using Sage, in particular doing a PhD, and I can only encourage you to use Sage any time you can :) It cannot do everything that Mathematica does, but it goes the other way around too. For an undergrad, you won't notice the difference if you are patient in learning Sage.</p>
<p>As an approach for using Sage as a physicist, I would recommend simply going through the <a href="http://www.sagemath.org/doc/tutorial/">tutorial</a>, and asking here or in <a href="https://groups.google.com/forum/\?fromgroups#!forum/sage-support">sage-support</a> any particular concern you may have, starting right now!</p>
https://ask.sagemath.org/question/10093/sage-for-physicists/?comment=17752#post-id-17752@kcrisman. Thanks for the edit! :)Wed, 08 May 2013 05:20:09 +0200https://ask.sagemath.org/question/10093/sage-for-physicists/?comment=17752#post-id-17752Answer by twch for <p>I am a physics undergrad and thinking of learning a CAS. Though, mathematica is a standard choice, I would prefer a free open source software, because of a fetish, and the fact that I can't use mathematica outside my university. Is Python Sage used by physicists? Does it have the same functionality as mathematica.</p>
<p>Could you recommend me an online guide/manual or a book which teaches Sage with an emphasis for physics applications i.e. an equvalent to the <a href="http://www.amazon.com/dp/0126831920/?tag=stackoverfl08-20">A Physicist's guide to Mathematica</a> book?</p>
https://ask.sagemath.org/question/10093/sage-for-physicists/?answer=14893#post-id-14893Hi,
after my experience sage as a CAS is not (yet!) very spread in the pysics community, however python definitely is!!!
slelievre's list of Physics-goups using python could be extended to infinity, so maybe just one more hint: CERN also provides a python version for their excellent data analysis software ROOT which they use for the data analysis of the LHC, and this software [can also (quite) easily used together with sage](http://root.cern.ch/phpBB3/viewtopic.php?f=14&t=14399).
And this is exactly the point why I chose to use Sage as a CAS: via python you can extend your Sage skills to nearly all possilble problems in computational physics or data analysis.
Sage should be used by physicists because:
1) It provides a CAS with all important basic features
2) By learning sage one automatically learns python, one of the most important programming languages in physics
3) As sage is open source and is based on python, one can extend it with all python-packages one likes, and there are many useful packages for physicists. Furthermore, many of them like numpy, scipy and matplotlib are already inculded in Sage!Wed, 08 May 2013 10:44:58 +0200https://ask.sagemath.org/question/10093/sage-for-physicists/?answer=14893#post-id-14893