Patch committed to 54c4753dd3f7506bee2778b36d7263b613ffd579, with a couple
extra tests.
Thanks
Daniel
Thanks for the report! Patch attached.
regards
Daniel
0001-Add-missing-branch-in-scm_is_less_than.patch
Description: Binary data
description:
script(named main.scm):
(use-modules (srfi srfi-11))
(define* (newton-sqrt x #:optional (tolerance 0.001) (guess 1))
(if (< (abs (- x (* guess guess)))
tolerance)
(values guess (abs (- x (* guess guess))) tolerance)
(newton-sqrt x tolerance (/ (+ guess (/ x g