> I did forget to include math.h . The compiler didn't complain about that
> (why not ?), but the results were dramatic. Incuding math.h solved all
> problems
The reason is that C assumes all functions to return int unless declared
otherwise. Thus
double x = 4.0;
double y = sqrt( x );
will take what the compiler thinks is an int, casts it to double, and assigns
it to `y'. This will create an ugly number.
spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/