[sage-support] Simplification

2009-06-10 Thread Rhys Ulerich
Dumb basic CAS question that's been driving me batty... x = var('x'); k = var('k'); j = var('j'); t = function('t',j); B = function('B', j, k, x); eqn1 = B(j,k,x) == (x-t(j)) / (t(j+k) - t(j))*B(j,k-1,x) + (t(j+k +1)-x) / (t(j+k+1)-t(j+1))*B(j+1,k-1,x); eqn2 = eqn1*k/(x-t(j)); What sequence

[sage-support] newbie Cython issues

2009-06-10 Thread kcrisman
Dear Support, These are probably truly Cython questions which I am appending below, but I am using it in the notebook so I figured I would ask here... Thanks for any help, I truly appreciate it, given that I know very little C. The context is Cythonizing sage.plot.plot.float_to_html; the speedup

[sage-support] Re: defining a function as a numerical integral

2009-06-10 Thread evlu...@gmail.com
That did it. Thank you very much. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.g

[sage-support] Re: defining a function as a numerical integral

2009-06-10 Thread Mike Hansen
On Wed, Jun 10, 2009 at 9:53 AM, evlu...@gmail.com wrote: > I get this error: > > Traceback (most recent call last): > ,,, > TypeError: float() argument must be a string or a number > > I guess that sage is trying to evaluate the integral before > substituting the value for b. Is this correct? How

[sage-support] defining a function as a numerical integral

2009-06-10 Thread evlu...@gmail.com
Here's the code I'm using: (theta_array is just a dummy for the real thing, but the errors are the same) theta_array = [(0,0),(1,2),(pi/2,pi),(pi,4),(3*pi/2,5),(2*pi,2*pi)] s = spline(theta_array) ellipse(x) = e^(i*x)-.5*e^(-i*x) z(t) = ellipse(t) zprime(t) = derivative(z) def u(x,b): return

[sage-support] linbox bug?

2009-06-10 Thread Yann
-- | Sage Version 4.0.1, Release Date: 2009-06-06 | | Type notebook() for the GUI, and license() for information.| -- sage: A=matrix

[sage-support] Re: How to substitute n floating values for the n variables of a polynomial in Sage, where n is a variable ?

2009-06-10 Thread Mike Hansen
Hello, On Wed, Jun 10, 2009 at 8:40 AM, faicel wrote: > > hello > > The question is : > > How to substitute n floating values for the n variables of a > polynomial in Sage, where n is a variable ? > > For example, > > Let P > > P=x3*x6+x1*x6+x4*x5+x2*x5+x1*x4+x2* Did you leave off something here

[sage-support] How to substitute n floating values for the n variables of a polynomial in Sage, where n is a variable ?

2009-06-10 Thread faicel
hello The question is : How to substitute n floating values for the n variables of a polynomial in Sage, where n is a variable ? For example, Let P P=x3*x6+x1*x6+x4*x5+x2*x5+x1*x4+x2* and f=x^6+2 with approximate roots rr=gp.polroots(f) =[0.9720806486198328151427283823 + 0.5612310241546

[sage-support] New symbolic bug?

2009-06-10 Thread Maurizio
This used to work in SAGE 3.x I'm using SAGE 4.0.1 now sage: ciccio = {'x':10} sage: a = 2*x + 5 sage: a 2*x + 5 sage: a.subs(ciccio) --- TypeError Traceback (most recent call last) /home/nsla

[sage-support] Multiply first terms of Dirichlet powerseries

2009-06-10 Thread Ton Biegstraaten
Hi, As an example I multiplied the first terms of 2 Dirichlet powerseries. The result is also a Dirichlet powerserie, but how do I get the result in that shape? --- sage: a(x) = sum([1/(n^x) for n in range(1,4)]) sage: b(x) = a(x)*a(x) sage: print "a(x): ",a(x), "\nproduct: ", a(x)*a(x), "\nb(

[sage-support] Re: "Usage Styles" and using scipy

2009-06-10 Thread Burcin Erocal
Hi, On Wed, 10 Jun 2009 01:12:57 -0700 (PDT) Marky Marc wrote: > > > Now, on other silly topics: > > > I've switched from using sage 3.2 on my machine to using the > > > sagenb.org server. It seems the latter has poorer typesetting > > > abilities than v3.2, eg often (but not always) renders s

[sage-support] Re: "Usage Styles" and using scipy

2009-06-10 Thread Marky Marc
Wow, thanks for answering so many questions. On Jun 10, 4:03 am, Jason Grout wrote: > MarkyMarcwrote: > > Thanks for the many useful answers in this thread from several people. > > (And thanks for the book on Rubik's Cube, David Joyner ;-) > > > Now, once again please forgive these questions if

[sage-support] Re: Help on creating documentation for an spkg

2009-06-10 Thread Mike Hansen
On Tue, Jun 9, 2009 at 11:27 PM, wrote: > ... and my problem was that I expected (from the sage manual) that > these short .rst files are auto-generated! Aren't they? They're only auto-generated because I put code in builder.py to do so. For something that's not Sage, I don't know if I'd use bu