Thread Subject: Maple Toolbox for Matlab

Subject: Maple Toolbox for Matlab

From: Huy

Date: 20 Feb, 2009 16:01:02

Message: 1 of 3

 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

Subject: Maple Toolbox for Matlab

From: Walter Roberson

Date: 20 Feb, 2009 18:25:54

Message: 2 of 3

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".)

Subject: Maple Toolbox for Matlab

From: Vincent Morio

Date: 21 Feb, 2009 01:50:03

Message: 3 of 3

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

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com