[PATCH v4 guile-lib] src: (math trigonometry): Add it.

2025-02-21 Thread Adam Faiz
This patch is revised with the comments mentioned regarding the v2 patch. >From what I know, Guile treats inexact numbers with infinite precision and >exact numbers as being equal, e.g. (= 90.0 90) returns #t. Unless there's an edge case, there likely doesn't need to be any special handling for c

Re: [PATCH v2 guile-lib] src: (math trigonometry): Add it.

2025-02-21 Thread Adam Faiz
> atan(0,0) is not well-defined (more precisely, there is no unique choice > within the interval [0,360°)) - if the point (0,0) is written in polar > coordinates (0*cos theta, 0*sin theta), then any angle theta can be used. > > > If you intend to support (arctan2 0 0), it may be good to mention