You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Baljit Singh (JIRA)" <ji...@apache.org> on 2019/04/10 21:52:00 UTC

[jira] [Closed] (MATH-1480) Overflow in Vector norm and distance

     [ https://issues.apache.org/jira/browse/MATH-1480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Baljit Singh closed MATH-1480.
------------------------------
    Resolution: Later

Moved to https://issues.apache.org/jira/browse/GEOMETRY-50

> Overflow in Vector norm and distance
> ------------------------------------
>
>                 Key: MATH-1480
>                 URL: https://issues.apache.org/jira/browse/MATH-1480
>             Project: Commons Math
>          Issue Type: Bug
>            Reporter: Baljit Singh
>            Priority: Major
>
> In Euclidean Vector classes (Vector2D, Vector3D), norm() and distance() rely on Math.sqrt(), which can overflow if the components of the vectors are large. Instead, they should rely on SafeNorm.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)