Ask Your Question

yangzb's profile - activity

2012-09-12 07:08:56 +0200 received badge  Commentator
2012-09-12 07:08:56 +0200 commented answer Laplace of the differential of another variable in sage

All right

2012-09-10 10:16:46 +0200 commented answer Laplace of the differential of another variable in sage

Sorry, I did not ask for permission from my professor before posting it. He told me the code still needs some work. He will contribute it to Sage as a contributor himself when it works reasonably well.

2012-09-10 10:13:45 +0200 answered a question Laplace of the differential of another variable in sage

Sorry, I did not ask for permission from my professor before posting it. He told me the code still needs some work. He will contribute it to Sage as a contributor himself when it works reasonably well.

2012-09-09 12:14:00 +0200 commented answer Laplace of the differential of another variable in sage

Sorry, I did not ask for permission from my professor before posting it. He told me the code still needs some work. He will contribute it to Sage as a contributor himself when it works reasonably well.

2012-09-09 11:43:24 +0200 answered a question Laplace of the differential of another variable in sage

xxxxxxxxxxxx

2012-08-22 23:38:49 +0200 commented answer Laplace of the differential of another variable in sage

All right:)

2012-08-21 23:04:03 +0200 commented answer Laplace of the differential of another variable in sage

But, as I run in Maxima:laplace(diff(f(x,t),x),t,s),it seems to output the correct answer:'diff('laplace(f(x,t),t,s),x,1). Thus there might be something wrong in sage.

2012-08-21 09:32:02 +0200 received badge  Editor (source)
2012-08-21 09:19:44 +0200 marked best answer Laplace of the differential of another variable in sage

As best I can tell, it looks like Sage is doing the chain rule here. So, it is treating laplace(y,t,s) as a symbol and gives the derivative w.r.t. x as D[0](laplace(y,t,s))*D[0](y(x,t)). Taking the second derivative gives something that looks like the product rule and the chain rule were used.

I think Sage is using Maxima to do this. So, this might be an issue with how Maxima handles partial derivatives of Laplace transforms.

2012-08-21 09:19:40 +0200 commented answer Laplace of the differential of another variable in sage

Yeah, it can account for such a result. I think maybe there is something in maxima to be improved. Thank you!

2012-08-21 05:47:19 +0200 asked a question Laplace of the differential of another variable in sage

Why did the diff(y.laplace(t,s),x) come out to be D[0](laplace)(y(x, t), t, s)*D[0](y)(x, t)? Could someone help me?

2012-08-20 05:29:31 +0200 received badge  Supporter (source)
2012-08-20 05:29:15 +0200 marked best answer How to read this code?

Here is what I get.

var('y t s k')
y=function('y',x,t)
de=diff(y,t,2)-diff(y,x,2)==k*sin(pi*x)
de.laplace(t,s)

gives

s^2*laplace(y(x, t), t, s) - D[0](y)(x, t)^2*D[0, 0](laplace)(y(x, t), t, s) - s*y(x, 0) - D[0](laplace)(y(x, t), t, s)*D[0, 0](y)(x, t) - D[1](y)(x, 0) == k*sin(pi*x)/s

Within this expression, the meanings are:

$\frac{\partial y}{\partial t}$ = D[1](y)(x, t)

$\frac{\partial y}{\partial x}$ = D[0](y)(x, t)

$\frac{\partial^2 y}{\partial t^2}$ = D[1, 1](y)(x, t)

$\frac{\partial^2 y}{\partial x^2}$ = D[0, 0](y)(x, t)

So, D[0](y)(0, x) is $\frac{\partial y}{\partial t}|_{t=0}$.

You can check the first one above by doing diff(y,t).

2012-08-20 05:29:11 +0200 marked best answer How to read this code?

What you're seeing is the displayed notation for symbolic partial derivatives. D[0] means "apply the derivative operator with respect to variable number 0" and D[0,0] represents two successive derivatives with respect to the variable. Observe:

sage: f = function('f', x)
sage: f.diff(x)
D[0](f)(x)
sage: f.diff(x).diff(x)
D[0, 0](f)(x)
2012-08-20 05:29:11 +0200 received badge  Scholar (source)
2012-08-19 21:44:41 +0200 commented answer How to read this code?

Excuse me, but I have a small question about the code that is :Why did the diff(y.laplace(t,s),x) come out to be D[0](laplace)(y(x, t), t, s)*D[0](y)(x, t)? Could you help me?

2012-08-19 09:59:47 +0200 commented answer How to read this code?

I got it. Thanks!

2012-08-19 02:53:54 +0200 commented answer How to read this code?

I think they are different between -D[0](Laplace)(y(t,x),t,s)*D[1,1](y)(t,x)-D[0,0](laplace)(y(t,x),t,s)*D[1](y)(t,x)^2 and -D[1,1]L(y(t,x),t,s).

2012-08-18 03:24:47 +0200 commented answer How to read this code?

But,shouldn't it be :s^2*L(y(t,x),t,s)-s*y(0,x)-D[0](y)(0,x)-D[1,1]L(y(t,x),t,s). on the left side?

2012-08-16 22:29:28 +0200 asked a question How to read this code?

In sage, I performed the laplace transformation:

de=diff(y,t,2)-diff(y,x,2)==k*sin(pi*x);de.laplace(t,s)

and got such a code:

s^2L(y(x,t),t,s)-D[0](y)(x,t)2D[0,0]L(y(x,t),t,s)?sy(x,0)?D[0]L(y(x,t),t,s)D[0,0](y)(x,t)?D[1](y)(x,0)=sksin(?x)

Can someone tells me what D[0](y)(x,t)2D[0,0]L(y(x,t),t,s) and D[0]L(y(x,t),t,s)D[0,0](y)(x,t) mean?
Thanks!