|
Walter Roberson <roberson@hushmail.com> wrote in message <xACnl.22003$nu6.2539@newsfe21.iad>...
> Huy wrote:
> > How to do this : sin(x)*cos(y)+sin(y)*cos(x) = sin(x+y) ?.
> >
> > i used " simple" command but not done.
> > i'm using MAPLE TOOLBOX FOR MATLAB V11.0, run this command in MATLAB window
>
> In Maple itself, it would be:
>
> > combine(sin(x)*cos(y)+sin(y)*cos(x),'trig');
> sin(x + y)
>
> You will need to find the appropriate rewrite into the Matlab interface
> for Maple. (Note: In Maple, 'trig' is an unevaluated symbol named trig,
> not the character string "trig".)
Hi,
Try to call the 'maple' function instead! It will access the Maple kernel from Matlab:
maple('combine','sin(x)*cos(y)+sin(y)*cos(x)','trig')
which returns sin(x+y) under Matlab
Regards,
Vincent
|