Pow domain error c builder
а функцию Power(double a, double) (которая вроде должна работать) не находит компайлер! такой вариант тоже на проходит:
Как быть? |
On success, pow and powl return the value calculated of x to the power of y. Sometimes the arguments passed to these functions produce results that overflow or are incalculable. When the correct value would overflow, the functions return the value HUGE_VAL (pow) or _LHUGE_VAL (powl). Results of excessively large magnitude can cause the global variable errno to be set to ERANGE Result out of range If the argument x passed to pow or powl is real and less than 0, and y is not a whole number, or if x is 0 and y is less than 0, or you call pow(0,0), the global variable errno is set to EDOM Domain error |
#pragma argsused if (errno == EDOM) |
int _matherr (struct _exception *a) #pragma argsused
|