Changeset 14003 in project


Ignore:
Timestamp:
03/31/09 04:01:22 (11 years ago)
Author:
Kon Lovett
Message:

Added routines.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/mathh

    r13569 r14003  
    8282{{BASE}} is a {{number}}.
    8383
     84==== cbrt
     85
     86<procedure>(cbrt N) => NUMBER</procedure>
     87
     88Returns the cube root of {{N}}.
     89
     90{{N}} is {{double}}.
     91
     92==== nextafter
     93
     94<procedure>(nextafter N M) => NUMBER</procedure>
     95
     96Returns the next number {{N}} in the direction of {{M}}.
     97
     98{{N}} and {{M}} are {{double}}.
     99
    84100==== fpmod
    85101
     
    105121
    106122{{N}} is {{double}}.
     123
     124==== signbit
     125
     126<procedure>(signbit N) => NUMBER</procedure>
     127
     128Returns {{#t}} when negative, {{#f}} otherwise.
     129
     130{{N}} is {{double}}.
     131
     132==== copysign
     133
     134<procedure>(copysign N M) => NUMBER</procedure>
     135
     136Returns {{N}} with same sign as {{M}}.
     137
     138{{N}} and {{M}} are {{double}}.
    107139
    108140
     
    229261== Version history
    230262
     263; 2.1.0 : Added 'signbit', 'copysign', 'nextafter' and 'cbrt'.
    231264; 2.0.0 : Chicken 4 release. {{fpclass}} and {{fpclassify}} are now part of the '''mathh''' extension.
    232265
Note: See TracChangeset for help on using the changeset viewer.