[sage-support] little programe about {CRT(Chinese remainder theorem) vectors} not working. I neeed help please

2008-07-20 Thread doctorantinfo
Hello I wrote this program in SAGE online, but i failed to find error, def gcd_multipliers(x, alpha, i): fac=factor(alpha) projections=[] for p,v in fac: l=[0]*len(x); if gcd(x[i],p)!= 1: l[i]=1; for j in range(1, len(x)) if gcd(x[j],p) == 1: l[j]=1; break projections.append(l) return CRT_vect

[sage-support] Re: Transitioning from Maple...

2008-07-20 Thread Luis Finotti
On Sun, Jul 20, 2008 at 5:05 PM, William Stein <[EMAIL PROTECTED]> wrote: > There is a very cool firefox extension that makes it so you can edit > *any* textarea in your web browser using emacs. I've never used it, > but saw a lot of people using it at the last Sage workshop. > Unfortunately I c

[sage-support] Re: Transitioning from Maple...

2008-07-20 Thread William Stein
On Mon, Jul 21, 2008 at 12:49 AM, Donu Arapura <[EMAIL PROTECTED]> wrote: > > >> >> Betti numbers for moduli spaces of vector bundles doesn't sound >> at all esoteric to my ears. Sage's original reason for existnce >> is research mathematics after all, and that's what most Sage >> developers do.

[sage-support] Re: Transitioning from Maple...

2008-07-20 Thread Donu Arapura
> > Betti numbers for moduli spaces of vector bundles doesn't sound > at all esoteric to my ears. Sage's original reason for existnce > is research mathematics after all, and that's what most Sage > developers do. > > -- William > OK. When I'm ready to submit it, what's the best way? - Donu

[sage-support] Re: Why standalone Python/Sage scripts take longer to run ?

2008-07-20 Thread William Stein
On Sun, Jul 20, 2008 at 10:24 PM, Shing Hing Man <[EMAIL PROTECTED]> wrote: > > If I submit a command that takes a long time to run, > > eg > (1) > http://localhost:8000/simple/compute?session=(session)&code=factor(2^1000 > -1) > > then the immediately returned JSON will have status equals comp

[sage-support] Re: Transitioning from Maple...

2008-07-20 Thread William Stein
On Mon, Jul 21, 2008 at 12:14 AM, Donu Arapura <[EMAIL PROTECTED]> wrote: > > >> >>> Incidentally, the script in question computes Betti numbers for >>> moduli spaces >>> of vector bundles using standard formulas. I'm happy to say that it >>> seems to >>> be working correctly under Sage. I've che

[sage-support] Re: Transitioning from Maple...

2008-07-20 Thread Donu Arapura
> >> Incidentally, the script in question computes Betti numbers for >> moduli spaces >> of vector bundles using standard formulas. I'm happy to say that it >> seems to >> be working correctly under Sage. I've checked it against values >> generated by >> my original Maple script and published va

[sage-support] Re: sage: in the notebook input

2008-07-20 Thread William Stein
On Sun, Jul 20, 2008 at 11:38 PM, Alejandro Jakubi <[EMAIL PROTECTED]> wrote: > >> in the notebook one has the rule: "If any line starts with a prompt, >> then *only* the lines that start with prompts are evaluated, and all >> others are ignored." > > Thank you for this explanation. Apparently I h

[sage-support] Re: Why standalone Python/Sage scripts take longer to run ?

2008-07-20 Thread Shing Hing Man
If I submit a command that takes a long time to run, eg (1) http://localhost:8000/simple/compute?session=(session)&code=factor(2^1000 -1) then the immediately returned JSON will have status equals computing. I have modified my Java program, so that after (1) is submitted, I keep querying SAG

[sage-support] Re: show typesetted output

2008-07-20 Thread Alejandro Jakubi
Hello Could someone reproduce this output producing TeX code? Is it well known issue of the command 'show'? Alejandro --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PRO

[sage-support] Re: sage: in the notebook input

2008-07-20 Thread Alejandro Jakubi
> in the notebook one has the rule: "If any line starts with a prompt, > then *only* the lines that start with prompts are evaluated, and all > others are ignored." Thank you for this explanation. Apparently I have missed where this rule is stated in the documentation. Alejandro --~--~-~

[sage-support] Re: sage: in the notebook input

2008-07-20 Thread William Stein
On Tue, Jul 15, 2008 at 11:46 PM, Alejandro Jakubi <[EMAIL PROTECTED]> wrote: > > May be a bug or expected behavior, I do not know. > > I have pasted the example of "Tachyon 3D plotting" here: > http://www.sagemath.org/doc/html/const/node19.html > to a notebook input region in this way: > > === >

[sage-support] Re: sage: in the notebook input

2008-07-20 Thread Alejandro Jakubi
Hello Could someone tell me whether this is the expected behavior or a bug? Alejandro --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit t

[sage-support] Re: Transitioning from Maple...

2008-07-20 Thread William Stein
On Sun, Jul 20, 2008 at 9:04 PM, Donu Arapura <[EMAIL PROTECTED]> wrote: > > I apologize in advance for my somewhat rambling post. I don't have > any really urgent > questions; just a few small ones, along with some comments. I'm an > algebraic > geometer, so I use Macaulay 2 for certain things, b

[sage-support] Re: Transitioning from Maple...

2008-07-20 Thread Donu Arapura
Sorry about the formatting. I have to remember that what you see is not what you get. - DA --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options,

[sage-support] Transitioning from Maple...

2008-07-20 Thread Donu Arapura
I apologize in advance for my somewhat rambling post. I don't have any really urgent questions; just a few small ones, along with some comments. I'm an algebraic geometer, so I use Macaulay 2 for certain things, but often I prefer Maple which has a lot more flexibility. Although I have free

[sage-support] Re: Why is kernel computation for matrices over GF(2) so slow?

2008-07-20 Thread William Stein
On Sat, Jul 19, 2008 at 11:49 PM, Simon King <[EMAIL PROTECTED]> wrote: > > Dear Sage team, > > I don't know whether this post should better go to sage-devel or sage- > support. > > I understood that recently the implementation of matrices over GF(2) > was considerably improved. Therefore i am ver

[sage-support] Re: No VMWare virtual machine at mirrors

2008-07-20 Thread David Joyner
They may have sync'd up by now. The mirror in Utah, http://www.opensourcemath.org/sage/win/ seems to have it. On Fri, Jul 18, 2008 at 11:22 PM, murray <[EMAIL PROTECTED]> wrote: > > I wanted to download the current VMWare virtual version from a local > mirror, but neither of the closest two mirro

[sage-support] Why standalone Python/Sage scripts take longer to run ?

2008-07-20 Thread Shing
Hi, I have tried the standalone Python/Script at http://www.sagemath.org/doc/html/tut/node55.html to factorize a number. #!/usr/bin/env sage import sys from sage.all import * if len(sys.argv) != 2: print "Usage: %s "%sys.argv[0] print "Outputs the prime factorization of n." sys.

[sage-support] Re: Why standalone Python/Sage scripts take longer to run ?

2008-07-20 Thread Shing
Thanks for the sample code! I have managed to convert it to Java and successfully execute factor(2006) in sage from Java. Shing public class SageSession { public String getSession(String hostname, String port, String password) { String session = null;