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, 01 Oct 2020 23:30:40 +0200integration in sagemath 8.1https://ask.sagemath.org/question/53694/integration-in-sagemath-81/I executed the following,
def integral_R(f,a,b):
from sage.symbolic.integration.integral import definite_integral
return (definite_integral(f,x,a,b)).simplify_full()
alpha = 1/sqrt(3)
H = 2*arcsin(x/(sqrt(1-x^2)))
integral_R(H,0,alpha).n()
and got
1.16869906991626
The same integral in Wolfram Alpha
provides
0.38330
By inspection I know that Wolfram is right. What's wrong with sage math in the specific example?drazThu, 01 Oct 2020 23:30:40 +0200https://ask.sagemath.org/question/53694/sagemath launch problems on Ubuntuhttps://ask.sagemath.org/question/46194/sagemath-launch-problems-on-ubuntu/I think I have a SageMath environment variable setting problem
causing to SageMath to throw Python exceptions at startup.
Here are my software versions:
vasily@vasily-Latitude-E7240:~$ sage --version
SageMath version 8.1, Release Date: 2017-12-07
vasily@vasily-Latitude-E7240:~$ python --version
Python 2.7.15rc1
vasily@vasily-Latitude-E7240:~$ uname -a
Linux vasily-Latitude-E7240 4.15.0-47-generic #50-Ubuntu SMP Wed Mar 13 10:44:52 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
vasily@vasily-Latitude-E7240:~$ uname -v
#50-Ubuntu SMP Wed Mar 13 10:44:52 UTC 2019
Here is the Python backtrace:
Traceback (most recent call last):
File "/usr/share/sagemath/bin/sage-ipython", line 7, in <module>
from sage.repl.interpreter import SageTerminalApp
File "/usr/lib/python2.7/dist-packages/sage/repl/interpreter.py", line 107, in <module>
from sage.repl.preparse import preparse
File "/usr/lib/python2.7/dist-packages/sage/repl/preparse.py", line 225, in <module>
import six
ImportError: No module named six
Traceback (most recent call last):
File "/usr/share/sagemath/bin/sage-ipython", line 7, in <module>
from sage.repl.interpreter import SageTerminalApp
File "/usr/lib/python2.7/dist-packages/sage/repl/interpreter.py", line 107, in <module>
from sage.repl.preparse import preparse
File "/usr/lib/python2.7/dist-packages/sage/repl/preparse.py", line 225, in <module>
import six
ImportError: No module named six
Somehow `preparse.py` is not happy. Any ideas?Vasily GalchinMon, 15 Apr 2019 18:51:24 +0200https://ask.sagemath.org/question/46194/sagemath windows 8.1 launching jupyter from another directory or drivehttps://ask.sagemath.org/question/41348/sagemath-windows-81-launching-jupyter-from-another-directory-or-drive/ After installing sagemath 8.1 for windows, I try to launch jupyter from drive E:\ where the data are, instead of C:\ which is a SSD. It is not possible once in the browser to switch to another disk as reported in various places on internet.
What is the best work around?c05772Fri, 02 Mar 2018 01:17:09 +0100https://ask.sagemath.org/question/41348/Sagemath 8.1 windows: Impossible to export jmol figure from Jupyter while it works with former notebook.https://ask.sagemath.org/question/41347/sagemath-81-windows-impossible-to-export-jmol-figure-from-jupyter-while-it-works-with-former-notebook/After installing sagemath 8.1 for windows I try to save as a jmol file a 3D figure and as shown on the figure that I cannot upload :-( [I do not have the 60 points required, a figure is worth a thousand words, too bad!].
So I load 2 shells: one running "jupyter notebook", the other running "notebook()" in both shell I try the MWE:
G=sphere((0,0,0),1)
show(G,figsize=(5,5),title="Sample Figure",aspect_ratio=1);
On both, I right click on the jmol figure,then on File, in both cases 'File->' becomes red but only in the old notebook() I get the sub menu (Load Save Export) and the subsubmenus. With jupyter, I get nothing and cannot export.
Worse even in a console, I cannot get the jmol figure executed, neither exported.
I jumped to 61 points overnight, so here is the picture:![image description](/upfiles/15200099365123058.png)c05772Fri, 02 Mar 2018 01:02:30 +0100https://ask.sagemath.org/question/41347/ImportError: No module named terminal.prompts on Debianhttps://ask.sagemath.org/question/40658/importerror-no-module-named-terminalprompts-on-debian/I am trying to install SageMath 1.8 on a debian 8.10 (Jessie). I have tried both the Debian precompiled binary package from the website: sage-8.1-Debian_GNU_Linux_8-x86_64.tar.bz2, and also from source: sage-8.1.tar.gz
Either way I get the same error when I start it up:
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â SageMath version 8.1, Release Date: 2017-12-07 â
â Type "notebook()" for the browser-based notebook interface. â
â Type "help()" for help. â
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Traceback (most recent call last):
File "/d1/opt/sage/SageMath-8.1/src/bin/sage-ipython", line 7, in <module>
from sage.repl.interpreter import SageTerminalApp
File "/d1/opt/sage/SageMath-8.1/local/lib/python2.7/site-packages/sage/repl/interpreter.py", line 108, in <module>
from sage.repl.prompts import SagePrompts, InterfacePrompts
File "/d1/opt/sage/SageMath-8.1/local/lib/python2.7/site-packages/sage/repl/prompts.py", line 16, in <module>
from IPython.terminal.prompts import Prompts
ImportError: No module named terminal.prompts
I have googled around and I do see the problem has occurred in RedHat Fedora, but the solutions are RedHat-specific. The packages they say to include are not available in Debian. Additionally, they are pulling sage from the RedHat repository. Any help would be most welcome. Thank you in advance.GmeyWed, 17 Jan 2018 18:32:09 +0100https://ask.sagemath.org/question/40658/