Re: [sage-support] Re: Sage Crash Report
Hi, This is the output for the commands doaa@doaa-XPS-L412Z:~$ ls -l /home/doaa/.sage/cache total 8 -rw--- 1 doaa doaa 6 Nov 28 22:12 _usr_lib_sage_devel_sage-main-lazy_import_cache.pickle -rw--- 1 root root 6 Mar 18 20:51 _usr_lib_sagemath_devel_sage-main-lazy_import_cache.pickle doaa@doaa-XPS-L412Z:~$ ls -ld /home/doaa/.sage/cache drwxr-xr-x 2 doaa doaa 4096 Mar 18 20:51 /home/doaa/.sage/cache doaa@doaa-XPS-L412Z:~$ ls -ld /home/doaa/.sage drwx-- 11 doaa doaa 4096 Apr 9 21:15 /home/doaa/.sage Thanks Doaa On 10 April 2013 05:30, P Purkayastha ppu...@gmail.com wrote: On 04/10/2013 04:38 AM, Doaa El-Sakout wrote: Hi, When I opened sage, it crashed and when I wrote in terminal sage I got the following: Oops, Sage crashed. We do our best to make it stable, but... IOError: [Errno 13] Permission denied: '/home/doaa/.sage/cache/_usr_** lib_sagemath_devel_sage-main-**lazy_import_cache.pickle' It says permission denied. Do you have write permission in that file/directory? Can you check the output of the following commands? $ ls -l /home/doaa/.sage/cache $ ls -ld /home/doaa/.sage/cache $ ls -ld /home/doaa/.sage -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscribe@**googlegroups.comsage-support%2bunsubscr...@googlegroups.com . To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/**group/sage-support?hl=enhttp://groups.google.com/group/sage-support?hl=en . For more options, visit https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out . -- Doaa Mostafa Ali Elsakout PhD student at Heriot-Watt University Institute of Petroleum Engineering *Phone:* +44 (0) 131 451 3563 Mobile +44 (0) 7450722558 *Email:* doaa.elsak...@pet.hw.ac.uk *Address:* - Energy Academy 1.14, Heriot-Watt University, Edinburgh EH14 4AS -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [sage-support] Re: Sage Crash Report
Thanks Jan It works now :) On 10 April 2013 09:18, Jan Groenewald j...@aims.ac.za wrote: Hi Doaa, The file owned (incorrectly) by root is -rw--- 1 root root 6 Mar 18 20:51 _usr_lib_sagemath_devel_sage-main-lazy_import_cache.pickle Were you busy doing a package upgrade of sage on 18 March at 20:51 ? PS. You can fix this with sudo chown -R doaa.doaa /home/doaa/.sage/cache Regards, Jan On 10 April 2013 10:12, Doaa El-Sakout d...@aims.ac.za wrote: Hi, This is the output for the commands doaa@doaa-XPS-L412Z:~$ ls -l /home/doaa/.sage/cache total 8 -rw--- 1 doaa doaa 6 Nov 28 22:12 _usr_lib_sage_devel_sage-main-lazy_import_cache.pickle -rw--- 1 root root 6 Mar 18 20:51 _usr_lib_sagemath_devel_sage-main-lazy_import_cache.pickle doaa@doaa-XPS-L412Z:~$ ls -ld /home/doaa/.sage/cache drwxr-xr-x 2 doaa doaa 4096 Mar 18 20:51 /home/doaa/.sage/cache doaa@doaa-XPS-L412Z:~$ ls -ld /home/doaa/.sage drwx-- 11 doaa doaa 4096 Apr 9 21:15 /home/doaa/.sage Thanks Doaa On 10 April 2013 05:30, P Purkayastha ppu...@gmail.com wrote: On 04/10/2013 04:38 AM, Doaa El-Sakout wrote: Hi, When I opened sage, it crashed and when I wrote in terminal sage I got the following: Oops, Sage crashed. We do our best to make it stable, but... IOError: [Errno 13] Permission denied: '/home/doaa/.sage/cache/_usr_** lib_sagemath_devel_sage-main-**lazy_import_cache.pickle' It says permission denied. Do you have write permission in that file/directory? Can you check the output of the following commands? $ ls -l /home/doaa/.sage/cache $ ls -ld /home/doaa/.sage/cache $ ls -ld /home/doaa/.sage -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscribe@**googlegroups.comsage-support%2bunsubscr...@googlegroups.com . To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/**group/sage-support?hl=enhttp://groups.google.com/group/sage-support?hl=en . For more options, visit https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out . -- Doaa Mostafa Ali Elsakout PhD student at Heriot-Watt University Institute of Petroleum Engineering *Phone:* +44 (0) 131 451 3563 Mobile +44 (0) 7450722558 *Email:* doaa.elsak...@pet.hw.ac.uk *Address:* - Energy Academy 1.14, Heriot-Watt University, Edinburgh EH14 4AS -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- .~. /V\ Jan Groenewald /( )\www.aims.ac.za ^^-^^ -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- Doaa Mostafa Ali Elsakout PhD student at Heriot-Watt University Institute of Petroleum Engineering *Phone:* +44 (0) 131 451 3563 Mobile +44 (0) 7450722558 *Email:* doaa.elsak...@pet.hw.ac.uk *Address:* - Energy Academy 1.14, Heriot-Watt University, Edinburgh EH14 4AS -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [sage-support] Sage Crash Report
Hi, When I opened sage, it crashed and when I wrote in terminal sage I got the following: Oops, Sage crashed. We do our best to make it stable, but... A crash report was automatically generated with the following information: - A verbatim copy of the crash traceback. - A copy of your input history during this session. - Data on your current Sage configuration. It was left in the file named: '/home/doaa/.sage/ipython-0.12/Sage_crash_report.txt' If you can email this file to the developers, the information in it will help them in understanding and correcting the problem. You can mail it to: sage-support at sage-support@googlegroups.com with the subject 'Sage Crash Report'. If you want to do it now, the following command will work (under Unix): mail -s 'Sage Crash Report' sage-support@googlegroups.com /home/doaa/.sage/ipython-0.12/Sage_crash_report.txt To ensure accurate tracking of this issue, please file a report about it at: http://trac.sagemath.org/sage_trac Hit Enter to quit (your terminal may close): Any suggestion Doaa On 8 February 2013 20:08, Surendran Karippadath k.k.surend...@gmail.comwrote: Oops, Sage crashed. We do our best to make it stable, but... A crash report was automatically generated with the following information: - A verbatim copy of the crash traceback. - A copy of your input history during this session. - Data on your current Sage configuration. It was left in the file named: '/home/surendran/.sage/ipython/Sage_crash_report.txt' If you can email this file to the developers, the information in it will help them in understanding and correcting the problem. You can mail it to: sage-support at sage-support@googlegroups.com with the subject 'Sage Crash Report'. If you want to do it now, the following command will work (under Unix): mail -s 'Sage Crash Report' sage-support@googlegroups.com /home/surendran/.sage/ipython/Sage_crash_report.txt To ensure accurate tracking of this issue, please file a report about it at: http://trac.sagemath.org/sage_trac Regards Surendran -- 247/3/1 Sadafuli Park, Off DP Road, Baner, Pune 411007 Aadhar : 9559 4359 7055 Phone :+91-20-27298293 -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- Doaa Mostafa Ali Elsakout PhD student at Heriot-Watt University Institute of Petroleum Engineering *Phone:* +44 (0) 131 451 3563 Mobile +44 (0) 7450722558 *Email:* doaa.elsak...@pet.hw.ac.uk *Address:* - Energy Academy 1.14, Heriot-Watt University, Edinburgh EH14 4AS -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en. For more options, visit https://groups.google.com/groups/opt_out. *** IPython post-mortem report {'commit_hash': '177894e', 'commit_source': 'installation', 'default_encoding': 'UTF-8', 'ipython_path': '/usr/lib/sagemath/local/lib/python2.7/site-packages/IPython', 'ipython_version': '0.13.1', 'os_name': 'posix', 'platform': 'Linux-3.2.0-39-generic-pae-i686-with-debian-wheezy-sid', 'sys_executable': '/usr/lib/sagemath/local/bin/python', 'sys_platform': 'linux2', 'sys_version': '2.7.3 (default, Mar 15 2013, 21:35:56) \n[GCC 4.6.3]'} *** *** Crash traceback: --- IOErrorPython 2.7.3: /usr/lib/sagemath/local/bin/python Tue Apr 9 21:33:00 2013 A problem occured executing Python code. Here is the sequence of function calls leading up to the error, with the most recent (innermost) call last. /usr/lib/sagemath/local/bin/sage-ipython in module() 1 #!/usr/bin/env python 2 # -*- coding: utf-8 -*- 3 4 Sage IPython startup script. 5 6 from sage.misc.interpreter import SageTerminalApp 7 8 # Make sure we're using the Sage profile if one isn't specified. 9 import sys 10 if '--profile' not in sys.argv: 11 sys.argv.extend(['--profile', 'sage']) 12 13 app = SageTerminalApp.instance() --- 14 app.initialize() global app.initialize = bound
Re: [sage-support] Re: Unable to Solve Simple Problem
Please, could you explain more what is the problem. According to my understand. b and c are two parameters and you want to solve for d. and you try to use grobner basis, but what I know grobner basis for polynomial and this is not polynomial because the square root. So , you can write d=y^2, y^2==b*y+c if d is real. And if d is complex, d=-y^2, -y^2==i*b*y+c. On 26 October 2012 12:42, Jan derwurzel...@gmail.com wrote: I have a similar problem I can't solve d==b*sqrt(d)+c for d. All suggestions (to_poly_solve, use_grobner) did not work. Thanks, Jan -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en. -- Doaa Mostafa Ali Elsakout PhD student at Heriot-Watt University Institute of Petroleum Engineering *Phone:* +44 (0) 131 451 3563 Mobile +44 (0) 7450722558 *Email:* doaa.elsak...@pet.hw.ac.uk *Address:* - Energy Academy 1.14, Heriot-Watt University, Edinburgh EH14 4AS -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] Phase Space 3D
Hi everyone, I would like to know, how can I plot phase space in 3D using SAGE. When I Google it, I found it using Matlab. Any suggestions, Doaa -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
Re: [sage-support] Re: Phase Space 3D
What I want to plot something like in the attached image. This image made it by using Matlab. On 18 October 2012 15:15, Jason Grout jason-s...@creativetrax.com wrote: On 10/18/12 7:43 AM, Doaa El-Sakout wrote: Hi everyone, I would like to know, how can I plot phase space in 3D using SAGE. When I Google it, I found it using Matlab. Any suggestions, Do you mean like the last example here? http://alpha.sagenb.org/home/**pub/444/http://alpha.sagenb.org/home/pub/444/ Thanks, Jason -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscribe@** googlegroups.com sage-support%2bunsubscr...@googlegroups.com. Visit this group at http://groups.google.com/**group/sage-support?hl=enhttp://groups.google.com/group/sage-support?hl=en . -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en. attachment: 3Dphase_space.png
[sage-support] desolve_system in sage
Hi everyone, I try to solve a system of ODE by sage as follows x,y,sigma,r,z,b,t=var('x,y,sigma,r,z,b,t') sigma=10 b=8/3 r=10 x= function('x',t) y= function('y',t) z= function('z',t) d1=(diff(x,t)-sigma*(y-x)==0) d2=(diff(y,t)-r*x+y+x*z==0) d3=(diff(z,t)-x*y+b*z==0) sol=desolve_system([d1,d2,d3],[x,y,z],ics=[0,1,0],ivar=t);show(sol) But I got the following error TypeError: unable to make sense of Maxima expression 'x(t)=ilt((?g3817-10*laplace(x(t)*z(t),t,?g3817)+1)/(?g3817^2+11*?g3817-90),?g3817,t)' in Sage Any suggestion Doaa -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
Re: [sage-support] desolve_system in sage
Dear David, I would like to plot x(t) against t similar for y and z and after that plot [x,y,z] in phase space So I want know the solution first for the system before plot the result. Thanks Doaa On 11 October 2012 10:55, David Joyner wdjoy...@gmail.com wrote: On Thu, Oct 11, 2012 at 3:20 AM, Doaa El-Sakout d...@aims.ac.za wrote: Hi everyone, I try to solve a system of ODE by sage as follows x,y,sigma,r,z,b,t=var('x,y,sigma,r,z,b,t') sigma=10 b=8/3 r=10 x= function('x',t) y= function('y',t) z= function('z',t) d1=(diff(x,t)-sigma*(y-x)==0) d2=(diff(y,t)-r*x+y+x*z==0) d3=(diff(z,t)-x*y+b*z==0) This makes it non-linear. Did you intend to type that? sol=desolve_system([d1,d2,d3],[x,y,z],ics=[0,1,0],ivar=t);show(sol) But I got the following error TypeError: unable to make sense of Maxima expression 'x(t)=ilt((?g3817-10*laplace(x(t)*z(t),t,?g3817)+1)/(?g3817^2+11*?g3817-90),?g3817,t)' in Sage Any suggestion Doaa -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en. -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en. -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] Solving and plotting the solution of ODE
I try to solve an ODE and plot the result as follows, x,t,a=var('x,t,a') a=0.29 x = function('x', t) S=desolve(diff(x,t)-x*(1-x)+a* (1+sin(2*pi*t)),x,contrib_ode=True,show_method=True) S I found the following [[[x(t) == 0, (-0.29*sin(2*pi*t) - 0.29)*u == 0]], 'riccati'] So what is this u here and how can I plot this and how the solution wrote by this way it is not clear what does it mean Doaa -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] Deformed toric ideal
Hi I have ring R. My parameters are (k21,k46,k64,k56,k65,k34,k43) and my variables are (z2,z5,z6,z7,z1,z3,z4,x1,x2,x3). I have ideal J defined on R and generated by the following polynomials ideal J=z1-k21*x1^2*x2,z2-k46,z3-k64*x1,z4-k56,z5-k65*x2,z6-k34*x1,z7-k43*x3; How can I calculate deformed toric ideal for this ideal. any suggestion Thanks -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Solution of the system of differential equations
Hi, I have a system of differential equations and sage give me the solution as follows, The system: x10,x20,x30,t,f1,f2,c11,c22,c12,c23,k1,k2,x1,x2,x3=var('x10,x20,x30,t,f1,f2,c11,c22,c12,c23,k1,k2,x1,x2,x3') v1=f1*(x1-k1*x2)/(1+c11*x1+c12*x2) v2=f2*(x2-k2*x3)/(1+c22*x2+c23*x3) x1= function('x1',t) x2= function('x2',t) x3= function('x3',t) d1=(diff(x1,t)==0) d3=(diff(x3,t)==0) d2=(diff(x2,t)-v1+v2==0) sol=desolve_system([d1,d2,d3],[x1,x2,x3],[x10,x20,x30],t);show(sol) The result [x1(t)=x1(0);x2(t)=¡(c22f1k1+c12f2)tx22c12c22x22+(c11c23x1+c12c23x2+c23)x3+(c11c22x1+c12+c22)x2+c11x1+1+((c12f2k2¡c23f1k1)x2+(c11f2k2+c23f1)x1+f2k2)tx3c12c22x22+(c11c23x1+c12c23x2+c23)x3+(c11c22x1+c12+c22)x2+c11x1+1¡((c11f2¡c22f1)x1+f1k1+f2)tx2c12c22x22+(c11c23x1+c12c23x2+c23)x3+(c11c22x1+c12+c22)x2+c11x1+1+f1tx1c12c22x22+(c11c23x1+c12c23x2+c23)x3+(c11c22x1+c12+c22)x2+c11x1+1+x2(0);x3(t)=x3(0)] I need to use the value like I need to take nominator of the component of the solution but I could not. Any suggestion Thanks Doaa -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Finding positive kernel
Hi I am using right_kernel to find a kernel, for example the result is [ 1 0 1 0 -1 0 0] [ 0 1 1 0 0 0 0] [ 0 0 0 1 1 0 0] [ 0 0 0 0 0 1 1] How can I (for an arbitrary kernel) get positive entries only, by making a linear combination of rows? Regards, Doaa -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org