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
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
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
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
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 Version 4.0.1, Release Date: 2009-06-06 |
| Type notebook() for the GUI, and license() for information.|
--
sage: A=matrix
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
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
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
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(
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
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
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
13 matches
Mail list logo