CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

Power of complex numbers

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   September 27, 2005, 08:22
Default Before I indulge in a programm
  #1
Member
 
Fabian Peng Karrholm
Join Date: Mar 2009
Posts: 61
Rep Power: 8
fabianpk is on a distinguished road
Before I indulge in a programming adventure, am I correct in my findings that the following doesn't work:

complex c = (2.0,-1.0);
pow(c,2.0/3.0);

and will just return 'nan'. Or have I done something wrong myself?

/Fabian
fabianpk is offline   Reply With Quote

Old   September 28, 2005, 05:26
Default the n-th root of a complex num
  #2
Senior Member
 
Markus Hartinger
Join Date: Mar 2009
Posts: 102
Rep Power: 8
hartinger is on a distinguished road
the n-th root of a complex number produces n results. there is no unique solution
hartinger is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VolVectorField of complex numbers quba OpenFOAM 0 December 17, 2007 09:06
diverge with low Re numbers hui Main CFD Forum 2 April 10, 2007 07:16
complex numbers for UDF korcan FLUENT 2 April 9, 2006 16:24
Cell Numbers furkan CD-adapco 3 November 24, 2005 04:06
OpenFoam and complex numbers panara OpenFOAM Pre-Processing 2 July 12, 2005 05:52


All times are GMT -4. The time now is 01:31.