0

Why it dosn't work

float x,result ; result =x^(0,5) or what should l do to find the result of square root of float x

25th Jun 2018, 10:43 PM
Omar Muhammad Nofal
Omar Muhammad Nofal - avatar
2 Antworten
+ 6
^ is the bitwise xor operator not a power one. #include <cmath> double x = 25.0, result; result = pow(x, 0.5);
25th Jun 2018, 10:49 PM
John Wells
John Wells - avatar
+ 1
thank you 👍
25th Jun 2018, 10:53 PM
Omar Muhammad Nofal
Omar Muhammad Nofal - avatar