[sage-support] Re: Testing if polynomial is in ideal

2010-09-08 Thread Cary Cherng
nevermind I solved my problem. On Sep 7, 5:49 pm, Cary Cherng cche...@gmail.com wrote: This works but is too slow for more complicated examples. Is there a way to speed up x in I for much bigger examples? Or does this already use the fastest algorithm based on groebner basis or something

[sage-support] Re: Graphics3d Object face_list()

2010-09-08 Thread TeamTeamUSA
It seems as if the the Graphics3d Object's face_list() returns a list of 3-tuples or 4-tuples depending upon which plot3d method you call: implicit_plot3d - returns an array of 3-tuples [[(1.8974358974358974, -0.5641025641025641, -0.28205128205128216), (1.9014844804318489, -0.5641025641025641,

[sage-support] Test if p(x) is in a ring generated by polynomials

2010-09-08 Thread Cary Cherng
I am not familiar with algebraic geometry or its terminology and new to sage. p_1,...p_n and q are elements of Z[x_1,...,x_n]. In my context I have some evidence that q can be written as something like q = p_1*p_2 + ... + p_5*p_6. In other words q is a degree 2 polynomial in the p_i's. Can Sage

[sage-support] Re: Testing if polynomial is in ideal

2010-09-08 Thread luisfe
On Sep 8, 2:49 am, Cary Cherng cche...@gmail.com wrote: This works but is too slow for more complicated examples. Is there a way to speed up x in I for much bigger examples? Or does this already use the fastest algorithm based on groebner basis or something else. Blind checking if a

[sage-support] Re: Problem doing symbolic computations (bug in Pynac ?)

