Changeset 26302 in project


Ignore:
Timestamp:
04/01/12 13:46:34 (9 years ago)
Author:
sjamaan
Message:

Update numbers docs to mention exact-integer-nth-root

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/numbers

    r26288 r26302  
    6262In other words, {{s}} is the closest square root we can find that's equal to or
    6363smaller than {{K}}, and {{r}} is the rest if {{K}} isn't a neat square of two numbers.
     64
     65<procedure>(exact-integer-nth-root K N)</procedure>
     66
     67Like {{exact-integer-sqrt}}, but with any base value.  Calculates
     68{{\sqrt[N]{K}}}, the {{N}}th root of {{K}} and returns two values
     69{{s}} and {{r}} where {{s^N + r = K}} and {{K < (s+1)^N}}.
    6470
    6571<procedure>(exact-integer? X)</procedure>
Note: See TracChangeset for help on using the changeset viewer.