First time here? Check out the FAQ!

Ask Your Question
0

Problems with LaPlace transform when 'a' is negative in e^-at

asked 12 years ago

tkillian gravatar image
var('s t')
f = t^(-1)*exp(-t)-t^(-1)*exp((-3)*t)
f.laplace(t,s)

The above transform works as expected, however, when (-3) is changed to (3), I get the following error:

Traceback (click to the left of this block for traceback)
...
TypeError: ECL says: Maxima asks: Is  s-3  positive, negative, or zero?

The Solution that I am expecting is:

log((s - 3)/(s + 1))

I don't know how to specify if s-3 is positive, negative, or zero. Any ideas?

Thanks, Taylor Killian

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 12 years ago

DSM gravatar image

You can use the assume command:

sage: var('s t')
(s, t)
sage: f = t^(-1)*exp(-t)-t^(-1)*exp((3)*t)
sage: f.laplace(t,s)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
[...]
TypeError: ECL says: Maxima asks: Is  s-3  positive, negative, or zero?

sage: assume(s-3>0)
sage: f = t^(-1)*exp(-t)-t^(-1)*exp((3)*t)
sage: f.laplace(t,s)
log((s - 3)/(s + 1))

This mostly works, at least for simple enough conditions.

Preview: (hide)
link

Comments

Emphasis on the "simple enough conditions".

kcrisman gravatar imagekcrisman ( 12 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 12 years ago

Seen: 1,096 times

Last updated: Apr 20 '12