Other Parts Discussed in Thread: C2000WARE
Tool/software: TI C/C++ Compiler
Hello All,
I'm trying to use the sqrt() function, but it's not working and I don't know what I'm doing wrong.
I've included math header files like this: (yes, I'm using IQ math and CLA math too)
#include "math.h"
#include "IQmath/IQmathLib.h"
#include "CLAmath/Cla_typedefs.h"
Here are a couple def's:
#define MATH_TYPE FLOAT_MATH
#define GLOBAL_Q 30
I'm successfully using sin() and cos() from that same library. I put the sqrt() and sin() functions one after the other for demo.
Here's some code:
The function "sqrt(36.0);" returns the value "36.0", when it should return "6.0". Any value I place there is simply passed through.
However, the function sin((w0) / (2*q);" returns the correct value.
I don't get any errors or warnings.
Do I have to manually load some tables?
I'm running:
- CCS v7.3.0.00019
- Eclipse C/C++ dev tools 9.0.0.201606062011
- C2000 sevice support 4.2.1.0
Thanks,
robin