[sage-support] Re: intersection of two lines

2010-09-14 Thread Enrico
I have code that defines a line segment as a point and a vector. So for line pq, I compute point q from l.p and l.v when necessary. I also refer to x and y coords eg. (p.x+q.x, p.y+q.y) So I've wrapped line2d and point2d from sage using them as __repr__ in my new class and I'm wondering if this is

[sage-support] Re: Obtaining data from a computation in process

2010-09-14 Thread Simon King
Hi Nick! On Sep 13, 9:36 pm, Nick aroy...@gmail.com wrote: Sorry, I just needed to be a little patient.  I eventually returned to the Sage command prompt.  Typed S and got back an empty set (I know it wouldn't have been completely empty). OK, but ctrl-c will only interrupt the computation,

[sage-support] error in latex()

2010-09-14 Thread Stan Schymanski
Dear all, I think that I found an annoying bug in latex. In a notebook cell, automatic_names(True) latex(exp((298*S_j - H_j)/(298*R_m))) gives e^{\left(\frac{-H_{j} - 298 \, S_{j}}{298 \, R_{m}}\right)} The sign of 298 S_j is reversed!! Actually, is there a way to latexify an expression

[sage-support] summation

2010-09-14 Thread sps
How can I calculate this summation: summation(from:0,to:+oo,((2*I)^n/(n^3+1)*(1/4)^n)) in sage? Can I find radius of convergence of series? How? Thank you -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to

[sage-support] Re: summation

2010-09-14 Thread Simon King
Hi! On Sep 14, 4:08 pm, sps debernasave...@libero.it wrote: How can I calculate this summation: summation(from:0,to:+oo,((2*I)^n/(n^3+1)*(1/4)^n)) in sage? Disclaimer: I am not an expert in symbolics (I am more into algebra). I thought the following should work: sage: var('n') n

[sage-support] Re: summation

2010-09-14 Thread kcrisman
On Sep 14, 11:08 am, sps debernasave...@libero.it wrote: How can I calculate this summation: summation(from:0,to:+oo,((2*I)^n/(n^3+1)*(1/4)^n)) in sage? First I tried this: -- | Sage Version 4.4.4, Release Date:

[sage-support] Re: summation

2010-09-14 Thread sps
So you say, I have to digit this: maxima_console() ? What are these other expressions? Can you explain better? snip (%i1) load(simplify_sum); (%o1) /Users/.../sage-4.4.4/local/share/maxima/5.20.1/s\ hare/contrib/solve_rec/simplify_sum.mac (%i2)

[sage-support] Re: summation

2010-09-14 Thread kcrisman
On Sep 14, 11:40 am, sps debernasave...@libero.it wrote: So you say, I have to digit this: maxima_console() Not exactly. What I am saying is that Sage uses Maxima, another open source mathematics program, to do symbolic summation. I used Sage's instance of this program to see what happened

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

2010-09-14 Thread James Parson
On Sep 8, 2:57 am, Cary Cherng cche...@gmail.com wrote: 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

[sage-support] Re: continued_fraction returns nothing

2010-09-14 Thread Håkan Granath
On Sep 14, 12:16 am, Robert Bradshaw rober...@math.washington.edu wrote: Alastair correctly deduced the issue that it can't tell if the number is less than or greater than 2, what should it do here? I do not know what it should do, but what I would have expected in this case is that

[sage-support] documentation for implicit_plot

2010-09-14 Thread D.C. Ernst
If I type the following into Sage (which is straight from the implicit_plot documentation), I get a black square: x,y=var('x,y') f(x,y) = x^2 + y^2 - 2 implicit_plot(f, (-3, 3), (-3, 3),fill=True).show(aspect_ratio=1) Of course, if you remove fill=True, then everything works as expected. The

[sage-support] Re: PhD student : SAGE help

2010-09-14 Thread John Cremona
I am copying my reply to sage-support@googlegroups.com since it is better to ask questions there than to (busy!) individuals. For general plane curves, the answer is yes but the general algorithms are very slow (if the field is large). For example, sage: F = GF(4,'a') sage: A2.x,y =

[sage-support] Re: documentation for implicit_plot

2010-09-14 Thread kcrisman
On Sep 14, 3:00 pm, D.C. Ernst ernst.tr...@gmail.com wrote: If I type the following into Sage (which is straight from the implicit_plot documentation), I get a black square: x,y=var('x,y') f(x,y) = x^2 + y^2 - 2 implicit_plot(f, (-3, 3), (-3, 3),fill=True).show(aspect_ratio=1) Of course,

Re: [sage-support] Re: continued_fraction returns nothing

2010-09-14 Thread Robert Bradshaw
On Tue, Sep 14, 2010 at 10:44 AM, Håkan Granath hakan.gran...@googlemail.com wrote: On Sep 14, 12:16 am, Robert Bradshaw rober...@math.washington.edu wrote: Alastair correctly deduced the issue that it can't tell if the number is less than or greater than 2, what should it do here? I do not

Re: [sage-support] Re: continued_fraction returns nothing

2010-09-14 Thread Robert Bradshaw
On Tue, Sep 14, 2010 at 6:44 PM, Robert Bradshaw rober...@math.washington.edu wrote: On Tue, Sep 14, 2010 at 10:44 AM, Håkan Granath hakan.gran...@googlemail.com wrote: On Sep 14, 12:16 am, Robert Bradshaw rober...@math.washington.edu wrote: Alastair correctly deduced the issue that it can't

[sage-support] Re: documentation for implicit_plot

2010-09-14 Thread Jason Grout
On 9/14/10 8:12 PM, kcrisman wrote: On Sep 14, 3:00 pm, D.C. Ernsternst.tr...@gmail.com wrote: If I type the following into Sage (which is straight from the implicit_plot documentation), I get a black square: x,y=var('x,y') f(x,y) = x^2 + y^2 - 2 implicit_plot(f, (-3, 3), (-3,