riq = int(1000.0 * sqrt(float(tori)) / float(yrange))