[sage-support] Re: like prolog

2008-11-09 Thread Justin C. Walker
On Nov 8, 2008, at 22:07 , cesarnda wrote: > can I program stuff in Sage, like the stuff I can program in prolog? I > have programmed several prolog programs and I wish I could code them > in Sage, for example, a program that having an input: > > P -> (Q -> P) > > its output is true. No. Sag

[sage-support] create a file

2008-11-09 Thread aliashamieh
I've started using sage 2 days ago. I wrote some long code and then I found out that I don't know how to save it:( I lost my work while trying to save it. So I need to write a program, save it as a sage file, then run it from the command line. I need to know how I can retrieve the code I write in

[sage-support] Re: create a file

2008-11-09 Thread David Joyner
I guess you are running Sage from the command line? Does http://www.sagemath.org/doc/tut/node36.html help? Sorry if I'm misunderstanding your question. On Sun, Nov 9, 2008 at 9:47 AM, <[EMAIL PROTECTED]> wrote: > > I've started using sage 2 days ago. I wrote some long code and then I > found o

[sage-support] problems with GAP

2008-11-09 Thread Martin Mereb
GAP has a CharacterTable( ) for finite groups of lie type but in SAGE it only works for permutation groups and I didn't understant either if there's any nice way to evaluate those characters at a specific given matrix. Thanks tincho --~--~-~--~~~---~--~~ To post

[sage-support] Re: problems with GAP

2008-11-09 Thread William Stein
On Sun, Nov 9, 2008 at 10:29 AM, Martin Mereb <[EMAIL PROTECTED]> wrote: > > thank you so much > it worked!! David, Thanks! Could you make a trac ticket about this and paste in something that will make it easy for you or somebody to add this functionality later? William > > On Sun, Nov 9, 2008

[sage-support] Re: create a file

2008-11-09 Thread William Stein
On Sun, Nov 9, 2008 at 6:47 AM, <[EMAIL PROTECTED]> wrote: > > I've started using sage 2 days ago. I wrote some long code and then I > found out that I don't know how to save it:( > I lost my work while trying to save it. So I need to write a program, > save it as a sage file, then run it from th

[sage-support] problems with implicit_multiplication

2008-11-09 Thread [EMAIL PROTECTED]
Hello I tried the folowing three links (from sage-devel) on my computer as well as on sagenb.com implicit_multiplication(True) var('x') 3x^3 + 5x - 2 the result is not 3*x^3+5*x-2 as expected and also as reported sage- deve, but: line 6 Integer(3)x**_sage_const_3 + Integer(5)x - _sage_cons

[sage-support] Re: problems with implicit_multiplication

2008-11-09 Thread William Stein
On Sun, Nov 9, 2008 at 3:07 PM, William Stein <[EMAIL PROTECTED]> wrote: > On Sun, Nov 9, 2008 at 2:04 PM, Justin C. Walker <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> On Nov 9, 2008, at 13:27 , [EMAIL PROTECTED] wrote: >> >>> Hello I tried the folowing three links (from sage-devel) on my >>> compu

[sage-support] Re: problems with GAP

2008-11-09 Thread Martin Mereb
it seems you have to add one to the index to get the value of the character at the given conjugacy class On Sun, Nov 9, 2008 at 2:10 PM, William Stein <[EMAIL PROTECTED]> wrote: > > On Sun, Nov 9, 2008 at 10:29 AM, Martin Mereb <[EMAIL PROTECTED]> wrote: >> >> thank you so much >> it worked!! > >

[sage-support] Re: create a file

2008-11-09 Thread alia hamieh
> > I'm using sage 3.1.4 on windows vista. > I know that I should create a file with content the function that i want to implement and then use the load command from the command line to run it. how do we create this file and where do we have to save it? thank you in advance --~--~-~--~

[sage-support] Re: problems with GAP

2008-11-09 Thread David Joyner
Does this do it? sage: G = GL(2,7) sage: z = G.center().an_element() sage: reps = [x.Representative() for x in gap(G).ConjugacyClasses()] sage: reps.index(gap(z)) 8 sage: table = gap(G).CharacterTable().Irr() sage: chi = table[2] sage: chi[8] 1 On Sun, Nov 9, 2008 at 12:58 PM, Martin Mereb <[EM

[sage-support] multivariate Taylor series

2008-11-09 Thread Alex Raichev
Hi all: Is there Sage function that computes Taylor expansions for multivariate functions? Alex --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more option

[sage-support] Re: problems with GAP

2008-11-09 Thread Martin Mereb
thank you so much it worked!! On Sun, Nov 9, 2008 at 12:27 PM, David Joyner <[EMAIL PROTECTED]> wrote: > > Yes, I'll try to implement that in a future version. > Thanks for the suggestion. > > > On Sun, Nov 9, 2008 at 1:15 PM, Martin Mereb <[EMAIL PROTECTED]> wrote: >> >> probably, I'll check it

[sage-support] Re: problems with implicit_multiplication

2008-11-09 Thread William Stein
On Sun, Nov 9, 2008 at 2:04 PM, Justin C. Walker <[EMAIL PROTECTED]> wrote: > > Hi, > > On Nov 9, 2008, at 13:27 , [EMAIL PROTECTED] wrote: > >> Hello I tried the folowing three links (from sage-devel) on my >> computer as well as on sagenb.com

[sage-support] Re: problems with GAP

2008-11-09 Thread Martin Mereb
probably, I'll check it in a second but it is it possible to imlpement something like chi(Z) or chi.eval(Z) or something like that? or making the CharachterTable function available for groups in SAGE, like GL not only the permutationgroups, as GAP does? (like.. in a future) On Sun, Nov 9, 2008 at

[sage-support] Re: problems with GAP

2008-11-09 Thread David Joyner
Done. It's http://trac.sagemath.org/sage_trac/ticket/4487 On Sun, Nov 9, 2008 at 3:10 PM, William Stein <[EMAIL PROTECTED]> wrote: > > On Sun, Nov 9, 2008 at 10:29 AM, Martin Mereb <[EMAIL PROTECTED]> wrote: >> >> thank you so much >> it worked!! > > David, Thanks! > Could you make a trac ticket

[sage-support] Re: problems with GAP

2008-11-09 Thread David Joyner
It might not be implemented but I'm not sure what you mean exactly. You have database_gap-4.4.10 installed? What is the exact command you cannot execute? On Sun, Nov 9, 2008 at 12:17 PM, Martin Mereb <[EMAIL PROTECTED]> wrote: > > GAP has a CharacterTable( ) for finite groups of lie type but in

[sage-support] Re: problems with implicit_multiplication

2008-11-09 Thread Justin C. Walker
Hi, On Nov 9, 2008, at 13:27 , [EMAIL PROTECTED] wrote: > Hello I tried the folowing three links (from sage-devel) on my > computer as well as on sagenb.com > > implicit_multiplication(True) > var('x') > 3x^3 + 5x - 2 > > the result is not 3*x^3+5*x-2 as expected and also as reported sage- > dev

[sage-support] Re: multivariate Taylor series

2008-11-09 Thread Martin Rubey
Alex Raichev <[EMAIL PROTECTED]> writes: > Hi all: > > Is there Sage function that computes Taylor expansions for > multivariate functions? If you are willing to install the optional fricas package: sage: reset() sage: X=axiom('x::TS FRAC INT') sage: Y=axiom('y::TS FRAC INT') sage: axiom._eval

[sage-support] Re: Drawing points on a sphere

2008-11-09 Thread acardh
Thanks Robert, it's exactly what I needed. It was so easy for you, I guess. :o) On Nov 9, 12:28 am, Robert Bradshaw <[EMAIL PROTECTED]> wrote: > On Nov 8, 2008, at 7:52 PM, acardh wrote: > > > Hi, > > Plotting an sphere is straightforward but I need help in how to draw > > points on the sphere.

[sage-support] Re: problems with GAP

2008-11-09 Thread Martin Mereb
and, I almost forgot THANK YOU VERY MUCH On Sun, Nov 9, 2008 at 12:11 PM, David Joyner <[EMAIL PROTECTED]> wrote: > > Does this do it? > > sage: G = GL(2,7) > sage: z = G.center().an_element() > sage: reps = [x.Representative() for x in gap(G).ConjugacyClasses()] > sage: reps.index(gap(z)) > 8 >

[sage-support] Re: problems with GAP

2008-11-09 Thread David Joyner
Yes, I'll try to implement that in a future version. Thanks for the suggestion. On Sun, Nov 9, 2008 at 1:15 PM, Martin Mereb <[EMAIL PROTECTED]> wrote: > > probably, I'll check it in a second > but it is it possible to imlpement something like > chi(Z) > or chi.eval(Z) or something like that? >

[sage-support] Re: problems with GAP

2008-11-09 Thread Martin Mereb
this is on the notebook of sagenb.org G=GL(2,7) Z=G.center().an_element() it will be grat to evaluate every irreducible character at Z (for instance) but: 1) G. has no "charactertable" funcion member 2) when I do table=gap(G).CharacterTable().Irr() g=gap(Z).Representative() chi=table[2] I don