A question about basic operation

From: ±èÁÖ¿ (zooghim AT XXXXXX)
Date: Wed Sep 01 2004 - 19:43:28 MDT


Hi,

I found a strange thing in basic operation

in NCL

ncl 11> print( -(0.5)^2 )
(0) 0.25

but generally it is -0.25


It seems that the ncl does (-0.5)*(-0.5) = 0.25

but conventionally is should be -(0.5)*(0.5) = -0.25

I think, it may cause some problems.

Regards

=======================================
Kim joo-wan
 
Numerical Weather Prediction Laboratory
Program in Atmospheric Sciences
Department of Earth and Environmental Sciences
College of Natural Sciences
Seoul National University, Seoul 151-747, KOREA
Tel : +82 (2) 880-6760
Fax : +82 (2) 885-4448
E-mail: zooghim AT nwp2.snu.ac.kr
=======================================


_______________________________________________
ncl-talk mailing list
ncl-talk AT ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk



This archive was generated by hypermail 2b29 : Thu Sep 09 2004 - 08:04:36 MDT