
1. Re: Hi, i'am trying to use mathematic Functions in my application on the WICED SMART SDK , so i included "math.h" in my c file but i get this error when i use this line double c = sqrt(10);
userc_15998 Apr 1, 2015 4:11 AM (in response to userc_15614)i have the same problem all the mathematic functions doesn't work i think there's a problem in the links

2. Re: Hi, i'am trying to use mathematic Functions in my application on the WICED SMART SDK , so i included "math.h" in my c file but i get this error when i use this line double c = sqrt(10);
userc_15614 Apr 1, 2015 4:18 AM (in response to userc_15998)1 of 1 people found this helpfuli solved the problem was in the conversion from i16_t to double

3. Re: Hi, i'am trying to use mathematic Functions in my application on the WICED SMART SDK , so i included "math.h" in my c file but i get this error when i use this line double c = sqrt(10);
userc_17357 Apr 16, 2015 2:43 PM (in response to userc_15614)Hello,
I am trying to use math functions as well and I am also getting errors such as:
undefined reference to `sqrt'
undefined reference to `__aeabi_i2f'
undefined reference to `__aeabi_fmul'
Could you explain how you managed to use math functions included in math.h ?

4. Re: Hi, i'am trying to use mathematic Functions in my application on the WICED SMART SDK , so i included "math.h" in my c file but i get this error when i use this line double c = sqrt(10);
MichaelF_56 Apr 16, 2015 2:50 PM (in response to userc_17357)I think you will find these two threads helpful:

5. Re: Hi, i'am trying to use mathematic Functions in my application on the WICED SMART SDK , so i included "math.h" in my c file but i get this error when i use this line double c = sqrt(10);
userc_15614 Apr 16, 2015 2:53 PM (in response to userc_17357)yes i didn't find the way to use that functions even with an external libraries so i used another function that calculate the sqrt only with integers and i multiple the input value (*10,100..) of the function to have the sensibility that i want to get then i devied the output this is the only way i found , the wiced smart sdk do not support floats

6. Re: Hi, i'am trying to use mathematic Functions in my application on the WICED SMART SDK , so i included "math.h" in my c file but i get this error when i use this line double c = sqrt(10);
userc_15614 Apr 16, 2015 2:58 PM (in response to userc_15614)this is the code :
#define NEXT(n, i) (((n) + (i)/(n)) >> 1)
int abso (int n)
{
if (n<0) return (n);
else return n ;
}
unsigned int isqrt(int number) {
unsigned int n = 1;
unsigned int n1 = NEXT(n, number);
while(abso(n1  n) > 1) {
n = n1;
n1 = NEXT(n, number);
}
while(n1*n1 > number)
n1;
return n1;
}

7. Re: Hi, i'am trying to use mathematic Functions in my application on the WICED SMART SDK , so i included "math.h" in my c file but i get this error when i use this line double c = sqrt(10);
userc_17357 Apr 16, 2015 3:35 PM (in response to userc_15614)Thanks for your quick replies!
Besides sqrt, I also need some trigonometric functions, so I will probably look into libfixmath.
Best regards