[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
magnitude and make-polar
From: |
Kevin Ryde |
Subject: |
magnitude and make-polar |
Date: |
Sat, 05 Jul 2003 10:02:23 +1000 |
User-agent: |
Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.2 (gnu/linux) |
* numbers.c (s_scm_make_polar): Use sincos, when available.
(scm_magnitude): Use hypot.
* configure.in (AC_CHECK_FUNCS): Add sincos.
* tests/numbers.test (make-polar, magnitude): Add tests.
glibc sincos is supposedly more efficient than separate sin and cos
calls.
hypot should give greater accuracy than a sqrt expression. It dates
back at least to v7 unix and so shouldn't need a configure test.
numbers.c.sh.diff
Description: Text document
configure.in.sh.diff
Description: Text document
numbers.test.sh.diff
Description: Text document
- magnitude and make-polar,
Kevin Ryde <=