You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected that X.sqrt() should give similar result to X.pow(0.5), but it doesn't.
Especially when the layer is 1.
Example:
> new Decimal(1e-16).pow(0.5)+''
< '1.000000000000002e-8'
> new Decimal(1e-16).sqrt()+''
< 'NaN'
> new Decimal(1e16).neg().pow(0.5)+''
< 'NaN'
> new Decimal(1e16).neg().sqrt()+''
< '99999999.99999979'
The text was updated successfully, but these errors were encountered:
I expected that
X.sqrt()
should give similar result toX.pow(0.5)
, but it doesn't.Especially when the
layer
is 1.Example:
The text was updated successfully, but these errors were encountered: