CFD Online Logo CFD Online URL
Home > Forums > FLUENT

powers and roots

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

LinkBack Thread Tools Display Modes
Old   July 31, 2003, 11:09
Default powers and roots
Andrew Garrard
Posts: n/a
Also, another little problem I am having is that I am trying to get the unit vector of the F_AREA function. This involves using pythagarus to work out the length of (A[0]^2 + A[1]^2)^0.5. When I use the ^ symbol the code will not compile and when I use _power((A[0]), 2) it produces an error EOF on stderr. The fluent Process could not be started.

Any suggestions anyone
  Reply With Quote

Old   July 31, 2003, 12:57
Default Re: powers and roots
Posts: n/a

C rule

pow(10.0, 2.0)

do not forget to use (.)


  Reply With Quote


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

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