How to "un-single-quote" expressions



Update on that...

Okay, from the code I posted, it is clear no evaluation of diff is done
because of an error:

  kx(cos(kx*x))

should rather be

  kx*(cos(kx*x))

So it seems the problem lies somewhere deeper. I got that expression
from calling:

  H : ev ( gamma*(C1*sin(kx*x) + C2*cos(kx*x)) * ux + %i*kx(
-C1*sin(kx*x) + C2*cos(kx*x) ) * uz, C1=0, C2=1 );

Now somehow H becomes the following:

  [cos(kx*x)*gamma,0,%i*kx(cos(kx*x))]

Which contains the error. Does anybody understand why that is?

Regards,
Christian


Am 24.05.2011 18:17, schrieb Christian Weickhmann:
> Hi!
>
> I just ran into a problem with Maxima (v. 5.22.1) when evaluating the
> following
> expression:
>
> ev(
> %i*cos(kx*x)*diff(conjugate(kx(cos(kx*x))),x,1)*epsinvLC_yy*gamma+%i*cos(kx*x)*diff(kx(cos(kx*x)),x,1)*epsinvLC_yy*gamma);
>
> Basically what happens is: the two diff() get single-quoted
> automatically although I never requested it.
> Funny enough, when calling
>
> ev( diff(conjugate(kx(cos(kx*x))),x,1) );
>
> that just turns out fine.
>
> I made no assumptions about the variables. But assuming all of them (but
> x) positive, does not change the unwanted single-quoting.
>
> Is there anything I can do to *force* Maxima to evaluate the diff()?
>
> Regards,
> Christian
>
>

-- 
Dipl.-Ing. Christian Weickhmann

Technische Universit?t Darmstadt
Insitut f?r Mikrowellentechnik und Photonik
Mikrowellentechnik / Microwave Engineering
www.imp.tu-darmstadt.de

Merckstr. 25
64283 Darmstadt
Germany

Office: S3|06-318
Tel: +49 6151/16-75147
Fax: +49 6151/16-4343
E-Mail: weickhmann at imp.tu-darmstadt.de