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

Power of complex numbers

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 27, 2005, 09:22
Default Before I indulge in a programm
  #1
Member
 
Fabian Peng Karrholm
Join Date: Mar 2009
Posts: 61
Rep Power: 17
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, 06:26
Default the n-th root of a complex num
  #2
Senior Member
 
Markus Hartinger
Join Date: Mar 2009
Posts: 102
Rep Power: 17
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


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFoam and complex numbers panara OpenFOAM Pre-Processing 3 June 13, 2017 06:25
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 08:16
complex numbers for UDF korcan FLUENT 2 April 9, 2006 17:24
Cell Numbers furkan Siemens 3 November 24, 2005 04:06


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