The goal of this post to setup
1. Read and follow the exact steps of my post titled “
2. To install the
Jupyter Notebook software in Ubuntu, use this command:
sudo apt-get install sagemath-jupyter
3. Try to open the
4. It will open a
Jupyter notebook page.
5. Click the “New” button at the top right corner and then select “
1 + 1
onto the input line.
7. Hit the keys
shift-enter to get the output
NameError: name 'Integrate' is not defined
from sage.symbolic.integration.integral import *
— Me@2022-07-30 12:18:50 PM
2022.08.01 Monday (c) All rights reserved by ACHK
The generating function is an infinite product:
To evaluate the infinite product, you can use SageMath with the following commands:
(1/x)*prod(((1+x^(n-1/2))^(32)/(1-x^n)^8) for n in (1..oo))
a = (1/x)*prod(((1+x^(n-1/2))^(32)/(1-x^n)^8) for n in (1..200))
F = a.taylor(x,0,6)
g = "+".join(map(latex, sorted([f for f in F.operands()], key=lambda exp:exp.degree(x))))
— Me@2019-01-11 11:52:33 AM
2019.01.11 Friday (c) All rights reserved by ACHK
Design Philosophy of Sage
William Stein realized several important facts when designing Sage.
* To create viable alternatives to Magma, Maple, Mathematica, and MATLAB, would take hundreds, or thousands of man-years if one started from the beginning.
* There was a large collection of open-source mathematics software already written, but which was written in different languages (C, C++, Fortran and Python being the most common).
So rather than start from the beginning, Sage which is written in Python and Cython integrates all their specialized mathematics software into a common interface. A user needs to know only Python.
Where no open-source option exists for a particular class of problem, then this would be written in Sage. But Sage does not reinvent the wheel. The same design philosophy is used in commercial mathematics program such as Mathematica, but Sage can use a much wider range of open source software solutions than nonfree software, since some open source licensing imposes restrictions on commercial use of code.
— Wikipedia on Sage (mathematics software)
2010.03.14 Sunday ACHK