f

#### Maple Toolbox for Matlab

``` 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
Thanks
``` 0 2/20/2009 4:01:02 PM comp.soft-sys.matlab  211265 articles. 25 followers. 2 Replies 584 Views Similar Articles

[PageSpeed] 54

```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".)
``` 0 2/20/2009 6:25:54 PM
```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
``` 0 2/21/2009 1:50:03 AM