Calling sqrt once isn’t a problem, calling it lots...
# random
d
Calling sqrt once isn’t a problem, calling it lots will be. So if the sqrt is a constant just calculate it once.