Changeset 8544 in project


Ignore:
Timestamp:
02/17/08 20:17:46 (12 years ago)
Author:
Kon Lovett
Message:

Doc update.

Location:
release/3/mathh
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • release/3/mathh/tags/1.10/doc.scm

    r8512 r8544  
    220220      )
    221221
    222       #;
    223222      (subsection "Fixnum Procedures"
    224223
    225224        (usage "(require-extension fixnum-extras)")
    226225
     226        (procedure "(fixnum-width)"
     227          (p "") )
     228
     229        (procedure "(least-fixnum)"
     230          (p "") )
     231
     232        (procedure "(greatest-fixnum)"
     233          (p "") )
     234
     235        (procedure "(fx=? FX ...)"
     236          (p "") )
     237
     238        (procedure "(fx<? FX ...)"
     239          (p "") )
     240
     241        (procedure "(fx>? FX ...)"
     242          (p "") )
     243
     244        (procedure "(fx<=? FX ...)"
     245          (p "") )
     246
     247        (procedure "(fx>=? FX ...)"
     248          (p "") )
     249
     250        (procedure "(fxzero? FX)"
     251          (p "") )
     252
     253        (procedure "(fxpositive? FX)"
     254          (p "") )
     255
     256        (procedure "(fxnegative? FX)"
     257          (p "") )
     258
     259        (procedure "(fxodd? FX)"
     260          (p "") )
     261
     262        (procedure "(fxeven? FX)"
     263          (p "") )
     264
     265        (procedure "(*fxmax FX ...)"
     266          (p "") )
     267
     268        (procedure "(*fxmin FX ...)"
     269          (p "") )
     270
     271        (procedure "(fxdiv-and-mod FX-N FX-D)"
     272          (p "") )
     273
     274        (procedure "(fxarithmetic-shift FX DIRECTIONAL-AMOUNT)"
     275          (p "") )
     276
     277        (procedure "(fxarithmetic-shift-left FX AMOUNT)"
     278          (p "") )
     279
     280        (procedure "(fxarithmetic-shift-right FX AMOUNT)"
     281          (p "") )
     282
     283        (procedure "(*fx- FX [FX2])"
     284          (p "") )
     285
     286        (procedure "(*fxand FX ...)"
     287          (p "") )
     288
     289        (procedure "(*fxior FX ...)"
     290          (p "") )
     291
     292        (procedure "(*fxxor FX ...)"
     293          (p "") )
     294
     295        (procedure "(fxif MASK TRUE FALSE)"
     296          (p "") )
     297
     298        (procedure "(fxbit-count FX)"
     299          (p "") )
     300
     301        (procedure "(fxlength FX)"
     302          (p "") )
     303
     304        (procedure "(fxfirst-bit-set FX)"
     305          (p "") )
     306
     307        (procedure "(fxlast-bit-set FX)"
     308          (p "") )
     309
     310        (procedure "(fxbit-set? FX INDEX)"
     311          (p "") )
     312
     313        (procedure "(fxcopy-bit FX INDEX BIT)"
     314          (p "") )
     315
     316        (procedure "(fxbit-field FX START END)"
     317          (p "") )
     318
     319        (procedure "(fxcopy-bit-field FX-TO START END FX-FROM)"
     320          (p "") )
     321
     322        (procedure "(fxrotate-bit-field FX START END COUNT)"
     323          (p "") )
     324
     325        (procedure "(fxreverse-bit-field FX START END)"
     326          (p "") )
     327      )
     328
     329      (subsection "Flonum Procedures"
     330
     331        (usage "(require-extension flonum-extras)")
     332
     333        (procedure "(real->flonum VALUE)"
     334          (p "") )
     335
     336        (procedure "(fixnum->flonum VALUE)"
     337          (p "") )
     338
     339        (procedure "(fl=? FL ...)"
     340          (p "") )
     341
     342        (procedure "(fl<? FL ...)"
     343          (p "") )
     344
     345        (procedure "(fl>? FL ...)"
     346          (p "") )
     347
     348        (procedure "(fl<=? FL ...)"
     349          (p "") )
     350
     351        (procedure "(fl>=? FL ...)"
     352          (p "") )
     353
     354        (procedure "(flinteger? FL)"
     355          (p "") )
     356
     357        (procedure "(flzero? FL)"
     358          (p "") )
     359
     360        (procedure "(flpositive? FL)"
     361          (p "") )
     362
     363        (procedure "(flnegative? FL)"
     364          (p "") )
     365
     366        (procedure "(flodd? FL)"
     367          (p "") )
     368
     369        (procedure "(fleven? FL)"
     370          (p "") )
     371
     372        (procedure "(flfinite? FL)"
     373          (p "") )
     374
     375        (procedure "(flinfinite? FL)"
     376          (p "") )
     377
     378        (procedure "(flnan? FL)"
     379          (p "") )
     380
     381        (procedure "(fl+ FL ...)"
     382          (p "") )
     383
     384        (procedure "(fl* FL ...)"
     385          (p "") )
     386
     387        (procedure "(fl- FL ...)"
     388          (p "") )
     389
     390        (procedure "(fl/ FL ...)"
     391          (p "") )
     392
     393        (procedure "(flmax FL ...)"
     394          (p "") )
     395
     396        (procedure "(flmin FL ...)"
     397          (p "") )
     398
     399        (procedure "(flabs FL)"
     400          (p "") )
     401
     402        (procedure "(flfraction FL)"
     403          (p "") )
     404
     405        (procedure "(fltruncate FL)"
     406          (p "") )
     407
     408        (procedure "(flfloor FL)"
     409          (p "") )
     410
     411        (procedure "(flceiling FL)"
     412          (p "") )
     413
     414        (procedure "(flround FL)"
     415          (p "") )
     416
     417        (procedure "(fldiv FL-N FL-D)"
     418          (p "") )
     419
     420        (procedure "(flmod FL-N FL-D)"
     421          (p "") )
     422
     423        (procedure "(fldiv-and-mod FL-N FL-D)"
     424          (p "") )
     425
     426        (procedure "(flexp FL)"
     427          (p "") )
     428
     429        (procedure "(fllog FL [BASE])"
     430          (p "") )
     431
     432        (procedure "(flsin FL)"
     433          (p "") )
     434
     435        (procedure "(flcos FL)"
     436          (p "") )
     437
     438        (procedure "(fltan FL)"
     439          (p "") )
     440
     441        (procedure "(flasin FL)"
     442          (p "") )
     443
     444        (procedure "(flacos FL)"
     445          (p "") )
     446
     447        (procedure "(flatan FL [FL2])"
     448          (p "") )
     449
     450        (procedure "(flsqrt FL)"
     451          (p "") )
     452
     453        (procedure "(flexpt FL EXP)"
     454          (p "") )
    227455      )
    228456
     
    285513                                (procedure "(bitwise-integer->list VALUE [LENGTH])"
    286514                                        (p "Converts integer to list of boolean, least-significant to most-significant.") )
     515
     516                                (procedure "(bitwise-arithmetic-shift VALUE DIRECTIONAL-AMOUNT)"
     517                                        (p (code "(arithmetic-shift VALUE DIRECTIONAL-AMOUNT)")) )
     518
     519                                (procedure "(bitwise-arithmetic-shift-left VALUE AMOUNT)"
     520                                        (p (code "(arithmetic-shift VALUE AMOUNT)")) )
     521
     522                                (procedure "(bitwise-arithmetic-shift-right VALUE AMOUNT)"
     523                                        (p (code "(arithmetic-shift VALUE (- AMOUNT))")) )
    287524      )
    288525    )
    289526
    290527    (history
    291       (version "1.10" "Cygwin compile fix. Removed \"count-set-bits\" & \"count-unset-bits\". [Kon Lovett]")
     528      (version "1.10" "Cygwin compile fix. Added \"fixnum/flonum/bitwise-extras\". Removed \"count-set-bits\" & \"count-unset-bits\". [Kon Lovett]")
    292529      (version "1.903" "Added C int & float types. [Kon Lovett]")
    293530      (version "1.9.2" "Added log1p (approx.) for Windows, scalbn. Native log2 for linux/macosx/bsd. [Kon Lovett]")
  • release/3/mathh/tags/1.10/mathh.html

    r8543 r8544  
    578578<h4>Fixnum Procedures</h4>
    579579<div class="section">
    580 <h3>Usage</h3>(require-extension fixnum-extras)</div></div>
     580<h3>Usage</h3>(require-extension fixnum-extras)</div>
     581<dt class="definition"><strong>procedure:</strong> (fixnum-width)</dt>
     582<dd>
     583<p></p></dd>
     584<dt class="definition"><strong>procedure:</strong> (least-fixnum)</dt>
     585<dd>
     586<p></p></dd>
     587<dt class="definition"><strong>procedure:</strong> (greatest-fixnum)</dt>
     588<dd>
     589<p></p></dd>
     590<dt class="definition"><strong>procedure:</strong> (fx=? FX ...)</dt>
     591<dd>
     592<p></p></dd>
     593<dt class="definition"><strong>procedure:</strong> (fx&lt;? FX ...)</dt>
     594<dd>
     595<p></p></dd>
     596<dt class="definition"><strong>procedure:</strong> (fx&gt;? FX ...)</dt>
     597<dd>
     598<p></p></dd>
     599<dt class="definition"><strong>procedure:</strong> (fx&lt;=? FX ...)</dt>
     600<dd>
     601<p></p></dd>
     602<dt class="definition"><strong>procedure:</strong> (fx&gt;=? FX ...)</dt>
     603<dd>
     604<p></p></dd>
     605<dt class="definition"><strong>procedure:</strong> (fxzero? FX)</dt>
     606<dd>
     607<p></p></dd>
     608<dt class="definition"><strong>procedure:</strong> (fxpositive? FX)</dt>
     609<dd>
     610<p></p></dd>
     611<dt class="definition"><strong>procedure:</strong> (fxnegative? FX)</dt>
     612<dd>
     613<p></p></dd>
     614<dt class="definition"><strong>procedure:</strong> (fxodd? FX)</dt>
     615<dd>
     616<p></p></dd>
     617<dt class="definition"><strong>procedure:</strong> (fxeven? FX)</dt>
     618<dd>
     619<p></p></dd>
     620<dt class="definition"><strong>procedure:</strong> (*fxmax FX ...)</dt>
     621<dd>
     622<p></p></dd>
     623<dt class="definition"><strong>procedure:</strong> (*fxmin FX ...)</dt>
     624<dd>
     625<p></p></dd>
     626<dt class="definition"><strong>procedure:</strong> (fxdiv-and-mod FX-N FX-D)</dt>
     627<dd>
     628<p></p></dd>
     629<dt class="definition"><strong>procedure:</strong> (fxarithmetic-shift FX DIRECTIONAL-AMOUNT)</dt>
     630<dd>
     631<p></p></dd>
     632<dt class="definition"><strong>procedure:</strong> (fxarithmetic-shift-left FX AMOUNT)</dt>
     633<dd>
     634<p></p></dd>
     635<dt class="definition"><strong>procedure:</strong> (fxarithmetic-shift-right FX AMOUNT)</dt>
     636<dd>
     637<p></p></dd>
     638<dt class="definition"><strong>procedure:</strong> (*fx- FX [FX2])</dt>
     639<dd>
     640<p></p></dd>
     641<dt class="definition"><strong>procedure:</strong> (*fxand FX ...)</dt>
     642<dd>
     643<p></p></dd>
     644<dt class="definition"><strong>procedure:</strong> (*fxior FX ...)</dt>
     645<dd>
     646<p></p></dd>
     647<dt class="definition"><strong>procedure:</strong> (*fxxor FX ...)</dt>
     648<dd>
     649<p></p></dd>
     650<dt class="definition"><strong>procedure:</strong> (fxif MASK TRUE FALSE)</dt>
     651<dd>
     652<p></p></dd>
     653<dt class="definition"><strong>procedure:</strong> (fxbit-count FX)</dt>
     654<dd>
     655<p></p></dd>
     656<dt class="definition"><strong>procedure:</strong> (fxlength FX)</dt>
     657<dd>
     658<p></p></dd>
     659<dt class="definition"><strong>procedure:</strong> (fxfirst-bit-set FX)</dt>
     660<dd>
     661<p></p></dd>
     662<dt class="definition"><strong>procedure:</strong> (fxlast-bit-set FX)</dt>
     663<dd>
     664<p></p></dd>
     665<dt class="definition"><strong>procedure:</strong> (fxbit-set? FX INDEX)</dt>
     666<dd>
     667<p></p></dd>
     668<dt class="definition"><strong>procedure:</strong> (fxcopy-bit FX INDEX BIT)</dt>
     669<dd>
     670<p></p></dd>
     671<dt class="definition"><strong>procedure:</strong> (fxbit-field FX START END)</dt>
     672<dd>
     673<p></p></dd>
     674<dt class="definition"><strong>procedure:</strong> (fxcopy-bit-field FX-TO START END FX-FROM)</dt>
     675<dd>
     676<p></p></dd>
     677<dt class="definition"><strong>procedure:</strong> (fxrotate-bit-field FX START END COUNT)</dt>
     678<dd>
     679<p></p></dd>
     680<dt class="definition"><strong>procedure:</strong> (fxreverse-bit-field FX START END)</dt>
     681<dd>
     682<p></p></dd></div>
    581683<div class="subsection">
    582684<h4>Flonum Procedures</h4>
    583685<div class="section">
    584 <h3>Usage</h3>(require-extension flonum-extras)</div></div>
     686<h3>Usage</h3>(require-extension flonum-extras)</div>
     687<dt class="definition"><strong>procedure:</strong> (real-&gt;flonum VALUE)</dt>
     688<dd>
     689<p></p></dd>
     690<dt class="definition"><strong>procedure:</strong> (fixnum-&gt;flonum VALUE)</dt>
     691<dd>
     692<p></p></dd>
     693<dt class="definition"><strong>procedure:</strong> (fl=? FL ...)</dt>
     694<dd>
     695<p></p></dd>
     696<dt class="definition"><strong>procedure:</strong> (fl&lt;? FL ...)</dt>
     697<dd>
     698<p></p></dd>
     699<dt class="definition"><strong>procedure:</strong> (fl&gt;? FL ...)</dt>
     700<dd>
     701<p></p></dd>
     702<dt class="definition"><strong>procedure:</strong> (fl&lt;=? FL ...)</dt>
     703<dd>
     704<p></p></dd>
     705<dt class="definition"><strong>procedure:</strong> (fl&gt;=? FL ...)</dt>
     706<dd>
     707<p></p></dd>
     708<dt class="definition"><strong>procedure:</strong> (flinteger? FL)</dt>
     709<dd>
     710<p></p></dd>
     711<dt class="definition"><strong>procedure:</strong> (flzero? FL)</dt>
     712<dd>
     713<p></p></dd>
     714<dt class="definition"><strong>procedure:</strong> (flpositive? FL)</dt>
     715<dd>
     716<p></p></dd>
     717<dt class="definition"><strong>procedure:</strong> (flnegative? FL)</dt>
     718<dd>
     719<p></p></dd>
     720<dt class="definition"><strong>procedure:</strong> (flodd? FL)</dt>
     721<dd>
     722<p></p></dd>
     723<dt class="definition"><strong>procedure:</strong> (fleven? FL)</dt>
     724<dd>
     725<p></p></dd>
     726<dt class="definition"><strong>procedure:</strong> (flfinite? FL)</dt>
     727<dd>
     728<p></p></dd>
     729<dt class="definition"><strong>procedure:</strong> (flinfinite? FL)</dt>
     730<dd>
     731<p></p></dd>
     732<dt class="definition"><strong>procedure:</strong> (flnan? FL)</dt>
     733<dd>
     734<p></p></dd>
     735<dt class="definition"><strong>procedure:</strong> (fl+ FL ...)</dt>
     736<dd>
     737<p></p></dd>
     738<dt class="definition"><strong>procedure:</strong> (fl* FL ...)</dt>
     739<dd>
     740<p></p></dd>
     741<dt class="definition"><strong>procedure:</strong> (fl- FL ...)</dt>
     742<dd>
     743<p></p></dd>
     744<dt class="definition"><strong>procedure:</strong> (fl/ FL ...)</dt>
     745<dd>
     746<p></p></dd>
     747<dt class="definition"><strong>procedure:</strong> (flmax FL ...)</dt>
     748<dd>
     749<p></p></dd>
     750<dt class="definition"><strong>procedure:</strong> (flmin FL ...)</dt>
     751<dd>
     752<p></p></dd>
     753<dt class="definition"><strong>procedure:</strong> (flabs FL)</dt>
     754<dd>
     755<p></p></dd>
     756<dt class="definition"><strong>procedure:</strong> (flfraction FL)</dt>
     757<dd>
     758<p></p></dd>
     759<dt class="definition"><strong>procedure:</strong> (fltruncate FL)</dt>
     760<dd>
     761<p></p></dd>
     762<dt class="definition"><strong>procedure:</strong> (flfloor FL)</dt>
     763<dd>
     764<p></p></dd>
     765<dt class="definition"><strong>procedure:</strong> (flceiling FL)</dt>
     766<dd>
     767<p></p></dd>
     768<dt class="definition"><strong>procedure:</strong> (flround FL)</dt>
     769<dd>
     770<p></p></dd>
     771<dt class="definition"><strong>procedure:</strong> (fldiv FL-N FL-D)</dt>
     772<dd>
     773<p></p></dd>
     774<dt class="definition"><strong>procedure:</strong> (flmod FL-N FL-D)</dt>
     775<dd>
     776<p></p></dd>
     777<dt class="definition"><strong>procedure:</strong> (fldiv-and-mod FL-N FL-D)</dt>
     778<dd>
     779<p></p></dd>
     780<dt class="definition"><strong>procedure:</strong> (flexp FL)</dt>
     781<dd>
     782<p></p></dd>
     783<dt class="definition"><strong>procedure:</strong> (fllog FL [BASE])</dt>
     784<dd>
     785<p></p></dd>
     786<dt class="definition"><strong>procedure:</strong> (flsin FL)</dt>
     787<dd>
     788<p></p></dd>
     789<dt class="definition"><strong>procedure:</strong> (flcos FL)</dt>
     790<dd>
     791<p></p></dd>
     792<dt class="definition"><strong>procedure:</strong> (fltan FL)</dt>
     793<dd>
     794<p></p></dd>
     795<dt class="definition"><strong>procedure:</strong> (flasin FL)</dt>
     796<dd>
     797<p></p></dd>
     798<dt class="definition"><strong>procedure:</strong> (flacos FL)</dt>
     799<dd>
     800<p></p></dd>
     801<dt class="definition"><strong>procedure:</strong> (flatan FL [FL2])</dt>
     802<dd>
     803<p></p></dd>
     804<dt class="definition"><strong>procedure:</strong> (flsqrt FL)</dt>
     805<dd>
     806<p></p></dd>
     807<dt class="definition"><strong>procedure:</strong> (flexpt FL EXP)</dt>
     808<dd>
     809<p></p></dd></div>
    585810<div class="subsection">
    586811<h4>Bitwise Procedures</h4>
     
    638863<dt class="definition"><strong>procedure:</strong> (bitwise-integer-&gt;list VALUE [LENGTH])</dt>
    639864<dd>
    640 <p>Converts integer to list of boolean, least-significant to most-significant.</p></dd></div></div>
     865<p>Converts integer to list of boolean, least-significant to most-significant.</p></dd>
     866<dt class="definition"><strong>procedure:</strong> (bitwise-arithmetic-shift VALUE DIRECTIONAL-AMOUNT)</dt>
     867<dd>
     868<p><code>(arithmetic-shift VALUE DIRECTIONAL-AMOUNT)</code></p></dd>
     869<dt class="definition"><strong>procedure:</strong> (bitwise-arithmetic-shift-left VALUE AMOUNT)</dt>
     870<dd>
     871<p><code>(arithmetic-shift VALUE AMOUNT)</code></p></dd>
     872<dt class="definition"><strong>procedure:</strong> (bitwise-arithmetic-shift-right VALUE AMOUNT)</dt>
     873<dd>
     874<p><code>(arithmetic-shift VALUE (- AMOUNT))</code></p></dd></div></div>
    641875<div class="section">
    642876<h3>Version</h3>
    643877<ul>
    644 <li>1.10 Cygwin compile fix. Removed &quot;count-set-bits&quot; &amp; &quot;count-unset-bits&quot;. [Kon Lovett]</li>
     878<li>1.10 Cygwin compile fix. Added &quot;fixnum/flonum/bitwise-extras&quot;. Removed &quot;count-set-bits&quot; &amp; &quot;count-unset-bits&quot;. [Kon Lovett]</li>
    645879<li>1.903 Added C int &amp; float types. [Kon Lovett]</li>
    646880<li>1.9.2 Added log1p (approx.) for Windows, scalbn. Native log2 for linux/macosx/bsd. [Kon Lovett]</li>
  • release/3/mathh/trunk/doc.scm

    r8543 r8544  
    224224        (usage "(require-extension fixnum-extras)")
    225225
     226        (procedure "(fixnum-width)"
     227          (p "") )
     228
     229        (procedure "(least-fixnum)"
     230          (p "") )
     231
     232        (procedure "(greatest-fixnum)"
     233          (p "") )
     234
     235        (procedure "(fx=? FX ...)"
     236          (p "") )
     237
     238        (procedure "(fx<? FX ...)"
     239          (p "") )
     240
     241        (procedure "(fx>? FX ...)"
     242          (p "") )
     243
     244        (procedure "(fx<=? FX ...)"
     245          (p "") )
     246
     247        (procedure "(fx>=? FX ...)"
     248          (p "") )
     249
     250        (procedure "(fxzero? FX)"
     251          (p "") )
     252
     253        (procedure "(fxpositive? FX)"
     254          (p "") )
     255
     256        (procedure "(fxnegative? FX)"
     257          (p "") )
     258
     259        (procedure "(fxodd? FX)"
     260          (p "") )
     261
     262        (procedure "(fxeven? FX)"
     263          (p "") )
     264
     265        (procedure "(*fxmax FX ...)"
     266          (p "") )
     267
     268        (procedure "(*fxmin FX ...)"
     269          (p "") )
     270
     271        (procedure "(fxdiv-and-mod FX-N FX-D)"
     272          (p "") )
     273
     274        (procedure "(fxarithmetic-shift FX DIRECTIONAL-AMOUNT)"
     275          (p "") )
     276
     277        (procedure "(fxarithmetic-shift-left FX AMOUNT)"
     278          (p "") )
     279
     280        (procedure "(fxarithmetic-shift-right FX AMOUNT)"
     281          (p "") )
     282
     283        (procedure "(*fx- FX [FX2])"
     284          (p "") )
     285
     286        (procedure "(*fxand FX ...)"
     287          (p "") )
     288
     289        (procedure "(*fxior FX ...)"
     290          (p "") )
     291
     292        (procedure "(*fxxor FX ...)"
     293          (p "") )
     294
     295        (procedure "(fxif MASK TRUE FALSE)"
     296          (p "") )
     297
     298        (procedure "(fxbit-count FX)"
     299          (p "") )
     300
     301        (procedure "(fxlength FX)"
     302          (p "") )
     303
     304        (procedure "(fxfirst-bit-set FX)"
     305          (p "") )
     306
     307        (procedure "(fxlast-bit-set FX)"
     308          (p "") )
     309
     310        (procedure "(fxbit-set? FX INDEX)"
     311          (p "") )
     312
     313        (procedure "(fxcopy-bit FX INDEX BIT)"
     314          (p "") )
     315
     316        (procedure "(fxbit-field FX START END)"
     317          (p "") )
     318
     319        (procedure "(fxcopy-bit-field FX-TO START END FX-FROM)"
     320          (p "") )
     321
     322        (procedure "(fxrotate-bit-field FX START END COUNT)"
     323          (p "") )
     324
     325        (procedure "(fxreverse-bit-field FX START END)"
     326          (p "") )
    226327      )
    227328
     
    230331        (usage "(require-extension flonum-extras)")
    231332
     333        (procedure "(real->flonum VALUE)"
     334          (p "") )
     335
     336        (procedure "(fixnum->flonum VALUE)"
     337          (p "") )
     338
     339        (procedure "(fl=? FL ...)"
     340          (p "") )
     341
     342        (procedure "(fl<? FL ...)"
     343          (p "") )
     344
     345        (procedure "(fl>? FL ...)"
     346          (p "") )
     347
     348        (procedure "(fl<=? FL ...)"
     349          (p "") )
     350
     351        (procedure "(fl>=? FL ...)"
     352          (p "") )
     353
     354        (procedure "(flinteger? FL)"
     355          (p "") )
     356
     357        (procedure "(flzero? FL)"
     358          (p "") )
     359
     360        (procedure "(flpositive? FL)"
     361          (p "") )
     362
     363        (procedure "(flnegative? FL)"
     364          (p "") )
     365
     366        (procedure "(flodd? FL)"
     367          (p "") )
     368
     369        (procedure "(fleven? FL)"
     370          (p "") )
     371
     372        (procedure "(flfinite? FL)"
     373          (p "") )
     374
     375        (procedure "(flinfinite? FL)"
     376          (p "") )
     377
     378        (procedure "(flnan? FL)"
     379          (p "") )
     380
     381        (procedure "(fl+ FL ...)"
     382          (p "") )
     383
     384        (procedure "(fl* FL ...)"
     385          (p "") )
     386
     387        (procedure "(fl- FL ...)"
     388          (p "") )
     389
     390        (procedure "(fl/ FL ...)"
     391          (p "") )
     392
     393        (procedure "(flmax FL ...)"
     394          (p "") )
     395
     396        (procedure "(flmin FL ...)"
     397          (p "") )
     398
     399        (procedure "(flabs FL)"
     400          (p "") )
     401
     402        (procedure "(flfraction FL)"
     403          (p "") )
     404
     405        (procedure "(fltruncate FL)"
     406          (p "") )
     407
     408        (procedure "(flfloor FL)"
     409          (p "") )
     410
     411        (procedure "(flceiling FL)"
     412          (p "") )
     413
     414        (procedure "(flround FL)"
     415          (p "") )
     416
     417        (procedure "(fldiv FL-N FL-D)"
     418          (p "") )
     419
     420        (procedure "(flmod FL-N FL-D)"
     421          (p "") )
     422
     423        (procedure "(fldiv-and-mod FL-N FL-D)"
     424          (p "") )
     425
     426        (procedure "(flexp FL)"
     427          (p "") )
     428
     429        (procedure "(fllog FL [BASE])"
     430          (p "") )
     431
     432        (procedure "(flsin FL)"
     433          (p "") )
     434
     435        (procedure "(flcos FL)"
     436          (p "") )
     437
     438        (procedure "(fltan FL)"
     439          (p "") )
     440
     441        (procedure "(flasin FL)"
     442          (p "") )
     443
     444        (procedure "(flacos FL)"
     445          (p "") )
     446
     447        (procedure "(flatan FL [FL2])"
     448          (p "") )
     449
     450        (procedure "(flsqrt FL)"
     451          (p "") )
     452
     453        (procedure "(flexpt FL EXP)"
     454          (p "") )
    232455      )
    233456
     
    290513                                (procedure "(bitwise-integer->list VALUE [LENGTH])"
    291514                                        (p "Converts integer to list of boolean, least-significant to most-significant.") )
     515
     516                                (procedure "(bitwise-arithmetic-shift VALUE DIRECTIONAL-AMOUNT)"
     517                                        (p (code "(arithmetic-shift VALUE DIRECTIONAL-AMOUNT)")) )
     518
     519                                (procedure "(bitwise-arithmetic-shift-left VALUE AMOUNT)"
     520                                        (p (code "(arithmetic-shift VALUE AMOUNT)")) )
     521
     522                                (procedure "(bitwise-arithmetic-shift-right VALUE AMOUNT)"
     523                                        (p (code "(arithmetic-shift VALUE (- AMOUNT))")) )
    292524      )
    293525    )
    294526
    295527    (history
    296       (version "1.10" "Cygwin compile fix. Removed \"count-set-bits\" & \"count-unset-bits\". [Kon Lovett]")
     528      (version "1.10" "Cygwin compile fix. Added \"fixnum/flonum/bitwise-extras\". Removed \"count-set-bits\" & \"count-unset-bits\". [Kon Lovett]")
    297529      (version "1.903" "Added C int & float types. [Kon Lovett]")
    298530      (version "1.9.2" "Added log1p (approx.) for Windows, scalbn. Native log2 for linux/macosx/bsd. [Kon Lovett]")
  • release/3/mathh/trunk/fixnum-extras.scm

    r8543 r8544  
    2121    fxodd?
    2222    fxeven?
    23     fxmax*
    24     fxmin*
     23    *fxmax
     24    *fxmin
    2525    fxdiv
    2626    fxdiv-and-mod
     
    2828    fxarithmetic-shift-left
    2929    fxarithmetic-shift-right
    30     fxand*
    31     fxior*
    32     fxxor*
     30    *fx-
     31    *fxand
     32    *fxior
     33    *fxxor
    3334    fxif
    3435    fxbit-count
     
    101102;;;
    102103
    103 (define (fxmax* fx . rest)
     104(define (*fxmax fx . rest)
    104105        (%fold1 max fx rest) )
    105106
    106 (define (fxmin* fx . rest)
     107(define (*fxmin fx . rest)
    107108        (%fold1 min fx rest) )
    108109
     
    151152(define fxarithmetic-shift-right fxshr)
    152153
    153 #;
    154 (define (fx- fx1 #!optional fx2)
     154(define (*fx- fx1 #!optional fx2)
    155155  (or (and fx2
    156156           (fx- fx1 fx2))
     
    159159;;;
    160160
    161 (define (fxand* fx . rest)
     161(define (*fxand fx . rest)
    162162        (let loop ([fx fx] [rest rest])
    163163          (if (null? rest)
     
    165165              (loop (fxand fx (car rest)) (cdr rest)) ) ) )
    166166
    167 (define (fxior* fx . rest)
     167(define (*fxior fx . rest)
    168168        (let loop ([fx fx] [rest rest])
    169169          (if (null? rest)
     
    171171              (loop (fxior fx (car rest)) (cdr rest)) ) ) )
    172172
    173 (define (fxxor* fx . rest)
     173(define (*fxxor fx . rest)
    174174        (let loop ([fx fx] [rest rest])
    175175          (if (null? rest)
  • release/3/mathh/trunk/mathh.html

    r8543 r8544  
    578578<h4>Fixnum Procedures</h4>
    579579<div class="section">
    580 <h3>Usage</h3>(require-extension fixnum-extras)</div></div>
     580<h3>Usage</h3>(require-extension fixnum-extras)</div>
     581<dt class="definition"><strong>procedure:</strong> (fixnum-width)</dt>
     582<dd>
     583<p></p></dd>
     584<dt class="definition"><strong>procedure:</strong> (least-fixnum)</dt>
     585<dd>
     586<p></p></dd>
     587<dt class="definition"><strong>procedure:</strong> (greatest-fixnum)</dt>
     588<dd>
     589<p></p></dd>
     590<dt class="definition"><strong>procedure:</strong> (fx=? FX ...)</dt>
     591<dd>
     592<p></p></dd>
     593<dt class="definition"><strong>procedure:</strong> (fx&lt;? FX ...)</dt>
     594<dd>
     595<p></p></dd>
     596<dt class="definition"><strong>procedure:</strong> (fx&gt;? FX ...)</dt>
     597<dd>
     598<p></p></dd>
     599<dt class="definition"><strong>procedure:</strong> (fx&lt;=? FX ...)</dt>
     600<dd>
     601<p></p></dd>
     602<dt class="definition"><strong>procedure:</strong> (fx&gt;=? FX ...)</dt>
     603<dd>
     604<p></p></dd>
     605<dt class="definition"><strong>procedure:</strong> (fxzero? FX)</dt>
     606<dd>
     607<p></p></dd>
     608<dt class="definition"><strong>procedure:</strong> (fxpositive? FX)</dt>
     609<dd>
     610<p></p></dd>
     611<dt class="definition"><strong>procedure:</strong> (fxnegative? FX)</dt>
     612<dd>
     613<p></p></dd>
     614<dt class="definition"><strong>procedure:</strong> (fxodd? FX)</dt>
     615<dd>
     616<p></p></dd>
     617<dt class="definition"><strong>procedure:</strong> (fxeven? FX)</dt>
     618<dd>
     619<p></p></dd>
     620<dt class="definition"><strong>procedure:</strong> (*fxmax FX ...)</dt>
     621<dd>
     622<p></p></dd>
     623<dt class="definition"><strong>procedure:</strong> (*fxmin FX ...)</dt>
     624<dd>
     625<p></p></dd>
     626<dt class="definition"><strong>procedure:</strong> (fxdiv-and-mod FX-N FX-D)</dt>
     627<dd>
     628<p></p></dd>
     629<dt class="definition"><strong>procedure:</strong> (fxarithmetic-shift FX DIRECTIONAL-AMOUNT)</dt>
     630<dd>
     631<p></p></dd>
     632<dt class="definition"><strong>procedure:</strong> (fxarithmetic-shift-left FX AMOUNT)</dt>
     633<dd>
     634<p></p></dd>
     635<dt class="definition"><strong>procedure:</strong> (fxarithmetic-shift-right FX AMOUNT)</dt>
     636<dd>
     637<p></p></dd>
     638<dt class="definition"><strong>procedure:</strong> (*fx- FX [FX2])</dt>
     639<dd>
     640<p></p></dd>
     641<dt class="definition"><strong>procedure:</strong> (*fxand FX ...)</dt>
     642<dd>
     643<p></p></dd>
     644<dt class="definition"><strong>procedure:</strong> (*fxior FX ...)</dt>
     645<dd>
     646<p></p></dd>
     647<dt class="definition"><strong>procedure:</strong> (*fxxor FX ...)</dt>
     648<dd>
     649<p></p></dd>
     650<dt class="definition"><strong>procedure:</strong> (fxif MASK TRUE FALSE)</dt>
     651<dd>
     652<p></p></dd>
     653<dt class="definition"><strong>procedure:</strong> (fxbit-count FX)</dt>
     654<dd>
     655<p></p></dd>
     656<dt class="definition"><strong>procedure:</strong> (fxlength FX)</dt>
     657<dd>
     658<p></p></dd>
     659<dt class="definition"><strong>procedure:</strong> (fxfirst-bit-set FX)</dt>
     660<dd>
     661<p></p></dd>
     662<dt class="definition"><strong>procedure:</strong> (fxlast-bit-set FX)</dt>
     663<dd>
     664<p></p></dd>
     665<dt class="definition"><strong>procedure:</strong> (fxbit-set? FX INDEX)</dt>
     666<dd>
     667<p></p></dd>
     668<dt class="definition"><strong>procedure:</strong> (fxcopy-bit FX INDEX BIT)</dt>
     669<dd>
     670<p></p></dd>
     671<dt class="definition"><strong>procedure:</strong> (fxbit-field FX START END)</dt>
     672<dd>
     673<p></p></dd>
     674<dt class="definition"><strong>procedure:</strong> (fxcopy-bit-field FX-TO START END FX-FROM)</dt>
     675<dd>
     676<p></p></dd>
     677<dt class="definition"><strong>procedure:</strong> (fxrotate-bit-field FX START END COUNT)</dt>
     678<dd>
     679<p></p></dd>
     680<dt class="definition"><strong>procedure:</strong> (fxreverse-bit-field FX START END)</dt>
     681<dd>
     682<p></p></dd></div>
    581683<div class="subsection">
    582684<h4>Flonum Procedures</h4>
    583685<div class="section">
    584 <h3>Usage</h3>(require-extension flonum-extras)</div></div>
     686<h3>Usage</h3>(require-extension flonum-extras)</div>
     687<dt class="definition"><strong>procedure:</strong> (real-&gt;flonum VALUE)</dt>
     688<dd>
     689<p></p></dd>
     690<dt class="definition"><strong>procedure:</strong> (fixnum-&gt;flonum VALUE)</dt>
     691<dd>
     692<p></p></dd>
     693<dt class="definition"><strong>procedure:</strong> (fl=? FL ...)</dt>
     694<dd>
     695<p></p></dd>
     696<dt class="definition"><strong>procedure:</strong> (fl&lt;? FL ...)</dt>
     697<dd>
     698<p></p></dd>
     699<dt class="definition"><strong>procedure:</strong> (fl&gt;? FL ...)</dt>
     700<dd>
     701<p></p></dd>
     702<dt class="definition"><strong>procedure:</strong> (fl&lt;=? FL ...)</dt>
     703<dd>
     704<p></p></dd>
     705<dt class="definition"><strong>procedure:</strong> (fl&gt;=? FL ...)</dt>
     706<dd>
     707<p></p></dd>
     708<dt class="definition"><strong>procedure:</strong> (flinteger? FL)</dt>
     709<dd>
     710<p></p></dd>
     711<dt class="definition"><strong>procedure:</strong> (flzero? FL)</dt>
     712<dd>
     713<p></p></dd>
     714<dt class="definition"><strong>procedure:</strong> (flpositive? FL)</dt>
     715<dd>
     716<p></p></dd>
     717<dt class="definition"><strong>procedure:</strong> (flnegative? FL)</dt>
     718<dd>
     719<p></p></dd>
     720<dt class="definition"><strong>procedure:</strong> (flodd? FL)</dt>
     721<dd>
     722<p></p></dd>
     723<dt class="definition"><strong>procedure:</strong> (fleven? FL)</dt>
     724<dd>
     725<p></p></dd>
     726<dt class="definition"><strong>procedure:</strong> (flfinite? FL)</dt>
     727<dd>
     728<p></p></dd>
     729<dt class="definition"><strong>procedure:</strong> (flinfinite? FL)</dt>
     730<dd>
     731<p></p></dd>
     732<dt class="definition"><strong>procedure:</strong> (flnan? FL)</dt>
     733<dd>
     734<p></p></dd>
     735<dt class="definition"><strong>procedure:</strong> (fl+ FL ...)</dt>
     736<dd>
     737<p></p></dd>
     738<dt class="definition"><strong>procedure:</strong> (fl* FL ...)</dt>
     739<dd>
     740<p></p></dd>
     741<dt class="definition"><strong>procedure:</strong> (fl- FL ...)</dt>
     742<dd>
     743<p></p></dd>
     744<dt class="definition"><strong>procedure:</strong> (fl/ FL ...)</dt>
     745<dd>
     746<p></p></dd>
     747<dt class="definition"><strong>procedure:</strong> (flmax FL ...)</dt>
     748<dd>
     749<p></p></dd>
     750<dt class="definition"><strong>procedure:</strong> (flmin FL ...)</dt>
     751<dd>
     752<p></p></dd>
     753<dt class="definition"><strong>procedure:</strong> (flabs FL)</dt>
     754<dd>
     755<p></p></dd>
     756<dt class="definition"><strong>procedure:</strong> (flfraction FL)</dt>
     757<dd>
     758<p></p></dd>
     759<dt class="definition"><strong>procedure:</strong> (fltruncate FL)</dt>
     760<dd>
     761<p></p></dd>
     762<dt class="definition"><strong>procedure:</strong> (flfloor FL)</dt>
     763<dd>
     764<p></p></dd>
     765<dt class="definition"><strong>procedure:</strong> (flceiling FL)</dt>
     766<dd>
     767<p></p></dd>
     768<dt class="definition"><strong>procedure:</strong> (flround FL)</dt>
     769<dd>
     770<p></p></dd>
     771<dt class="definition"><strong>procedure:</strong> (fldiv FL-N FL-D)</dt>
     772<dd>
     773<p></p></dd>
     774<dt class="definition"><strong>procedure:</strong> (flmod FL-N FL-D)</dt>
     775<dd>
     776<p></p></dd>
     777<dt class="definition"><strong>procedure:</strong> (fldiv-and-mod FL-N FL-D)</dt>
     778<dd>
     779<p></p></dd>
     780<dt class="definition"><strong>procedure:</strong> (flexp FL)</dt>
     781<dd>
     782<p></p></dd>
     783<dt class="definition"><strong>procedure:</strong> (fllog FL [BASE])</dt>
     784<dd>
     785<p></p></dd>
     786<dt class="definition"><strong>procedure:</strong> (flsin FL)</dt>
     787<dd>
     788<p></p></dd>
     789<dt class="definition"><strong>procedure:</strong> (flcos FL)</dt>
     790<dd>
     791<p></p></dd>
     792<dt class="definition"><strong>procedure:</strong> (fltan FL)</dt>
     793<dd>
     794<p></p></dd>
     795<dt class="definition"><strong>procedure:</strong> (flasin FL)</dt>
     796<dd>
     797<p></p></dd>
     798<dt class="definition"><strong>procedure:</strong> (flacos FL)</dt>
     799<dd>
     800<p></p></dd>
     801<dt class="definition"><strong>procedure:</strong> (flatan FL [FL2])</dt>
     802<dd>
     803<p></p></dd>
     804<dt class="definition"><strong>procedure:</strong> (flsqrt FL)</dt>
     805<dd>
     806<p></p></dd>
     807<dt class="definition"><strong>procedure:</strong> (flexpt FL EXP)</dt>
     808<dd>
     809<p></p></dd></div>
    585810<div class="subsection">
    586811<h4>Bitwise Procedures</h4>
     
    638863<dt class="definition"><strong>procedure:</strong> (bitwise-integer-&gt;list VALUE [LENGTH])</dt>
    639864<dd>
    640 <p>Converts integer to list of boolean, least-significant to most-significant.</p></dd></div></div>
     865<p>Converts integer to list of boolean, least-significant to most-significant.</p></dd>
     866<dt class="definition"><strong>procedure:</strong> (bitwise-arithmetic-shift VALUE DIRECTIONAL-AMOUNT)</dt>
     867<dd>
     868<p><code>(arithmetic-shift VALUE DIRECTIONAL-AMOUNT)</code></p></dd>
     869<dt class="definition"><strong>procedure:</strong> (bitwise-arithmetic-shift-left VALUE AMOUNT)</dt>
     870<dd>
     871<p><code>(arithmetic-shift VALUE AMOUNT)</code></p></dd>
     872<dt class="definition"><strong>procedure:</strong> (bitwise-arithmetic-shift-right VALUE AMOUNT)</dt>
     873<dd>
     874<p><code>(arithmetic-shift VALUE (- AMOUNT))</code></p></dd></div></div>
    641875<div class="section">
    642876<h3>Version</h3>
    643877<ul>
    644 <li>1.10 Cygwin compile fix. Removed &quot;count-set-bits&quot; &amp; &quot;count-unset-bits&quot;. [Kon Lovett]</li>
     878<li>1.10 Cygwin compile fix. Added &quot;fixnum/flonum/bitwise-extras&quot;. Removed &quot;count-set-bits&quot; &amp; &quot;count-unset-bits&quot;. [Kon Lovett]</li>
    645879<li>1.903 Added C int &amp; float types. [Kon Lovett]</li>
    646880<li>1.9.2 Added log1p (approx.) for Windows, scalbn. Native log2 for linux/macosx/bsd. [Kon Lovett]</li>
Note: See TracChangeset for help on using the changeset viewer.