equal func for the custom number
equal function for rational number
equal function for complex number