avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] Pow Function in avr8


From: Thomas, George
Subject: Re: [avr-libc-dev] Pow Function in avr8
Date: Wed, 28 Nov 2012 14:56:23 +0000

>>Floating point equivalence is not guaranteed so is this comparison valid ?

C99 in 5.2.4.2.2#5 says:
The accuracy ofthe floating-point operations (+, -, *, /) and of the
library functions in <math.h>and <complex.h> that return floating-point
results is implementation-defined [...] The implementation may state that
the accuracy is unknown.


JW

PS. Are you sure you linked against avr-libc's math library?

It linked against the libc math libraries . 

Also adding to the points mentioned above, is it required to use the logrithms 
for getting this done as we explicitly say the second argument of pow should be 
an integer ?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]