[sage-support] Re: coercion bug?

2009-03-11 Thread William Stein
On Wed, Mar 11, 2009 at 5:23 PM, Alex Raichev wrote: > >> What would you want to do with QQbar in the Symbolic Ring? > > Everything: differentiate functions with coefficients in QQbar, > integrate them, etc. >    I too don't know anything about Maxima or the new symbolics > package in preparation

[sage-support] Re: Why integrate(sin(t*t),t,0,3).n(X) blows up for (apparently) all X > 0?

2009-03-11 Thread Ajay Rawat
sage: a=integrate(sin(t*t),t,0,3) sage: a sqrt(pi)*((sqrt(2)*I + sqrt(2))*erf((3*sqrt(2)*I + 3*sqrt(2))/2) + (sqrt(2)*I - sqrt(2))*erf((3*sqrt(2)*I - 3*sqrt(2))/2))/8 -- Ajay Rawat Kalpakkam, IGCAR - Save Himalayas --

[sage-support] Re: patch failed to apply

2009-03-11 Thread mabshoff
On Mar 11, 5:41 pm, Florian wrote: > Hello! Hi Florian, > I am trying to apply the patch variety_bugfix (ticket #5486). > > hg_sage.patch(...) terminates with the following error: > applying /tmp/variety_bugfix.patch > patching file sage/rings/polynomial/multi_polynomial_ideal.py > Hunk #1 FA

[sage-support] patch failed to apply

2009-03-11 Thread Florian
Hello! I am trying to apply the patch variety_bugfix (ticket #5486). hg_sage.patch(...) terminates with the following error: applying /tmp/variety_bugfix.patch patching file sage/rings/polynomial/multi_polynomial_ideal.py Hunk #1 FAILED at 819 Hunk #3 FAILED at 1886 2 out of 3 hunks FAILED -- sa

[sage-support] Re: coercion bug?

2009-03-11 Thread Alex Raichev
> What would you want to do with QQbar in the Symbolic Ring? Everything: differentiate functions with coefficients in QQbar, integrate them, etc. I too don't know anything about Maxima or the new symbolics package in preparation --Pynac is it? So, i'm just standing on the sidelines cheering

[sage-support] Fwd: two questions about sage-mode

2009-03-11 Thread Alex Ghitza
-- Forwarded message -- From: Nick Alexander Date: Thu, Mar 12, 2009 at 10:08 AM Subject: Re: two questions about sage-mode To: Alex Ghitza On 11-Mar-09, at 3:48 PM, Alex Ghitza wrote: Hi folks, > > Quite a few people at Sage Days 14 are fans of emacs and therefore trying > t

[sage-support] Re: coercion bug?

2009-03-11 Thread Robert Bradshaw
On Mar 11, 2009, at 3:50 PM, Carl Witty wrote: > > On Mar 11, 2:55 pm, Alex Raichev wrote: Well, I think I can explain what's happening. There's a coercion from arbitrary polynomials into the Symbolic Ring; this is useful, because it lets you deal with polynomials o

[sage-support] Re: coercion bug?

2009-03-11 Thread Carl Witty
On Mar 11, 2:55 pm, Alex Raichev wrote: > > > Well, I think I can explain what's happening.  There's a coercion from > > > arbitrary polynomials into the Symbolic Ring; this is useful, because > > > it lets you deal with polynomials over the rationals, etc. > > Similarly, i think a coercion from

[sage-support] two questions about sage-mode

2009-03-11 Thread Alex Ghitza
Hi folks, Quite a few people at Sage Days 14 are fans of emacs and therefore trying to use sage-mode. In particular, Mike Stillman had two questions that I didn't know how to answer. It might be that these are not implemented as of yet and should be, in which case I'll make enhancement trac tick

[sage-support] Re: instructions for installing sage do not work

2009-03-11 Thread Robert Bradshaw
On Mar 11, 2009, at 8:57 AM, nsauer wrote: > > Thanks for replying; > > I start sage by double clicking on the name "sage" in the finder. > It is in /Applications/sage/ > This file sage, in /Applications/sage/ is a Unix Executible File. > Even so, if in the terminal I change the directory to > /

[sage-support] Re: Maxima not able to multiply functions with complex numbers

2009-03-11 Thread Robert Bradshaw
On Mar 11, 2009, at 4:56 AM, Mani chandra wrote: > > Hi, > > The following function gives me an error. > > def test(l, r): >return complex(0, 1)**l*spherical_bessel_J(l, r) [...] > > TypeError: unsupported operand parent(s) for '*': ' 'complex'>' and > 'Symbolic Ring' > >

[sage-support] Re: coercion bug?

2009-03-11 Thread Alex Raichev
> > Well, I think I can explain what's happening. There's a coercion from > > arbitrary polynomials into the Symbolic Ring; this is useful, because > > it lets you deal with polynomials over the rationals, etc. Similarly, i think a coercion from QQbar and polynomials over QQbar to the Symbolic R

[sage-support] Re: applying patch produces an error

2009-03-11 Thread Jason Grout
Florian wrote: > I realize I wasn't root. After becoming root, I get a different error. > > "Refusing to do operation since you still have unrecorded changes. You > must check in all changes in your working repository first." > > I am not a linux person. Can anybody decode this for me? > This

[sage-support] Re: applying patch produces an error

2009-03-11 Thread Florian
I realize I wasn't root. After becoming root, I get a different error. "Refusing to do operation since you still have unrecorded changes. You must check in all changes in your working repository first." I am not a linux person. Can anybody decode this for me? Thanks! Florian On Mar 11, 3:43 pm

[sage-support] applying patch produces an error

2009-03-11 Thread Florian
Hi everyone, I am trying to apply a patch. I downloaded the actual patch (not the html file) to /tmp and called both hg_sage.apply('...') as well as hg_sage.patch('...') from the sage prompt. Both calls result in various (insignificant) warnings and an error: cd "/usr/local/sage/devel/sage" &&

[sage-support] Re: Why integrate(sin(t*t),t,0,3).n(X) blows up for (apparently) all X > 0?

2009-03-11 Thread Jason Grout
David Joyner wrote: > I agree > > sage: a = integrate(sin(t*t),t,0,3) > sage: a.n(3) > ERROR: An unexpected error occurred while tokenizing input > The following traceback may be corrupted or invalid > The error message is: ('EOF in multi-line statement', (897, 0)) > Maybe this is the same bug

[sage-support] Re: Why can't do integrate( abs( sin(t^2) ), t, 0, 3) ?

2009-03-11 Thread David Joyner
On Wed, Mar 11, 2009 at 2:52 PM, mark mcclure wrote: > > > > On Mar 11, 2:46 pm, David Joyner wrote: >> sage: t = var("t") >> sage: numerical_integral(abs(sin(t^2)),0,3) >> (1.7024100330599248, 1.5397333279914378e-06) >> >> because AFAIK, integrate(abs(sin(t*t)),t,0,3) >> cannot be computed in c

[sage-support] Re: Why can't do integrate( abs( sin(t^2) ), t, 0, 3) ?

2009-03-11 Thread mark mcclure
> > Mathematica returns the result in terms of Fresnel functions. > > Point taken. However, integrate(abs(sin(t*t)),t,0,3) is > by definition (since sin(x)>0 in that interval) the > Fresnel integral S(3),http://en.wikipedia.org/wiki/Fresnel_integral, > and just renaming it doesn't make it a closed

[sage-support] Re: Why integrate(sin(t*t),t,0,3).n(X) blows up for (apparently) all X > 0?

2009-03-11 Thread David Joyner
I agree sage: a = integrate(sin(t*t),t,0,3) sage: a.n(3) ERROR: An unexpected error occurred while tokenizing input The following traceback may be corrupted or invalid The error message is: ('EOF in multi-line statement', (897, 0)) has a strange error message which might (or might not) indicat

[sage-support] Re: Why can't do integrate( abs( sin(t^2) ), t, 0, 3) ?

2009-03-11 Thread mark mcclure
On Mar 11, 2:46 pm, David Joyner wrote: > sage: t = var("t") > sage: numerical_integral(abs(sin(t^2)),0,3) > (1.7024100330599248, 1.5397333279914378e-06) > > because AFAIK, integrate(abs(sin(t*t)),t,0,3) > cannot be computed in closed form. Mathematica returns the result in terms of Fresnel fu

[sage-support] Why integrate(sin(t*t),t,0,3).n(X) blows up for (apparently) all X > 0?

2009-03-11 Thread seber...@spawar.navy.mil
Why integrate(sin(t*t),t,0,3).n(X) blows up for (apparently) all X > 0? cs --~--~-~--~~~---~--~~ 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 opt

[sage-support] Re: Galois group

2009-03-11 Thread David Joyner
On Wed, Mar 11, 2009 at 2:13 PM, Jaakko wrote: > > I would like to determine the Galois group of x^12 + 2x +2 over Q. I > don't know how to read the answer I got from Sage: > > sudo ./sage -i database_gap-4.4.9 > Installing database_gap-4.4.9 > Calling sage-spkg on database_gap-4.4.9 > You must s

[sage-support] Galois group

2009-03-11 Thread Jaakko
I would like to determine the Galois group of x^12 + 2x +2 over Q. I don't know how to read the answer I got from Sage: sudo ./sage -i database_gap-4.4.9 Installing database_gap-4.4.9 Calling sage-spkg on database_gap-4.4.9 You must set the SAGE_ROOT environment variable or run this script from t

[sage-support] Re: Why can't do integrate( abs( sin(t^2) ), t, 0, 3) ?

2009-03-11 Thread David Joyner
Do you mean sage: t = var("t") sage: numerical_integral(abs(sin(t^2)),0,3) (1.7024100330599248, 1.5397333279914378e-06) because AFAIK, integrate(abs(sin(t*t)),t,0,3) cannot be computed in closed form. On Wed, Mar 11, 2009 at 2:19 PM, seber...@spawar.navy.mil wrote: > > Why can't do integrate(

[sage-support] Re: Variable plot limits

2009-03-11 Thread mark mcclure
On Mar 10, 1:10 pm, roleic wrote: > In integrals variable integration limits work fine with sage. > Now I would like to plot the variable integration range with plot3d or > parametric_plot3d using variable plot range limits: > > u,v = var('u v') > parametric_plot3d([u, v, u*0.1], (u, 0, 6), (v, 0

[sage-support] Why can't do integrate( abs( sin(t^2) ), t, 0, 3) ?

2009-03-11 Thread seber...@spawar.navy.mil
Why can't do integrate( abs( sin(t^2) ), t, 0, 3) ? Sage just returns the question... sage: integrate(abs(sin(t*t)),t,0,3) integrate(abs(sin(t^2)), t, 0, 3) cs --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscrib

[sage-support] Re: Maxima not able to multiply functions with complex numbers

2009-03-11 Thread Carl Witty
On Mar 11, 10:47 am, Mani chandra wrote: > Also I tried some basic stuff with "I" and it doesn't seem to be working. > > sage: exp(I).real > Sage prefers methods to properties: sage: exp(I).real() cos(1) Using z = exp(I*r*cos(theta)).real() makes your parametric_plot3d work, too. Carl --~

[sage-support] Re: Maxima not able to multiply functions with complex numbers

2009-03-11 Thread Mani chandra
Simon King wrote: > Dear Mani chandra, > > something really weird seems to be going on. This is a fresh session > of Sage 3.3: > > sage: complex(0,1)*spherical_bessel_J(1,1) > --- > TypeError Tr

[sage-support] looking for a Sage IDE: Anybody using emacs sage-mode or eclipse-pydev out there?

2009-03-11 Thread Iwan Lappo-Danilewski
To actually do some coding it would be nice to have some sort of IDE on my ubuntu machine. So I first gave emacs sage-mode a try, installed it according to wiki (http://wiki.sagemath.org/sage-mode) using the output form the install script to set up ~/.emacs. Code Highlighting works.. but Ctrl-c C

[sage-support] Re: symbolic matrix multiplication in sage

2009-03-11 Thread alex
Thank you very much, for the useful information ! Where can I find a complete and good documentation about Sage, better then the tutorial or the reference ? Thank you again. On Mar 10, 8:00 pm, Jason Grout wrote: > alex wrote: > > This seems to work: > > given a symbolic matrix P of dimension

[sage-support] Re: tab-completion problems running sage 3.2.3 on Ubuntu 8.10

2009-03-11 Thread Iwan Lappo-Danilewski
3) Forgot a further issue in filebrowsing: if I use the tab comletion to got to let's say directory "./white pace" by typing "cd ./w>>tab", It completes correctly but then offers me the message: [Errno 2] No such file or directory: './white._backslash_( space)' Can't blame ipython, since all thre

[sage-support] Re: instructions for installing sage do not work

2009-03-11 Thread nsauer
Thanks for replying; I start sage by double clicking on the name "sage" in the finder. It is in /Applications/sage/ This file sage, in /Applications/sage/ is a Unix Executible File. Even so, if in the terminal I change the directory to /Applications/sage/ and type sage I get the return that -bas

[sage-support] tab-completion problems running sage 3.2.3 on Ubuntu 8.10

2009-03-11 Thread Iwan Lappo-Danilewski
Searching, documentation and following the discussion on this group have not guided me towards a solution of two problems I'm experiencing in using the sage binaries. 1) In the terminal the sage promt gets all cluttered up by tab completion, making it impossible to use as a file browser (same pro

[sage-support] Re: How do I close a function definition?

2009-03-11 Thread Simon King
Dear Chandra, On Mar 11, 3:32 pm, "R (Chandra) Chandrasekhar" wrote: > > sage: def is_even(n): > : return n%2 == 0 > : is_even(2) > Just press return a second time: sage: def is_even(n): : return n%2==0 ..

[sage-support] Re: Maxima not able to multiply functions with complex numbers

2009-03-11 Thread Simon King
Dear Mani chandra, something really weird seems to be going on. This is a fresh session of Sage 3.3: sage: complex(0,1)*spherical_bessel_J(1,1) --- TypeError Traceback (most recent call last)

[sage-support] How do I close a function definition?

2009-03-11 Thread R (Chandra) Chandrasekhar
Folks, I am running SAGE Version 3.0.5, Release Date: 2008-07-11 compiled from the Ubuntu package source package sagemath_3.0.5dfsg-2ubuntu1 on my AMD 64 PC running a 2.6.27-11-generic Linux kernel with Kubuntu 8.04 and KDE 4.2. I am going through the tutorial and have just found a snag. In

[sage-support] Re: Variable plot limits

2009-03-11 Thread Jason Grout
roleic wrote: > Thanks Jason, > now I tried to implement such a True/False function in order to > multiply it with the actual plot function to carve out the wanted plot > region. > Below I defined the function as a callable object as requested by the > plot command. > In a print test the function

[sage-support] Re: Boolean Polynomial Ring variety computation problem

2009-03-11 Thread Florian
Wow, that was extremely quick guys! Thanks a lot!! Hut ab. Florian On Mar 11, 7:59 am, Martin Albrecht wrote: > On Tuesday 10 March 2009, Florian wrote: > > > Thanks for having a look! > > It turns out it was our (my) fault all along, patch is up at > >  http://trac.sagemath.org/sage_trac/tick

[sage-support] Re: need sage configuration support

2009-03-11 Thread ajju
On Mar 11, 1:39 am, Ondrej Certik wrote: > Hi Kumar, > > On Mon, Mar 9, 2009 at 10:24 PM, Kumar wrote: > > > Hi All, > >          I am facing problems in configure sage-notebook in my > > desktop. though i had follow all guide line which is given > > onhttp://www.sagemath.org/doc/inst/node6.ht

[sage-support] Maxima not able to multiply functions with complex numbers

2009-03-11 Thread Mani chandra
Hi, The following function gives me an error. def test(l, r): return complex(0, 1)**l*spherical_bessel_J(l, r) sage: test(1, 1) --- TypeError Traceback (most recen

[sage-support] Re: VMware Player. Read files from windows OS

2009-03-11 Thread William Stein
On Wed, Mar 11, 2009 at 4:03 AM, hpon wrote: > > Hi, > > I'm running Sage from VMware Player (Sage command line) and I would > like to load a sage-file that I wrote in Windows XP.  Is that > possible?  How is it done? Data --> Upload or create file ... If your file is called a.sage, then you ca

[sage-support] Re: Boolean Polynomial Ring variety computation problem

2009-03-11 Thread Martin Albrecht
On Tuesday 10 March 2009, Florian wrote: > Thanks for having a look! It turns out it was our (my) fault all along, patch is up at http://trac.sagemath.org/sage_trac/ticket/5486 and awaits review. Cheers, Martin -- name: Martin Albrecht _pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&searc

[sage-support] Re: Variable plot limits

2009-03-11 Thread roleic
Thanks Jason, now I tried to implement such a True/False function in order to multiply it with the actual plot function to carve out the wanted plot region. Below I defined the function as a callable object as requested by the plot command. In a print test the function works well. But when used in

[sage-support] VMware Player. Read files from windows OS

2009-03-11 Thread hpon
Hi, I'm running Sage from VMware Player (Sage command line) and I would like to load a sage-file that I wrote in Windows XP. Is that possible? How is it done? Regards, hpon --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com

[sage-support] Re: sage simplification

2009-03-11 Thread Martin Rubey
Martin Rubey writes: > I did not want to say that sqrt(a*b)=sqrt(a)*sqrt(b) is always good > behaviour, but there are circumstances where you want it. Eg., it > seems that it's necessary for symbolic integration, where you are > really working in a differential field. I should have added: Wald

[sage-support] Re: sage simplification

2009-03-11 Thread Martin Rubey
Stan Schymanski writes: > Hi Martin, > > I can't imagine that such a change in the result is intended > behaviour of a simplify action. If it is, one should either stay > away from it if one is planning to do any numeric calculations or > understand when to use it and when not. I'm still strugg

[sage-support] Re: sage simplification

2009-03-11 Thread Stan Schymanski
Hi Martin, I can't imagine that such a change in the result is intended behaviour of a simplify action. If it is, one should either stay away from it if one is planning to do any numeric calculations or understand when to use it and when not. I'm still struggling with that. I am much more fond o