Re: XForms: Linux question

Steve Lamont (
Tue, 5 Aug 97 10:34:04 PDT

To subscribers of the xforms list from (Steve Lamont) :

> Dick> and I've come unstuck on trig maths of float type. Can
> Dick> somebody point me to a library of math functions (sin, cos,
> Dick> sqrt, abs etc) for type float on linux (i386).
> Aren't those in libm.a? (-lm)

Those, generally, return and take double arguments rather than float.
Some machines have libraries which support the shorter precision

Personally, I've never noticed enough difference between float and
double in speed to bother with the shorter precision words and all of
the numerical instability that short precision entails. I just
declare all reals as double and leave it at that.

Especially in this case your mileage may vary.


To unsubscribe, send the message "unsubscribe" to or see
Xforms Home Page:
List Archive: