[sage-support] Re: SR + QQbar bug?

2013-12-04 Thread GaryMak
Hi Guys was just wondering whether the algebraic coercion QQbar -- SR had been implemented in any form yet? I certainly cannot trick it into happening! ... eg I have a matrix in SR and I need its (diagonalization and) normalized eigenmatrix - that doesn't seem to work in SR (not that I

[sage-support] Re: Bug? in n() function for vectors?

2013-08-17 Thread GaryMak
Dear Jason, thank you very much. Re the patch: sadly, I tried (thanks to Basu's infinitely patient hints) to get involved with amending the docs a few months ago, but failed miserably and even put up an ad for someone to help me with SAGE/computing here at Imperial (!) but got nowhere with

[sage-support] Re: Bug? in n() function for vectors?

2013-08-17 Thread GaryMak
... On Saturday, August 17, 2013 9:58:40 AM UTC+1, GaryMak wrote: Dear Jason, thank you very much. Re the patch: sadly, I tried (thanks to Basu's infinitely patient hints) to get involved with amending the docs a few months ago, but failed miserably and even put up an ad for someone to help me

[sage-support] Bug? in n() function for vectors?

2013-08-16 Thread GaryMak
Hi all I hesitate to declare a bug, since it's probably something I cannot find in the help, but the following is very strange The following code always seems to output many vectors quad of length 4 each of whose numerical approx quad.n() is a vector which only has length 3 ...

[sage-support] Re: Bug? in n() function for vectors?

2013-08-16 Thread GaryMak
PS sorry I forgot to mention this happens in 5.7 and 5.11 on a Mac OSX 5.6.8 On Friday, August 16, 2013 10:40:25 PM UTC+1, GaryMak wrote: Hi all I hesitate to declare a bug, since it's probably something I cannot find in the help, but the following is very strange The following code

[sage-support] Re: plot3d using real-valued real-parameter functions but involving complex numbers as intermediates

2013-04-25 Thread GaryMak
Hi again the following is driving me absolutely nuts. I thought i had implemented all of the previous lessons you guys have taught me, but no matter how I re-wire this I cannot get it to work. The function f works fine btw, as a standalone function. But the minimize thing gives me all sorts of

[sage-support] Re: plot3d using real-valued real-parameter functions but involving complex numbers as intermediates

2013-04-17 Thread GaryMak
, and the function f as you defined it also works fine on individual (pairs of) angles ... does this code work on your computer? Thanks again On Wednesday, April 17, 2013 2:54:35 AM UTC+2, P Purkayastha wrote: On 04/16/2013 09:57 PM, GaryMak wrote: Hi I am trying to use plot functions

[sage-support] plot3d using real-valued real-parameter functions but involving complex numbers as intermediates

2013-04-16 Thread GaryMak
Hi I am trying to use plot functions for the first time in sage - apologies if this is a dumb question for a change. I have a square matrix M of fixed complex numbers which are then all multiplied by a different phase depending on which column they are in. (In the 2x2 example below

[sage-support] Simultaneous embedding of CyclotomicField(n) and sqrt(n)

2013-04-15 Thread GaryMak
Hi everyone I am doing some calcs involving n-th roots of unity and the square root of n, all viewed ultimately as complex numbers (where n is any positive integer). Everything is of course fine if sqrt(n) is in QQ(zeta_n), and everything is also fine for other n except that if I wish to step

Re: [sage-support] Re: Saving sws files in VirtualBox lab situation

2013-04-07 Thread GaryMak
Hi Volker just so you know, I just installed the latest VM version and it has the same problem best regards Gary On Saturday, April 6, 2013 8:45:30 PM UTC+2, Volker Braun wrote: Thats it, with the non-Dropbox folder everything is as expected. You should be able to load files from there. It

[sage-support] Re: Saving sws files in VirtualBox lab situation

2013-04-06 Thread GaryMak
OK ... this is a very sad day ... I am finally going to have to admit publicly now that I cannot even follow the instructions at Section4 of http://wiki.sagemath.org/SageAppliance in order to get my VM to be able to see python scripts I download from the kind people in this GoogleGroup ... I

[sage-support] Re: Saving sws files in VirtualBox lab situation

2013-04-06 Thread GaryMak
to update the wiki as necessary) but the shared folder section should work. And does work for me. Whats the output of os.system('ls /media') os.system('ls /media/sf_Auxiliary_files') on your machine? You should get a list of files... On Saturday, April 6, 2013 12:10:20 PM UTC+1, GaryMak wrote

[sage-support] Re: Saving sws files in VirtualBox lab situation

2013-04-06 Thread GaryMak
slightly more helpfully: if I do each separately I get sf_Auxiliary_files 0 and: ls: cannot access /media/sf_Auxiliary_files: No such file or directory 512 On Saturday, April 6, 2013 4:50:50 PM UTC+2, GaryMak wrote: Hi - sorry for delay - thanks - I must have done something wrong - I get

[sage-support] Re: Generating variables using indexing

2013-03-29 Thread GaryMak
Hi guys apologies as usual for how dumb this question's going to sound ... but how do I actually *use *the variables a[1] etc? What I was hoping to do was to use them in the following way (once I had already apparently successfully invoked Jason's routine), where d is a variable I would like

[sage-support] Re: How do you stop sage in the middle of a block?

2013-03-05 Thread GaryMak
Hi - IT's most hopeless victim weighing in here I too would like a civilised way of exiting a loop; however if I implement os._exit(0) I get no output prior to the exit, no matter how much should have been printed by then ... for example the following program for ii in range(0,10):

Re: [sage-support] Re: How do you stop sage in the middle of a block?

2013-03-05 Thread GaryMak
() On Mar 5, 2013 4:49 AM, GaryMak garym...@googlemail.com javascript: wrote: Hi - IT's most hopeless victim weighing in here I too would like a civilised way of exiting a loop; however if I implement os._exit(0) I get no output prior to the exit, no matter how much should have been

Re: [sage-support] Re: How do you stop sage in the middle of a block?

2013-03-05 Thread GaryMak
thanks Jeroen - that's perfect - whatever it does!! On Tuesday, March 5, 2013 2:54:27 PM UTC, Jeroen Demeyer wrote: On 2013-03-05 13:49, GaryMak wrote: Hi - IT's most hopeless victim weighing in here I too would like a civilised way of exiting a loop; however if I implement os

Re: [sage-support] Re: How do you stop sage in the middle of a block?

2013-03-05 Thread GaryMak
Cremona On 5 March 2013 14:54, Jeroen Demeyer jdem...@cage.ugent.be javascript: wrote: On 2013-03-05 13:49, GaryMak wrote: Hi - IT's most hopeless victim weighing in here I too would like a civilised way of exiting a loop; however if I implement os._exit(0) I get no output prior

[sage-support] Re: How do you stop sage in the middle of a block?

2013-03-05 Thread GaryMak
back from the dark side ... and they are killed off by the sys.exit() options. So Jason's solution is the best for my purposes - thank you!! On Tuesday, March 5, 2013 4:33:29 PM UTC, Jason Grout wrote: On 3/5/13 10:10 AM, GaryMak wrote: thanks John - yes - what I didn't explain was that I