2.7 math.h The math header defines several mathematic functions. Macros: HUGE_VAL Functions: acos(); asin(); atan(); atan2(); ceil(); cos(); cosh(); exp(); fabs(); floor(); fmod(); frexp(); ldexp(); log(); log10(); modf(); pow(); sin(); sinh(); sqrt(); tan(); tanh(); 2.7.1 Error Conditions All math.h functions handle errors similarly. In the case that the argument passed to the function exceeds the […]
Category: math.h
Diğer Matematik Fonksiyonları(4)
Exponential, Logarithmic, and Power Functions(8)
Trigonometrik Fonksiyonlar(10)
Hata Koşulları
2.7.1 Error Conditions All math.h functions handle errors similarly. In the case that the argument passed to the function exceeds the range of that function, then the variable errno is set to EDOM. The value that the function returns is implementation specific. In the case that the value being returned is too large to be represented in a […]
fmod
2.7.4.4 fmod Declaration: double fmod(double x, double y);Returns the remainder of x divided by y. Range: There is no range limit on the return value. If y is zero, then either a range error will occur or the function will return zero (implementation-defined). Faydalı Yetersiz
floor
2.7.4.3 floor Declaration: double floor(double x);Returns the largest integer value less than or equal to x. Range: There is no range limit on the argument or return value. Faydalı Yetersiz
fabs
2.7.4.2 fabs Declaration: double fabs(double x);Returns the absolute value of x (a negative value becomes positive, positive value is unchanged). Range: There is no range limit on the argument. The return value is always positive. Faydalı Yetersiz
ceil
2.7.4.1 ceil Declaration: double ceil(double x);Returns the smallest integer value greater than or equal to x. Range: There is no range limit on the argument or return value. Faydalı Yetersiz
sqrt
2.7.3.8 sqrt Declaration: double sqrt(double x);Returns the square root of x. Range: The argument cannot be negative. The returned value is always positive. Faydalı Yetersiz
pow
2.7.3.7 pow Declaration: double pow(double x, double y);Returns x raised to the power of y. Range: x cannot be negative if y is a fractional value. x cannot be zero if y is less than or equal to zero. Faydalı Yetersiz
modf
2.7.3.6 modf Declaration: double modf(double x, double *integer);Breaks the floating-point number x into integer and fraction components. The returned value is the fraction component (part after the decimal), and sets integer to the integer component. Range: There is no range limit on the argument or return value. Faydalı Yetersiz
log10
2.7.3.5 log10 Declaration: double log10(double x);Returns the common logarithm (base-10 logarithm) of x. Range: There is no range limit on the argument or return value. Faydalı Yetersiz