include missing math.h header
use fabs() for floating point
use cabs() for complex types