2010-09-08 Thread Jean-Pierre Flori
On 8 sep, 02:52, kcrisman kcris...@gmail.com wrote: On Sep 7, 5:26 pm, Burcin Erocal bur...@erocal.org wrote: Hi, Here is a short example to replicate the first error mentioned below: b = [var('b_%s'%i) for i in range(4)] precomp = (2^b_2 + 2)*(2^b_1 + 2^(-b_1) + 2^b_1*2^b_0 -

[sage-support] How to use SAGE Symbolic Expression to make more compact body for 2 loops in one of CG algorithm?

2010-09-08 Thread BSC-BCN
Hi, What I want to do is to express some expression in function of some vectors and matrix. Exactly what I'am trying is to express third iteration of CG algorithm in function of first iteration so that third iteration rely only on the variables(vectors and scalars) from the first iteration (back

[sage-support] Re: Test if p(x) is in a ring generated by polynomials

2010-09-08 Thread john_perry_usm
Are you asking whether q=p_1*p_2+...+p_5*p_6? If so, you can simply construct q and the p_i, then test for equality: sage: q == p_1*p_2 + ... + p_5*p_6 True (or False, depending) (you would fill in the ellipsis with the form you want, which is not obvious to me from what you've written). If

[sage-support] Re: How to use SAGE Symbolic Expression to make more compact body for 2 loops in one of CG algorithm?

2010-09-08 Thread Jason Grout
On 9/8/10 7:45 AM, BSC-BCN wrote: I hope you can understand me... I don't think I really do, but this thread might contain some useful things for you: http://groups.google.com/group/sage-devel/browse_thread/thread/cafb486c79a2eb3c/d0bb78d09a4fb52a Thanks, Jason -- To post to this

[sage-support] irreducibility and cutout

2010-09-08 Thread andrew ewart
is there a good way of testing if a polynomial f(x,y) is irreducible or not as there is a lack of a is_irreducible command also is there a way for sage not to print the line ? not implemented after checking randomly generated f fits various criterion -- To post to this group, send email to

[sage-support] irreducibility and cutout

2010-09-08 Thread andrew ewart
is there a good way of testing if a polynomial f(x,y) is irreducible or not as there is a lack of a is_irreducible command also is there a way for sage not to print the line ? not implemented after checking randomly generated f fits various criterion -- To post to this group, send email to

[sage-support] Arbitrary precision in Cython NumPy?

2010-09-08 Thread KvS
Dear all, I am trying to implement a recursive algorithm that is rather complex, in the sense that it uses a high number of variables and (elementary) computations. The output in Sage looks fine but it gets quite slow, so I am thinking of ways to speed it up. Given that it is mainly a lot of

[sage-support] Re: Custom GUI or updating interact widgets?

2010-09-08 Thread HMark
Hi again, I'm following up to see if someone has any ideas/suggestions for how to create a GUI in the notebook and interact with it in a bi- directional way, where Python code (with the help of Javascript?) can not only read the GUI controls, but also impact/write them. Any example/pointer

[sage-support] Re: installation of Sage

2010-09-08 Thread Michael
I just installed the latest version of gcc, but there are still the same errors. Anyway, does it make any difference for the binary version? On 8 Sep., 02:19, Innigo enrico.manto...@gmail.com wrote: Is it possilbe it's just because the sage install tree may have moved? There seems to be a fair

[sage-support] Re: 4.5.1 or 4.5.2 for win?

2010-09-08 Thread Rolandb
On 15 aug, 12:50, jockothy jgmcc...@gmail.com wrote: Hi! There is a (huge) difference between win version 4.5.1 and 4.5.2. In version 4.5.1 an externalnetworkwas setup, so I can use Sage via Windows Firefox using the address 192.168.236.128. The 4.5.2 version gives the warning that

[sage-support] Re: Arbitrary precision in Cython NumPy?

2010-09-08 Thread Jason Grout
On 9/8/10 1:46 PM, Simon King wrote: Hi Kees! On 8 Sep., 18:19, KvSkeesvansch...@gmail.com wrote: ... I am thinking of ways to speed it up. Given that it is mainly a lot of looping and a lot of elementary computations, I would guess translating it to Cython could help a lot. However I am

[sage-support] Re: Arbitrary precision in Cython NumPy?

2010-09-08 Thread Simon King
Hi Jason! On 8 Sep., 20:57, Jason Grout jason-s...@creativetrax.com wrote: Actually, for a while now, for i in range(...) is translated into fast C intelligently.  In fact, I believe it's the recommended syntax now, instead of 0=i... Even if you do *not* cdefine cdef int i? That's new to me.

[sage-support] Re: Arbitrary precision in Cython NumPy?

2010-09-08 Thread Jason Grout
On 9/8/10 2:15 PM, Simon King wrote: Hi Jason! On 8 Sep., 20:57, Jason Groutjason-s...@creativetrax.com wrote: Actually, for a while now, for i in range(...) is translated into fast C intelligently. In fact, I believe it's the recommended syntax now, instead of 0=i... Even if you do *not*

[sage-support] Re: Arbitrary precision in Cython NumPy?

2010-09-08 Thread Jason Grout
On 9/8/10 2:22 PM, Jason Grout wrote: On 9/8/10 2:15 PM, Simon King wrote: Hi Jason! On 8 Sep., 20:57, Jason Groutjason-s...@creativetrax.com wrote: Actually, for a while now, for i in range(...) is translated into fast C intelligently. In fact, I believe it's the recommended syntax now,

[sage-support] Re: Arbitrary precision in Cython NumPy?

2010-09-08 Thread KvS
Thanks a lot for the hints so far, I will go and try them out. I'd still also be very interested if somebody could shed some more light on my original questions! Thanks, Kees -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to

[sage-support] Re: Arbitrary precision in Cython NumPy?

2010-09-08 Thread Greg Marks
It sounds like a C program using MPFR (http://www.mpfr.org) would do what you want. As MPFR is built into SAGE, you might perhaps find it more convenient to invoke MPFR within SAGE. Sincerely, Greg Marks | Greg Marks

[sage-support] monic list

2010-09-08 Thread andrew ewart
supose i have an input list (which is a list of unknown size) and where each term is a polynomial of form f(x,y) i want to define a function moniclist(list) such that the output makes each term of list monic wrt x eg if list=[2*x, x^2*y^2+x+1, 4*x^2+y^2+3] output would be[x, x^2+x+1, x^2+y^2+3]

[sage-support] monic list

2010-09-08 Thread andrew ewart
supose i have an input list (which is a list of unknown size) and where each term is a polynomial of form f(x,y) i want to define a function moniclist(list) such that the output makes each term of list monic wrt x eg if list=[2*x, x^2*y^2+x+1, 4*x^2+y^2+3] output would be[x, x^2+x+1, x^2+y^2+3]

Re: [sage-support] Re: Arbitrary precision in Cython NumPy?

2010-09-08 Thread Robert Bradshaw
On Wed, Sep 8, 2010 at 3:03 PM, Greg Marks gtma...@gmail.com wrote: It sounds like a C program using MPFR (http://www.mpfr.org) would do what you want.  As MPFR is built into SAGE, you might perhaps find it more convenient to invoke MPFR within SAGE. This is what I would recommend. You can do

[sage-support] Re: monic list

2010-09-08 Thread Nils Bruin
On Sep 8, 3:52 pm, andrew ewart aewartma...@googlemail.com wrote: supose i have an input list (which is a list of unknown size) and where each term is a polynomial of form f(x,y) i want to define a function moniclist(list) such that the output makes each term of list monic wrt x eg if

[sage-support] Re: Arbitrary precision in Cython NumPy?

2010-09-08 Thread KvS
Thanks all, however I am not very successful so far :(. I tried both options mentioned before: - only optimize the loops in Cython and keep using symbolic expressions/infinite precision, but this is unfortunately rather slow; - fully optimize in Cython by turning to doubles everywhere, although

[sage-support] Re: Arbitrary precision in Cython NumPy?

2010-09-08 Thread Jason Grout
On 9/8/10 8:39 PM, KvS wrote: Thanks all, however I am not very successful so far :(. I tried both options mentioned before: - only optimize the loops in Cython and keep using symbolic expressions/infinite precision, but this is unfortunately rather slow; - fully optimize in Cython by turning

[sage-support] Re: showing multiple polygons

2010-09-08 Thread Innigo
Thanks, this is exactly what I want. I do want to be modular. However, my graphics object contains 0 graphics primitives g = Graphics() def f1(g) g += polygon(...) def f2(g) g += ... show(g) Can I not pass g as a parameter and have it returned to outer scope? -- To post to this group,

[sage-support] Re: showing multiple polygons

2010-09-08 Thread Jason Grout
On 9/8/10 9:40 PM, Innigo wrote: Thanks, this is exactly what I want. I do want to be modular. However, my graphics object contains 0 graphics primitives g = Graphics() def f1(g) g += polygon(...) def f2(g) g += ... show(g) Can I not pass g as a parameter and have it returned to

Re: [sage-support] How to install a customized version of sagenb?

2010-09-08 Thread Tim Joseph Dumol
The simplest way to do it would be to either download sagenb, or take it from $SAGE_ROOT/spkg/standard/sagenb-xx.spkg, untar it, apply the patch, and do: `sage -python setup.py develop` which will automatically propagate any changes made to the sagenb directory. Packaging information is included