Update complex.c

version 1.0 , basic function, no validation.