include missing math.h header
use fabs() for floating point
use cabs() for complex types
use fabs() for floating point
n is an integer, use abs()
use fabs() for floating point
use fabs() for floating point
use fabs() for floating point
test of array to null pointer is always false
use fabsf() instead of abs()