CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   powers and roots (http://www.cfd-online.com/Forums/fluent/31912-powers-roots.html)

Andrew Garrard July 31, 2003 12:09

powers and roots
 
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

alex July 31, 2003 13:57

Re: powers and roots
 
Hi

C rule

pow(10.0, 2.0)

do not forget to use (.)

Regards

Alex


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