assume, help needed (22.2.99)

Kiat Huang

I’m using xmaple-VR5 on an Alpha DEC and I have the following recurring problem.

Once I do


say which makes a particular ode possess complex eigenvectors,


then once I solve for the boundary conditions for the constants _Ci (produced by dsolve) and substitute back into the solution, using unapply, u(A,L,x) Maple is unable (or at least unwilling) to allow me to substitue for A or L. i.e.


produces the output u(A,L,x) for any B,T.

I’ve tried unassign and A:='A' but to no avail.

Helmut Kahovec (5.3.99)

At each assumption Maple generates a local name usually printed with a tilde. The original variable is assigned that local name and must not be assigned any other value explicitly.

If you want to assign that local variable a specific value then you have to use assign() with the original variable, though. assign() evaluates its arguments and thus assigns in fact the local variable that specific value. For more see online help or [1].

Anyway, I’d solve your problem as follows:


IMO it’s not necessary to make assumptions about L.


You didn’t tell us your specific boundary conditions, so let’s assume the following equations eq1, eq2, ... for example. Note the order of substituting into \(u(x)\):


Let’s take the first set of s, substitute sol and s[1] into u(x) (in that order), simplify the expression, and establish \(u1()\) as a function of \(A,L,x\). Note that we do not call the solution function \(u\) since \(u(x)\) should remain an unevaluated function call:


Note that the formal parameters \(A,L,x\) of the solution function \(u1\) are different from A~,L~,x in earlier expressions. Now you get:


You may repeat the last two steps for the remaining three sets s[2], s[3], and s[3] of s.

Reference:

[1] Andre Heck, "Introduction to Maple" 2nd ed., Springer Verlag 1996, pp. 87-91