« Return to Thread: [bug #26809] Some common math constants missing in math.h

RE: [bug #26809] Some common math constants missinginmath.h

by Stu Bell :: Rate this Message:

Reply to Author | View in Thread

> > #define M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */
>
> While I have no problem with the constant, shouldn't the
> symbol name be M_1_SQRT2?  That would follow the naming set
> up by M_1_PI and M_2_PI and . . .

Please ignore my brain fart.  Obviously 1/sqrt(2) = sqrt(1/2).  My bad.

(In my defense, it was a *long* weekend for me.  ;-) )

Stu


_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@...
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

 « Return to Thread: [bug #26809] Some common math constants missing in math.h