SMS: Complex variables and applications