Yes. sqrtf is available.
Thanks.

On Dec 12, 2007 3:26 AM, Michael Schippling <[EMAIL PROTECTED]> wrote:
> For the MSP there is:
>     opt/msp430/msp430/include/math.h
> which contains:
>     extern float sqrtf _PARAMS((float));
> (note the 'f' for float rather than double)... however it is in a
> "#ifndef _REENT_ONLY" block which may or may not be def'ed...
>
> And for the AVR:
>     usr/avr/include/math.h
> has:
>     extern double sqrt(double __x) __ATTR_CONST__;
> although I "thought" the ATMEGA only supported floats as well...
>
> MS
>
>
> SANG Junjun wrote:
> > It seems that there is no sqrt support for msp430.
> >
> > On Dec 11, 2007 2:47 PM, prashan wanigasekara <[EMAIL PROTECTED]> wrote:
> >> Hi everyone,
> >>
> >> This is my first post to the forum. I am programming in tinyos-2.x. and
> >> using micaz, telosb motes. My problem is
> >>
> >> 1. How to use math.h in tinyos-2.x?  I cannot find a suitable header file
> >> anywhere. Could you recommend a place to download it ?
> >> 2. I want to use sqrt (square root) function. Is there way to use this
> >> without using math.h?
> >> 3. Is math.h even implemented in tinyos-2.x for micaz?
> >> 4. Is the math.h (tinyos-2.x) for micaz different from telosb? (Platform
> >> dependant?)
> >>
> >>
> >> I would greatly appreciate your help.
> >>
> >> prashan
> >> _______________________________________________
> >> Tinyos-help mailing list
> >> [email protected]
> >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >>
> >
> >
> >
>
> --
> Platform: WinXP/Cygwin
> TinyOS version: 1.x, Boomerang
> Programmer: MIB510
> Device(s): Mica2, MicaZ, Tmote
> Sensor board: homebrew
>
>



-- 
Best Regards,
SANG JUNJUN
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to