AnsweredAssumed Answered

problems with sqrt() function

Question asked by Florentin von Frankenberg on May 30, 2008
Latest reply on Jun 2, 2008 by Daniel Lundin
I am trying to do the following calculation
              location[3] = isqrt((dist_3^2)-((location[1])^2)-(location[2])^2);
and I get
Error C1826: Integer-expression expected
Error C5002: Illegal type
Error C1829: +- Incompatible types
among others.
"location" is a double, and "dist_3" is an int.
I put a line, #include "math.h" at the top of my code...