Académique Documents
Professionnel Documents
Culture Documents
4 to TI-89
Keep the functions together in a separate folder with the name "LAPLACE"
and do not create any variable in it.
Functions:
SolveD solve single differential/integral equations
SimultD solve multiple simultaneous differential/integral equations
Laplace transforms from time to Laplace domain.
iLaplace transforms from Laplace to time domain.
You have to do these settings yourself because; the programs cannot change
the mode setting on the calculator.
----------------------------------------------------------------------------
Help
This program will give online information about and demonstrate the use of
functions in this package. When you do not need this program any longer just
delete it.
Syntax: Help()
----------------------------------------------------------------------------
SolveD
Equations/initial conditions may contain constants of any kind, but the letter
's' may not be used in any connection.
Syntax: SolvD
Example 1:
Solving second order differential equation:
SolveD(d(x(t),t,2)+2*d(x(t),t)+5=e^(-t),{x(t),1,3})
d^2x(t)/dt^2+5*dx(t)/dt+6=f(t)
| 3 (0<= t <6)
f(t) = |
| 0 (t >= 6)
SolveD( d(x(t),t,2)+5*d(x(t),t)+6=3*(u(t)-u(t-6)),{x(t),0,2})
Result
x(t)=(13/25-3*t/5-13*e^(-5t)/25)*u(t)+(93/25-3*t/5-3*e^(-5*t+30)/25)*u(t-6)
---------------------------------------------------------------
Example 3:
'int'(x(t),t)+x=sin(5*t)
SolveD('int'(x(t),t)+x=sin(5*t),{x(t)})
Result
x(t)=5*cos(5*t)/26+25*sin(5*t)/26-5*e^(-t)/26
---------------------------------------------------------------
Example 4:
'int'(x(t),t)+dx/dt=cos(t)
SimultD('int'(x(t),t)+d(x(t),t)=cos(t),{x(t)})
Solution
x(t)=t*cos(t)/2+x0*cos(t)+sin(t)/2
----------------------------------------------------------------------------
SimultD
There are very few rules to obey when using SimultD. First, there has to be an
equal number of equations and unknown variables. Second, the variable has to be
a function of the type f(var).
Equations do not need to be of same order. In Principe SimultD can solve any
number of simultaneous differential/integral equations of any order or mixture
of different orders, if there are a sufficient number of equations. The only
limitation is the size of the calculator's memory (if it is a very complex
solution, it can run out of memory).
Equations/initial conditions may contain constants of any kind, but the letter 's'
may not be used in any connection.
Syntax: SimultD
SimultD([equation;equation;...], [f1(var),f1(0),f1'(0),..;f2(var),
f2(0),f2'(0),..;.. ])
Example 1.
dx/dt+dy/dt+5*x+3*y=e^(-t)
2*dx/dt+dy/dt+x+y=3
SimultD(matx1, [x(t),2;y(t),1])
result
| x(t)=25*e^(t)/3-11*e^(-2*t)-9/2 |
| |
| y(t)=-25*e^(t)/2+1*e^(-t)/2+11*e^(-2*t)/2+15/2 |
----------------------------------------------------------------------------
ATTENTION when solving equations containing integrals. There are some
situations where Laplace-transformation gives a wrong answer.
'int'('Delta'(t),t) = 'Heaviside'(t) = 1
Function constructed to check that the results from SolveD/SimultD are correct.
Check will replace the functions in the equations with the output from
SolveD/SimultD and return the result.
Function: Check
----------------------------------------------------------------------------
Menu
Program: Menu
Syntax: Menu()
----------------------------------------------------------------------------
Laplace92 version 2.5.1
This packet contains two functions to work with Laplace transforms and one
Function to solve convolution integrals (folding integrals). All of them
are able to work with symbols or numbers.
---------------------------------------------------------------------------
Laplace(f(var), var)
Transforms the expression "f(t)" from time domain to Laplace domain.
Special transforms:
Unit step function (Heaviside function):
Laplace(u(t - a),t) = e^(-a*s)/s
---------------------------------------------------------------------------
iLaplace(F(var), var):
Transform the other way around from Laplace domain to time domain.
Special transforms:
iLaplace(e^(-a*s)/s,s) = u(t - a)
iLaplace(e^(-a*s),s) = 'delta'(t - a)
f(var) and g(var): can be any expressions, which has a Laplace transform.
var: is the name of the variable to integrate normally 't',
but can be any name.
This function use the fact that, if f(t) and g(t) are of exponential order,
piecewise-continuous on t>=0 and have Laplace transforms F(s) and G(s)
respectively, then, for Re(s)>0 f*g=InvL{F(s)G(s)}
Example:
f(t) = t*u(t)
g(t) = sin(2t)*u(t)
----------------------------------------------------------------------------
Programs of same type:
Type Name
Thanks to Roberto Peres-Franco for his great support on the TI-89 version.