Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #11484 > unrolled thread
| Started by | "news" <news@newsfe13.iad.highwinds-media.com> |
|---|---|
| First post | 2012-08-24 09:08 +0000 |
| Last post | 2012-08-26 06:53 +0000 |
| Articles | 5 — 5 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
How Expand? "news" <news@newsfe13.iad.highwinds-media.com> - 2012-08-24 09:08 +0000
Re: How Expand? daniel.lichtblau0@gmail.com - 2012-08-25 08:26 +0000
Re: How Expand? "Nasser M. Abbasi" <nma@12000.org> - 2012-08-25 08:26 +0000
Re: How Expand? Costa Bravo <q13a27tt@aol.com> - 2012-08-25 08:34 +0000
Re: How Expand? David Bailey <dave@removedbailey.co.uk> - 2012-08-26 06:53 +0000
| From | "news" <news@newsfe13.iad.highwinds-media.com> |
|---|---|
| Date | 2012-08-24 09:08 +0000 |
| Subject | How Expand? |
| Message-ID | <k17g9n$dre$1@smc.vnet.net> |
Hi folks, How can I expand the following : [ 1 + cos(x) + i sin(x) ]^3 to obtain; 8 cos(x/2)^3 [cos(3x/2)+ i sin(3x/2)] Thanks a lot. Max.
[toc] | [next] | [standalone]
| From | daniel.lichtblau0@gmail.com |
|---|---|
| Date | 2012-08-25 08:26 +0000 |
| Message-ID | <k1a27b$ibm$1@smc.vnet.net> |
| In reply to | #11484 |
On Friday, August 24, 2012 4:08:07 AM UTC-5, news wrote: > Hi folks, > > > > How can I expand the following : > > > > [ 1 + cos(x) + i sin(x) ]^3 > > > > to obtain; > > > > 8 cos(x/2)^3 [cos(3x/2)+ i sin(3x/2)] > > > > Thanks a lot. > > > > Max. This will come pretty close. In[6]:= ee = 1+Cos[x]+I*Sin[x]; In[7]:= InputForm[TrigFactor[TrigExpand[ee]]] Out[7]//InputForm= Cos[x/2]*(2*Cos[x/2] + (2*I)*Sin[x/2]) Daniel Lichtblau Wolfram Research
[toc] | [prev] | [next] | [standalone]
| From | "Nasser M. Abbasi" <nma@12000.org> |
|---|---|
| Date | 2012-08-25 08:26 +0000 |
| Message-ID | <k1a28b$ic7$1@smc.vnet.net> |
| In reply to | #11484 |
On 8/24/2012 4:08 AM, news wrote: > Hi folks, > > How can I expand the following : > > [ 1 + cos(x) + i sin(x) ]^3 > > to obtain; > > 8 cos(x/2)^3 [cos(3x/2)+ i sin(3x/2)] > > Thanks a lot. > > Max. > can you write things using Mathematica synatx to be sure one knows what you mean? The above is not valid syntax. Also, is 'i' above the Mathematica I or something else? Either way, try to use ()^3 instead of []^3 and also lookup the Trig->True option to Simplify. --Nasser
[toc] | [prev] | [next] | [standalone]
| From | Costa Bravo <q13a27tt@aol.com> |
|---|---|
| Date | 2012-08-25 08:34 +0000 |
| Message-ID | <k1a2lu$ig5$1@smc.vnet.net> |
| In reply to | #11484 |
Użytkownik news write: > > How can I expand the following : > > [ 1 + cos(x) + i sin(x) ]^3 > > to obtain; > > 8 cos(x/2)^3 [cos(3x/2)+ i sin(3x/2)] > using the correct code of Mathematica (1 + Cos[x] + I Sin[x])^3 // Expand // TrigReduce // Simplify -- Costa
[toc] | [prev] | [next] | [standalone]
| From | David Bailey <dave@removedbailey.co.uk> |
|---|---|
| Date | 2012-08-26 06:53 +0000 |
| Message-ID | <k1ch58$n3v$1@smc.vnet.net> |
| In reply to | #11484 |
On 24/08/2012 10:08, news wrote: > Hi folks, > > How can I expand the following : > > [ 1 + cos(x) + i sin(x) ]^3 > > to obtain; > > 8 cos(x/2)^3 [cos(3x/2)+ i sin(3x/2)] > > Thanks a lot. > > Max. > I addition to the comments of others, I would like to add, that if you simply want to check an identity, it is easier to use: In[9]:= ( 1 + Cos[x] + I Sin[x] )^3==8 Cos[x/2]^3 (Cos[3x/2]+ I Sin[3x/2])//Simplify Out[9]= True (I.e. simplifying the assertion that the LHS == RHS, comes back with True) This works in many situations in which it is extremely hard to force Mathematica to come up with a desired transformation spontaneously. David Bailey http://www.dbaileyconsultancy.co.uk
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web