iostreams and math