Problem-Bug in Maxima



On 11/17/12 12:57 AM, Jerome Huck wrote:
> Thanks Raymond for the quick answer.
> I run again the test this morning on my Pc and on my Nexus 7 with the
> following code :
>
> load(scifac);
>
> eq: 'diff(u,z,2)-Ha^2*u-Re*Px+K*Ha^2 = 0;
> sol : ode2(eq,u,z);
> solution : bc2(sol,z=-1.0,u=0.0,z=1.0,u=0.0);
>
> combine(solution);
> gcfac(%);
>
> subst(%i*z,z,%);
> demoivre(%);
> subst(z/%i,z,%);
>
> expand(%);
>
> subst(%i*Ha,Ha,%);
> demoivre(%);
> subst(Ha/%i,Ha,%);
>
> final:factor(%);
>
> You have hardcopies of PC and Nexus 7 outputs.
>
> You can see haow the Nexus 7 seems to have the same good solution but
> there is a problem with the parenthesis, the ones with the cosh function
> and one seems to be missing for the numerator !!!

I don't know how maxima on android works, but I think it's fairly
typical in typeset math to leave off the parens for elementary
functions.  That is, cos(x) is type set as "cos x", but cos(a*b) is "cos
(a*b)".  I also see that the tex function does this too.
>
> One other thing, I lock the Maxima version if I type for example
>
> eq: 'diff(u,z,2)-Ha^2*u-Re*Px+K*Ha^2 = 0;
> sol : ode2(eq,u,z);
>
> instead of
>
> eq:'diff(u,z,2)-Ha^2*u-Re*Px+K*Ha^2 = 0;
> sol:ode2(eq,u,z);

You mean the difference in spacing around ":"? I would guess that's a
bug with maxima on android.

Ray