Closed Yawning closed 3 years ago
If r aliases either u or v (eg: _, isSquare := foo.SqrtRatio(one, &foo)), output is not what is expected, because r.Multiply(uv3, r.Pow22523(uv7)) happens before the final uses of u or v.
r
u
v
_, isSquare := foo.SqrtRatio(one, &foo)
r.Multiply(uv3, r.Pow22523(uv7))
Thank you! We even have comprehensive tests for aliasing, but SqrtRatio wasn't wired into them.
If
r
aliases eitheru
orv
(eg:_, isSquare := foo.SqrtRatio(one, &foo)
), output is not what is expected, becauser.Multiply(uv3, r.Pow22523(uv7))
happens before the final uses ofu
orv
.