Processing math: 100%

First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 10 years ago

shacsmuggler gravatar image

algebra of differential operators

I'm trying to use Sage to check if an explicit function satisfies a PDE. As an example, I would like to be able to apply the operator 5n=1(ttn) to ztet/z. What are my options for doing this in Sage?

I found a relevant post on this site, which almost does what I want, but not quite. In the context of that post, I'd like to be able to do something like this:

def Dt(f):
    return t*f.derivative(t)

operator = prod([ Dt - n-1 for n in range(5) ])
operator(z*t*exp(t/z))

But of course, this doesn't work. (Because my PDEs can get large, I'm looking for a way to get Sage to expand them for me. I don't want to do it by hand and then input the expanded form.) Thanks!

click to hide/show revision 2
No.2 Revision

algebra of differential operators

I'm trying to use Sage to check if an explicit function satisfies a PDE. As an example, I would like to be able to apply the operator 5n=1(ttn) to ztet/z. What are my options for doing this in Sage?

I found a relevant post on this site, which almost does what I want, but not quite. In the context of that post, I'd like to be able to do something like this:

def Dt(f):
    return t*f.derivative(t)

operator = prod([ Dt - n-1 for n in range(5) ])
operator(z*t*exp(t/z))

But of course, this doesn't work. (Because my PDEs can get large, Thanks!

To be clear, I'm looking for a way to get Sage to expand them for me. asking about the following operator: 5n=1(ttn)=(tt1)(tt2)(tt3) =(tt1)((tt+t22t2)5tt+6) = I don't want to finish the expansion by hand. I want Sage to do it by hand and then input the expanded form.) Thanks!for me. :)

click to hide/show revision 3
No.3 Revision

algebra of differential operators

I'm trying to use Sage to check if an explicit function satisfies a PDE. As an example, I would like to be able to apply the operator 5n=1(ttn) to ztet/z. What are my options for doing this in Sage?

I found a relevant post on this site, which almost does what I want, but not quite. In the context of that post, I'd like to be able to do something like this:

def Dt(f):
    return t*f.derivative(t)

operator = prod([ Dt - n-1 for n in range(5) ])
operator(z*t*exp(t/z))

But of course, this doesn't work. Thanks!

To be clear, I'm asking about the following operator: 5n=1(ttn)=(tt1)(tt2)(tt3) =(tt1)((tt+t22t2)5tt+6) = I don't want to finish the expansion by hand. I want Sage to do it for me. :)me, and then apply the whole mess to the function ztet/z.