diff options
author | Marius Vollmer <mvo@zagadka.de> | 2004-08-03 17:16:29 +0000 |
---|---|---|
committer | Marius Vollmer <mvo@zagadka.de> | 2004-08-03 17:16:29 +0000 |
commit | 96d8c217570b05325061f258def985b775eb56f4 (patch) | |
tree | 9bc734dc814accf8412e72c8bb138557c080a074 | |
parent | 5615f696b6bf751f2c225b26475c889ae95a394e (diff) | |
download | guile-96d8c217570b05325061f258def985b775eb56f4.tar.gz |
*** empty log message ***
-rw-r--r-- | NEWS | 11 | ||||
-rw-r--r-- | doc/ref/ChangeLog | 7 | ||||
-rw-r--r-- | libguile/ChangeLog | 11 |
3 files changed, 26 insertions, 3 deletions
@@ -638,6 +638,17 @@ There is a huge number of these functions, for numbers, strings, symbols, vectors, etc. They are documented in the reference manual in the API section together with the types that they apply to. +** New functions for dealing with complex numbers in C have been added. + +The new functions are scm_c_make_rectangular, scm_c_make_polar, +scm_c_real_part, scm_c_imag_part, scm_c_magnitude and scm_c_angle. +They work like scm_make_rectangular etc but take or return doubles +directly. + +** The function scm_make_complex has been discouraged. + +Use scm_c_make_rectangular instead. + ** The INUM macros have been deprecated. A lot of code uses these macros to do general integer conversions, diff --git a/doc/ref/ChangeLog b/doc/ref/ChangeLog index c642db444..e41fd077a 100644 --- a/doc/ref/ChangeLog +++ b/doc/ref/ChangeLog @@ -1,8 +1,11 @@ 2004-08-03 Marius Vollmer <marius.vollmer@uni-dortmund.de> * api-data.texi: Added scm_is_real, scm_is_rational, - scm_to_double, scm_from_double, numerator, and denominator. - + scm_to_double, scm_from_double, numerator, and denominator. Added + scm_is_complex, scm_is_number, scm_c_make_rectangular, + scm_c_make_polar, scm_c_rela_part, scm_c_imag_part, + scm_c_magnitude, and scm_c_angle. + 2004-08-02 Marius Vollmer <marius.vollmer@uni-dortmund.de> * gh.texi: Replaced references to scm_num2* with scm_to_* and diff --git a/libguile/ChangeLog b/libguile/ChangeLog index 454f6e357..566aa6661 100644 --- a/libguile/ChangeLog +++ b/libguile/ChangeLog @@ -2,7 +2,16 @@ * numbers.h. numbers.c (scm_make_ratio): Renamed to scm_i_make_ratio and made static, replaced uses with scm_divide. - + (scm_complex_p): New, export as "complex?" to Scheme. + (scm_number_p): Export as "number?" to Scheme. + (scm_is_complex, scm_is_number): New. + (scm_c_make_rectangular, scm_c_make_polar): New. + (scm_make_rectangular, scm_make_polar): Use above. + (scm_c_real_part, scm_c_imag_part, scm_c_magnitude, scm_c_angle): + New. + (scm_make_complex): Discouraged by moving to discouraged.h and + discouraged.c. Replaced all uses with scm_c_make_rectangular. + * discouraged.h, discouraged.c, numbers.c, numbers.h (scm_is_rational): New. (scm_i_short2big, scm_i_int2big, scm_i_uint2big, scm_i_size2big, |