|
CC78K0S Datasheet, PDF (267/520 Pages) NEC – C Compiler Ver.1.30 or Later Language | |||
|
◁ |
CHAPTER 10 LIBRARY FUNCTIONS
7-18 sqrt (normal model only)
Mathematical Functions
FUNCTION
sqrt finds the square root.
HEADER
math.h
FUNCTION PROTOTYPE
double sqrt (double x) ;
Function
sqrt
Arguments
x ... Numeric value on which
operation is performed
Return Value
When x ⥠0 ... Square root of
x
When x = ±0 ... ±0
When x < 0 ... NaN
EXPLANATION
⢠Calculates the square root of x.
⢠In the case of an area error of x < 0, 0 is returned and EDOM is set to errno.
⢠If x is non-numeric, NaN is returned.
⢠If x is ±0, ±0 is returned.
Userâs Manual U14872EJ1V0UM
267
|
▷ |