Thread Subject: how to do this : sin(x)*cos(y)+sin(y)*cos(x)= sin(x+y)

Subject: how to do this : sin(x)*cos(y)+sin(y)*cos(x)= sin(x+y)

From: Huy

Date: 20 Feb, 2009 09:35:03

Message: 1 of 3

i'm using Maple Toolbox For Matlab,
using command :
> syms x y
>simple(sin(x)*cos(y)+sin(y)*cos(x))
but do not show the result : sin(x+y)
how to do this ?

Subject: how to do this : sin(x)*cos(y)+sin(y)*cos(x)= sin(x+y)

From: Vincent Morio

Date: 21 Feb, 2009 01:52:02

Message: 2 of 3

"Huy " <huyconfid@yahoo.com> wrote in message <gnltg7$pdb$1@fred.mathworks.com>...
> i'm using Maple Toolbox For Matlab,
> using command :
> > syms x y
> >simple(sin(x)*cos(y)+sin(y)*cos(x))
> but do not show the result : sin(x+y)
> how to do this ?

Hi,
It is pretty simple. The solution to your problem is
maple('combine','sin(x)*cos(y)+sin(y)*cos(x)','trig')
The matlab symbolic toolbox will access the maple kernel to simplify the equation.
Regards,
Vincent Morio

Subject: how to do this : sin(x)*cos(y)+sin(y)*cos(x)= sin(x+y)

From: Ba

Date: 9 Dec, 2009 07:58:01

Message: 3 of 3

"Vincent Morio" <vincent.morio@ims-bordeaux.fr> wrote in message <gnnmo2$dlc$1@fred.mathworks.com>...
> "Huy " <huyconfid@yahoo.com> wrote in message <gnltg7$pdb$1@fred.mathworks.com>...
> > i'm using Maple Toolbox For Matlab,
> > using command :
> > > syms x y
> > >simple(sin(x)*cos(y)+sin(y)*cos(x))
> > but do not show the result : sin(x+y)
> > how to do this ?
>
> Hi,
> It is pretty simple. The solution to your problem is
> maple('combine','sin(x)*cos(y)+sin(y)*cos(x)','trig')
> The matlab symbolic toolbox will access the maple kernel to simplify the equation.
> Regards,
> Vincent Morio

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