var a = something
var b = something_else
a = a^2
b = b^2
var c = a+b
c = c^0.5
(The above being a very long-winded and funny way of solving the Pythagorean theorem.)
Sure, you could write:
return (something^2 + something_else^2)^0.5
… but is there really any measurable performance difference? Not unless you’re iterating that a LOT of times.
And since — in Bubble — iteration is more or less prohibited, it’s just kind of not a big deal.
Edit: though I would probably silently judge the author of those 6 Element > Set State steps (that would be the Bubble equivalent) as something of a goofball.