2 * Functions and Variables for lindstedt::
5 @node Functions and Variables for lindstedt, , Package lindstedt, Package lindstedt
6 @section Functions and Variables for lindstedt
10 @deffn {Function} Lindstedt (@var{eq},@var{pvar},@var{torder},@var{ic})
11 This is a first pass at a Lindstedt code. It can solve problems
12 with initial conditions entered, which can be arbitrary constants,
13 (just not @var{%k1} and @var{%k2}) where the initial conditions on the perturbation
14 equations are @math{z[i]=0, z'[i]=0} for @math{i>0}. @var{ic} is the list of
17 Problems occur when initial conditions are not given, as the constants
18 in the perturbation equations are the same as the zero order equation
19 solution. Also, problems occur when the initial conditions for the
20 perturbation equations are not @math{z[i]=0, z'[i]=0} for @math{i>0}, such as the
25 (%i1) load("makeOrders")$
27 (%i2) load("lindstedt")$
29 (%i3) Lindstedt('diff(x,t,2)+x-(e*x^3)/6,e,2,[1,0]);
31 e (cos(5 T) - 24 cos(3 T) + 23 cos(T))
32 (%o3) [[[---------------------------------------
35 - --------------------- + cos(T)],
39 T = (- ---- - -- + 1) t]]
43 To use this function write first @code{load("makeOrders")} and @code{load("lindstedt")}.
45 @opencatbox{Categories:}
46 @category{Differential equations}
47 @category{Share packages}
48 @category{Package lindstedt}