~ubuntu-branches/ubuntu/quantal/gclcvs/quantal

« back to all changes in this revision

Viewing changes to info/number.texi

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2004-06-24 15:13:46 UTC
  • Revision ID: james.westby@ubuntu.com-20040624151346-xh0xaaktyyp7aorc
Tags: 2.7.0-26
C_GC_OFFSET is 2 on m68k-linux

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
@node Numbers, Sequences and Arrays and Hash Tables, Top, Top
 
2
@chapter Numbers
 
3
 
 
4
 
 
5
@defun SIGNUM (number)
 
6
Package:LISP
 
7
 
 
8
If NUMBER is zero, returns NUMBER; else returns (/ NUMBER (ABS NUMBER)).
 
9
 
 
10
 
 
11
@end defun
 
12
 
 
13
@defun LOGNOT (integer)
 
14
Package:LISP
 
15
 
 
16
Returns the bit-wise logical NOT of INTEGER.
 
17
 
 
18
 
 
19
@end defun
 
20
 
 
21
@defvr {Constant} MOST-POSITIVE-SHORT-FLOAT 
 
22
Package:LISP
 
23
The short-float closest in value to positive infinity.
 
24
 
 
25
 
 
26
@end defvr
 
27
 
 
28
@defun INTEGER-DECODE-FLOAT (float)
 
29
Package:LISP
 
30
 
 
31
Returns, as three values, the integer interpretation of significand F,
 
32
the exponent E, and the sign S of the given float, so that
 
33
                         E
 
34
        FLOAT = S * F * B       where B = (FLOAT-RADIX FLOAT)
 
35
 
 
36
F is a non-negative integer, E is an integer, and S is either 1 or -1.
 
37
 
 
38
 
 
39
@end defun
 
40
 
 
41
@defun MINUSP (number)
 
42
Package:LISP
 
43
 
 
44
Returns T if NUMBER < 0; NIL otherwise.
 
45
 
 
46
 
 
47
@end defun
 
48
 
 
49
@defun LOGORC1 (integer1 integer2)
 
50
Package:LISP
 
51
 
 
52
Returns the logical OR of (LOGNOT INTEGER1) and INTEGER2.
 
53
 
 
54
 
 
55
@end defun
 
56
 
 
57
@defvr {Constant} MOST-NEGATIVE-SINGLE-FLOAT 
 
58
Package:LISP
 
59
Same as MOST-NEGATIVE-LONG-FLOAT.
 
60
 
 
61
 
 
62
@end defvr
 
63
 
 
64
@defvr {Constant} BOOLE-C1 
 
65
Package:LISP
 
66
Makes BOOLE return the complement of INTEGER1.
 
67
 
 
68
 
 
69
@end defvr
 
70
 
 
71
@defvr {Constant} LEAST-POSITIVE-SHORT-FLOAT 
 
72
Package:LISP
 
73
The positive short-float closest in value to zero.
 
74
 
 
75
 
 
76
@end defvr
 
77
 
 
78
@defun BIT-NAND (bit-array1 bit-array2 &optional (result-bit-array nil))
 
79
Package:LISP
 
80
 
 
81
Performs a bit-wise logical NAND  on the elements of BIT-ARRAY1 and
 
82
BIT-ARRAY2.
 
83
Puts the results into a new bit array if RESULT-BIT-ARRAY is NIL, into
 
84
BIT-ARRAY1 if RESULT-BIT-ARRAY is T, or into RESULT-BIT-ARRAY otherwise.
 
85
 
 
86
@end defun
 
87
 
 
88
@defun INT-CHAR (integer)
 
89
Package:LISP
 
90
 
 
91
Performs the inverse of CHAR-INT.  Equivalent to CODE-CHAR in GCL.
 
92
 
 
93
 
 
94
@end defun
 
95
 
 
96
@defun CHAR-INT (char)
 
97
Package:LISP
 
98
 
 
99
Returns the font, bits, and code attributes as a single non-negative integer.
 
100
Equivalent to CHAR-CODE in GCL.
 
101
 
 
102
 
 
103
@end defun
 
104
 
 
105
@defvr {Constant} LEAST-NEGATIVE-SINGLE-FLOAT 
 
106
Package:LISP
 
107
Same as LEAST-NEGATIVE-LONG-FLOAT.
 
108
 
 
109
 
 
110
@end defvr
 
111
 
 
112
@defun /= (number &rest more-numbers)
 
113
Package:LISP
 
114
 
 
115
Returns T if no two of its arguments are numerically equal; NIL otherwise.
 
116
 
 
117
 
 
118
@end defun
 
119
 
 
120
@defun LDB-TEST (bytespec integer)
 
121
Package:LISP
 
122
 
 
123
Returns T if at least one of the bits in the specified bytes of INTEGER is 1;
 
124
NIL otherwise.
 
125
 
 
126
 
 
127
@end defun
 
128
 
 
129
@defvr {Constant} CHAR-CODE-LIMIT 
 
130
Package:LISP
 
131
The upper exclusive bound on values produced by CHAR-CODE.
 
132
 
 
133
 
 
134
@end defvr
 
135
 
 
136
@defun RATIONAL (number)
 
137
Package:LISP
 
138
 
 
139
Converts NUMBER into rational accurately and returns it.
 
140
 
 
141
 
 
142
@end defun
 
143
 
 
144
@defvr {Constant} PI 
 
145
Package:LISP
 
146
The floating-point number that is appropriately equal to the ratio of the
 
147
circumference of the circle to the diameter.
 
148
 
 
149
 
 
150
@end defvr
 
151
 
 
152
@defun SIN (radians)
 
153
Package:LISP
 
154
 
 
155
Returns the sine of RADIANS.
 
156
 
 
157
 
 
158
@end defun
 
159
 
 
160
@defvr {Constant} BOOLE-ORC2 
 
161
Package:LISP
 
162
Makes BOOLE return LOGORC2 of INTEGER1 and INTEGER2.
 
163
 
 
164
 
 
165
@end defvr
 
166
 
 
167
@defun NUMERATOR (rational)
 
168
Package:LISP
 
169
 
 
170
Returns as an integer the numerator of the given rational number.
 
171
 
 
172
 
 
173
@end defun
 
174
 
 
175
@defun MASK-FIELD (bytespec integer)
 
176
Package:LISP
 
177
 
 
178
Extracts the specified byte from INTEGER.
 
179
 
 
180
 
 
181
@end defun
 
182
 
 
183
@deffn {Special Form} INCF 
 
184
Package:LISP
 
185
 
 
186
Syntax:
 
187
@example
 
188
(incf place [delta])
 
189
@end example
 
190
 
 
191
Adds the number produced by DELTA (which defaults to 1) to the number
 
192
in PLACE.
 
193
 
 
194
 
 
195
@end deffn
 
196
 
 
197
@defun SINH (number)
 
198
Package:LISP
 
199
 
 
200
Returns the hyperbolic sine of NUMBER.
 
201
 
 
202
 
 
203
@end defun
 
204
 
 
205
@defun PHASE (number)
 
206
Package:LISP
 
207
 
 
208
Returns the angle part of the polar representation of a complex number.
 
209
For non-complex numbers, this is 0.
 
210
 
 
211
 
 
212
@end defun
 
213
 
 
214
@defun BOOLE (op integer1 integer2)
 
215
Package:LISP
 
216
 
 
217
Returns an integer produced by performing the logical operation specified by
 
218
OP on the two integers.  OP must be the value of one of the following
 
219
constants:
 
220
        BOOLE-CLR       BOOLE-C1        BOOLE-XOR       BOOLE-ANDC1
 
221
        BOOLE-SET       BOOLE-C2        BOOLE-EQV       BOOLE-ANDC2
 
222
        BOOLE-1         BOOLE-AND       BOOLE-NAND      BOOLE-ORC1
 
223
        BOOLE-2         BOOLE-IOR       BOOLE-NOR       BOOLE-ORC2
 
224
See the variable docs of these constants for their operations.
 
225
 
 
226
 
 
227
@end defun
 
228
 
 
229
@defvr {Constant} SHORT-FLOAT-EPSILON 
 
230
Package:LISP
 
231
The smallest positive short-float that satisfies
 
232
        (not (= (float 1 e) (+ (float 1 e) e))).
 
233
 
 
234
 
 
235
@end defvr
 
236
 
 
237
@defun LOGORC2 (integer1 integer2)
 
238
Package:LISP
 
239
 
 
240
Returns the logical OR of INTEGER1 and (LOGNOT INTEGER2).
 
241
 
 
242
 
 
243
@end defun
 
244
 
 
245
@defvr {Constant} BOOLE-C2 
 
246
Package:LISP
 
247
Makes BOOLE return the complement of INTEGER2.
 
248
 
 
249
 
 
250
@end defvr
 
251
 
 
252
@defun REALPART (number)
 
253
Package:LISP
 
254
 
 
255
Extracts the real part of NUMBER.
 
256
 
 
257
 
 
258
@end defun
 
259
 
 
260
 
 
261
@defvr {Constant} BOOLE-CLR 
 
262
Package:LISP
 
263
Makes BOOLE return 0.
 
264
 
 
265
 
 
266
@end defvr
 
267
 
 
268
@defvr {Constant} BOOLE-IOR 
 
269
Package:LISP
 
270
Makes BOOLE return LOGIOR of INTEGER1 and INTEGER2.
 
271
 
 
272
 
 
273
@end defvr
 
274
 
 
275
@defun FTRUNCATE (number &optional (divisor 1))
 
276
Package:LISP
 
277
 
 
278
Values: (quotient remainder)
 
279
Same as TRUNCATE, but returns first value as a float.
 
280
 
 
281
 
 
282
@end defun
 
283
 
 
284
@defun EQL (x y)
 
285
Package:LISP
 
286
 
 
287
Returns T if X and Y are EQ, or if they are numbers of the same type with
 
288
the same value, or if they are character objects that represent the same
 
289
character.  Returns NIL otherwise.
 
290
 
 
291
 
 
292
@end defun
 
293
 
 
294
@defun LOG (number &optional base)
 
295
Package:LISP
 
296
 
 
297
Returns the logarithm of NUMBER in the base BASE.  BASE defaults to the base
 
298
of natural logarithms.
 
299
 
 
300
 
 
301
@end defun
 
302
 
 
303
@defvr {Constant} DOUBLE-FLOAT-NEGATIVE-EPSILON 
 
304
Package:LISP
 
305
Same as LONG-FLOAT-NEGATIVE-EPSILON.
 
306
 
 
307
 
 
308
@end defvr
 
309
 
 
310
@defun LOGIOR (&rest integers)
 
311
Package:LISP
 
312
 
 
313
Returns the bit-wise INCLUSIVE OR of its arguments.
 
314
 
 
315
 
 
316
@end defun
 
317
 
 
318
@defvr {Constant} MOST-NEGATIVE-DOUBLE-FLOAT 
 
319
Package:LISP
 
320
Same as MOST-NEGATIVE-LONG-FLOAT.
 
321
 
 
322
 
 
323
@end defvr
 
324
 
 
325
@defun / (number &rest more-numbers)
 
326
Package:LISP
 
327
 
 
328
Divides the first NUMBER by each of the subsequent NUMBERS.
 
329
With one arg, returns the reciprocal of the number.
 
330
 
 
331
 
 
332
@end defun
 
333
 
 
334
@defvar *RANDOM-STATE* 
 
335
Package:LISP
 
336
The default random-state object used by RAMDOM.
 
337
 
 
338
 
 
339
@end defvar
 
340
 
 
341
@defun 1+ (number)
 
342
Package:LISP
 
343
 
 
344
Returns NUMBER + 1.
 
345
 
 
346
 
 
347
@end defun
 
348
 
 
349
@defvr {Constant} LEAST-NEGATIVE-DOUBLE-FLOAT 
 
350
Package:LISP
 
351
Same as LEAST-NEGATIVE-LONG-FLOAT.
 
352
 
 
353
 
 
354
@end defvr
 
355
 
 
356
@defun FCEILING (number &optional (divisor 1))
 
357
Package:LISP
 
358
 
 
359
Same as CEILING, but returns a float as the first value.
 
360
 
 
361
 
 
362
@end defun
 
363
 
 
364
@defvr {Constant} MOST-POSITIVE-FIXNUM 
 
365
Package:LISP
 
366
The fixnum closest in value to positive infinity.
 
367
 
 
368
 
 
369
@end defvr
 
370
 
 
371
@defun BIT-ANDC1 (bit-array1 bit-array2 &optional (result-bit-array nil))
 
372
Package:LISP
 
373
 
 
374
Performs a bit-wise logical ANDC1 on the elements of BIT-ARRAY1 and
 
375
BIT-ARRAY2.
 
376
Puts the results into a new bit array if RESULT-BIT-ARRAY is NIL, into
 
377
BIT-ARRAY1 if RESULT-BIT-ARRAY is T, or into RESULT-BIT-ARRAY otherwise.
 
378
 
 
379
 
 
380
@end defun
 
381
 
 
382
@defun TAN (radians)
 
383
Package:LISP
 
384
 
 
385
Returns the tangent of RADIANS.
 
386
 
 
387
 
 
388
@end defun
 
389
 
 
390
@defvr {Constant} BOOLE-NAND 
 
391
Package:LISP
 
392
Makes BOOLE return LOGNAND of INTEGER1 and INTEGER2.
 
393
 
 
394
 
 
395
@end defvr
 
396
 
 
397
@defun TANH (number)
 
398
Package:LISP
 
399
 
 
400
Returns the hyperbolic tangent of NUMBER.
 
401
 
 
402
 
 
403
@end defun
 
404
 
 
405
@defun ASIN (number)
 
406
Package:LISP
 
407
 
 
408
Returns the arc sine of NUMBER.
 
409
 
 
410
 
 
411
@end defun
 
412
 
 
413
@defun BYTE (size position)
 
414
Package:LISP
 
415
 
 
416
Returns a byte specifier.  In GCL, a byte specifier is represented by
 
417
a dotted pair (<size> . <position>).
 
418
 
 
419
 
 
420
@end defun
 
421
 
 
422
@defun ASINH (number)
 
423
Package:LISP
 
424
 
 
425
Returns the hyperbolic arc sine of NUMBER.
 
426
 
 
427
 
 
428
@end defun
 
429
 
 
430
@defvr {Constant} MOST-POSITIVE-LONG-FLOAT 
 
431
Package:LISP
 
432
The long-float closest in value to positive infinity.
 
433
 
 
434
 
 
435
@end defvr
 
436
 
 
437
@deffn {Macro} SHIFTF 
 
438
Package:LISP
 
439
 
 
440
Syntax:
 
441
@example
 
442
(shiftf @{place@}+ newvalue)
 
443
@end example
 
444
 
 
445
Evaluates all PLACEs and NEWVALUE in turn, then assigns the value of each
 
446
form to the PLACE on its left.  Returns the original value of the leftmost
 
447
form.
 
448
 
 
449
 
 
450
@end deffn
 
451
 
 
452
@defvr {Constant} LEAST-POSITIVE-LONG-FLOAT 
 
453
Package:LISP
 
454
The positive long-float closest in value to zero.
 
455
 
 
456
 
 
457
@end defvr
 
458
 
 
459
@defun DEPOSIT-FIELD (newbyte bytespec integer)
 
460
Package:LISP
 
461
 
 
462
Returns an integer computed by replacing the specified byte of INTEGER with
 
463
the specified byte of NEWBYTE.
 
464
 
 
465
 
 
466
@end defun
 
467
 
 
468
@defun BIT-AND (bit-array1 bit-array2 &optional (result-bit-array nil))
 
469
Package:LISP
 
470
 
 
471
Performs a bit-wise logical AND on the elements of BIT-ARRAY1 and BIT-ARRAY2.
 
472
Puts the results into a new bit array if RESULT-BIT-ARRAY is NIL, into
 
473
BIT-ARRAY1 if RESULT-BIT-ARRAY is T, or into RESULT-BIT-ARRAY otherwise.
 
474
 
 
475
 
 
476
@end defun
 
477
 
 
478
@defun LOGNAND (integer1 integer2)
 
479
Package:LISP
 
480
 
 
481
Returns the complement of the logical AND of INTEGER1 and INTEGER2.
 
482
 
 
483
 
 
484
@end defun
 
485
 
 
486
@defun BYTE-POSITION (bytespec)
 
487
Package:LISP
 
488
 
 
489
Returns the position part (in GCL, the cdr part) of the byte specifier.
 
490
 
 
491
 
 
492
@end defun
 
493
 
 
494
@deffn {Macro} ROTATEF 
 
495
Package:LISP
 
496
 
 
497
Syntax:
 
498
@example
 
499
(rotatef @{place@}*)
 
500
@end example
 
501
 
 
502
Evaluates PLACEs in turn, then assigns to each PLACE the value of the form to
 
503
its right.  The rightmost PLACE gets the value of the leftmost PLACE.
 
504
Returns NIL always.
 
505
 
 
506
 
 
507
@end deffn
 
508
 
 
509
@defun BIT-ANDC2 (bit-array1 bit-array2 &optional (result-bit-array nil))
 
510
Package:LISP
 
511
 
 
512
Performs a bit-wise logical ANDC2 on the elements of BIT-ARRAY1 and
 
513
BIT-ARRAY2.
 
514
Puts the results into a new bit array if RESULT-BIT-ARRAY is NIL, into
 
515
BIT-ARRAY1 if RESULT-BIT-ARRAY is T, or into RESULT-BIT-ARRAY otherwise.
 
516
 
 
517
 
 
518
@end defun
 
519
 
 
520
@defun TRUNCATE (number &optional (divisor 1))
 
521
Package:LISP
 
522
 
 
523
Values: (quotient remainder)
 
524
Returns NUMBER/DIVISOR as an integer, rounded toward 0.  The second returned
 
525
value is the remainder.
 
526
 
 
527
 
 
528
@end defun
 
529
 
 
530
@defvr {Constant} BOOLE-EQV 
 
531
Package:LISP
 
532
Makes BOOLE return LOGEQV of INTEGER1 and INTEGER2.
 
533
 
 
534
 
 
535
@end defvr
 
536
 
 
537
@defvr {Constant} BOOLE-SET 
 
538
Package:LISP
 
539
Makes BOOLE return -1.
 
540
 
 
541
 
 
542
@end defvr
 
543
 
 
544
@defun LDB (bytespec integer)
 
545
Package:LISP
 
546
 
 
547
Extracts and right-justifies the specified byte of INTEGER, and returns the
 
548
result.
 
549
 
 
550
 
 
551
@end defun
 
552
 
 
553
@defun BYTE-SIZE (bytespec)
 
554
Package:LISP
 
555
 
 
556
Returns the size part (in GCL, the car part) of the byte specifier.
 
557
 
 
558
 
 
559
@end defun
 
560
 
 
561
@defvr {Constant} SHORT-FLOAT-NEGATIVE-EPSILON 
 
562
Package:LISP
 
563
The smallest positive short-float that satisfies
 
564
        (not (= (float 1 e) (- (float 1 e) e))).
 
565
 
 
566
 
 
567
@end defvr
 
568
 
 
569
@defun REM (number divisor)
 
570
Package:LISP
 
571
 
 
572
Returns the second value of (TRUNCATE NUMBER DIVISOR).
 
573
 
 
574
 
 
575
@end defun
 
576
 
 
577
@defun MIN (number &rest more-numbers)
 
578
Package:LISP
 
579
 
 
580
Returns the least of its arguments.
 
581
 
 
582
 
 
583
@end defun
 
584
 
 
585
@defun EXP (number)
 
586
Package:LISP
 
587
 
 
588
Calculates e raised to the power NUMBER, where e is the base of natural
 
589
logarithms.
 
590
 
 
591
 
 
592
@end defun
 
593
 
 
594
@defun DECODE-FLOAT (float)
 
595
Package:LISP
 
596
 
 
597
Returns, as three values, the significand F, the exponent E, and the sign S
 
598
of the given float, so that
 
599
                         E
 
600
        FLOAT = S * F * B       where B = (FLOAT-RADIX FLOAT)
 
601
 
 
602
S and F are floating-point numbers of the same float format as FLOAT, and E
 
603
is an integer.
 
604
 
 
605
 
 
606
 
 
607
@end defun
 
608
 
 
609
@defvr {Constant} LONG-FLOAT-EPSILON 
 
610
Package:LISP
 
611
The smallest positive long-float that satisfies
 
612
        (not (= (float 1 e) (+ (float 1 e) e))).
 
613
 
 
614
 
 
615
@end defvr
 
616
 
 
617
@defun FROUND (number &optional (divisor 1))
 
618
Package:LISP
 
619
 
 
620
Same as ROUND, but returns first value as a float.
 
621
 
 
622
 
 
623
@end defun
 
624
 
 
625
@defun LOGEQV (&rest integers)
 
626
Package:LISP
 
627
 
 
628
Returns the bit-wise EQUIVALENCE of its arguments.
 
629
 
 
630
 
 
631
@end defun
 
632
 
 
633
@defvr {Constant} MOST-NEGATIVE-SHORT-FLOAT 
 
634
Package:LISP
 
635
The short-float closest in value to negative infinity.
 
636
 
 
637
 
 
638
@end defvr
 
639
 
 
640
@defun BIT-NOR (bit-array1 bit-array2 &optional (result-bit-array nil))
 
641
Package:LISP
 
642
 
 
643
Performs a bit-wise logical NOR  on the elements of BIT-ARRAY1 and BIT-ARRAY2.
 
644
Puts the results into a new bit array if RESULT-BIT-ARRAY is NIL, into
 
645
BIT-ARRAY1 if RESULT-BIT-ARRAY is T, or into RESULT-BIT-ARRAY otherwise.
 
646
 
 
647
 
 
648
@end defun
 
649
 
 
650
@defun CEILING (number &optional (divisor 1))
 
651
Package:LISP
 
652
 
 
653
Returns the smallest integer not less than or NUMBER/DIVISOR.  Returns the
 
654
remainder as the second value.
 
655
 
 
656
 
 
657
@end defun
 
658
 
 
659
@defvr {Constant} LEAST-NEGATIVE-SHORT-FLOAT 
 
660
Package:LISP
 
661
The negative short-float closest in value to zero.
 
662
 
 
663
 
 
664
@end defvr
 
665
 
 
666
@defun 1- (number)
 
667
Package:LISP
 
668
 
 
669
Returns NUMBER - 1.
 
670
 
 
671
 
 
672
@end defun
 
673
 
 
674
@defun <= (number &rest more-numbers)
 
675
Package:LISP
 
676
 
 
677
Returns T if arguments are in strictly non-decreasing order; NIL otherwise.
 
678
 
 
679
 
 
680
@end defun
 
681
 
 
682
@defun IMAGPART (number)
 
683
Package:LISP
 
684
 
 
685
Extracts the imaginary part of NUMBER.
 
686
 
 
687
 
 
688
@end defun
 
689
 
 
690
@defun INTEGERP (x)
 
691
Package:LISP
 
692
 
 
693
Returns T if X is an integer (fixnum or bignum); NIL otherwise.
 
694
 
 
695
 
 
696
@end defun
 
697
 
 
698
@defun ASH (integer count)
 
699
Package:LISP
 
700
 
 
701
Shifts INTEGER left by COUNT places.  Shifts right if COUNT is negative.
 
702
 
 
703
 
 
704
@end defun
 
705
 
 
706
@defun LCM (integer &rest more-integers)
 
707
Package:LISP
 
708
 
 
709
Returns the least common multiple of the arguments.
 
710
 
 
711
 
 
712
@end defun
 
713
 
 
714
@defun COS (radians)
 
715
Package:LISP
 
716
 
 
717
Returns the cosine of RADIANS.
 
718
 
 
719
 
 
720
@end defun
 
721
 
 
722
@deffn {Special Form} DECF 
 
723
Package:LISP
 
724
 
 
725
Syntax:
 
726
@example
 
727
(decf place [delta])
 
728
@end example
 
729
Subtracts the number
 
730
produced by DELTA (which defaults to 1) from the number in
 
731
PLACE.
 
732
 
 
733
 
 
734
@end deffn
 
735
 
 
736
@defun ATAN (x &optional (y 1))
 
737
Package:LISP
 
738
 Returns the arc tangent of
 
739
X/Y.
 
740
 
 
741
 
 
742
@end defun
 
743
 
 
744
@defvr {Constant} BOOLE-ANDC1 
 
745
Package:LISP
 
746
Makes BOOLE return LOGANDC1 of INTEGER1 and INTEGER2.
 
747
 
 
748
 
 
749
@end defvr
 
750
 
 
751
@defun COSH (number)
 
752
Package:LISP
 
753
 Returns the hyperbolic cosine of
 
754
NUMBER.
 
755
 
 
756
 
 
757
@end defun
 
758
 
 
759
@defun FLOAT-RADIX  (float)
 
760
Package:LISP
 
761
 
 
762
Returns the representation radix (or base) of the floating-point
 
763
number.
 
764
 
 
765
 
 
766
@end defun
 
767
 
 
768
@defun ATANH  (number)
 
769
Package:LISP
 
770
 
 
771
Returns the hyperbolic arc tangent of NUMBER.
 
772
 
 
773
 
 
774
@end defun
 
775
 
 
776
@defun EVENP  (integer)
 
777
Package:LISP
 
778
 Returns T
 
779
if INTEGER is even.  Returns NIL if INTEGER is odd.
 
780
 
 
781
 
 
782
@end defun
 
783
 
 
784
@defun ZEROP (number)
 
785
Package:LISP
 
786
 Returns T if NUMBER = 0; NIL
 
787
otherwise.
 
788
 
 
789
 
 
790
@end defun
 
791
 
 
792
@defun FLOATP (x)
 
793
Package:LISP
 
794
 
 
795
Returns T if X is a floating-point number; NIL otherwise.
 
796
 
 
797
 
 
798
@end defun
 
799
 
 
800
@defun SXHASH (object)
 
801
Package:LISP
 
802
 
 
803
Computes a hash code for OBJECT and returns it as an integer.
 
804
 
 
805
 
 
806
@end defun
 
807
 
 
808
@defvr {Constant} BOOLE-1 
 
809
Package:LISP
 
810
Makes BOOLE return INTEGER1.
 
811
 
 
812
 
 
813
@end defvr
 
814
 
 
815
@defvr {Constant} MOST-POSITIVE-SINGLE-FLOAT 
 
816
Package:LISP
 
817
Same as MOST-POSITIVE-LONG-FLOAT.
 
818
 
 
819
 
 
820
@end defvr
 
821
 
 
822
@defun LOGANDC1 (integer1 integer2)
 
823
Package:LISP
 
824
 
 
825
Returns the logical AND of (LOGNOT INTEGER1) and INTEGER2.
 
826
 
 
827
 
 
828
@end defun
 
829
 
 
830
@defvr {Constant} LEAST-POSITIVE-SINGLE-FLOAT 
 
831
Package:LISP
 
832
Same as LEAST-POSITIVE-LONG-FLOAT.
 
833
 
 
834
 
 
835
@end defvr
 
836
 
 
837
@defun COMPLEXP (x)
 
838
Package:LISP
 
839
 
 
840
Returns T if X is a complex number; NIL otherwise.
 
841
 
 
842
 
 
843
@end defun
 
844
 
 
845
@defvr {Constant} BOOLE-AND 
 
846
Package:LISP
 
847
Makes BOOLE return LOGAND of INTEGER1 and INTEGER2.
 
848
 
 
849
 
 
850
@end defvr
 
851
 
 
852
@defun MAX (number &rest more-numbers)
 
853
Package:LISP
 
854
 
 
855
Returns the greatest of its arguments.
 
856
 
 
857
 
 
858
@end defun
 
859
 
 
860
@defun FLOAT-SIGN (float1 &optional (float2 (float 1 float1)))
 
861
Package:LISP
 
862
 
 
863
Returns a floating-point number with the same sign as FLOAT1 and with the
 
864
same absolute value as FLOAT2.
 
865
 
 
866
 
 
867
@end defun
 
868
 
 
869
@defvr {Constant} BOOLE-ANDC2 
 
870
Package:LISP
 
871
Makes BOOLE return LOGANDC2 of INTEGER1 and INTEGER2.
 
872
 
 
873
 
 
874
@end defvr
 
875
 
 
876
@defun DENOMINATOR (rational)
 
877
Package:LISP
 
878
 
 
879
Returns the denominator of RATIONAL as an integer.
 
880
 
 
881
 
 
882
@end defun
 
883
 
 
884
@defun FLOAT (number &optional other)
 
885
Package:LISP
 
886
 
 
887
Converts a non-complex number to a floating-point number.  If NUMBER is
 
888
already a float, FLOAT simply returns NUMBER.  Otherwise, the format of
 
889
the returned float depends on OTHER;  If OTHER is not provided, FLOAT returns
 
890
a SINGLE-FLOAT.  If OTHER is provided, the result is in the same float format
 
891
as OTHER's.
 
892
 
 
893
 
 
894
@end defun
 
895
 
 
896
@defun ROUND (number &optional (divisor 1))
 
897
Package:LISP
 
898
 
 
899
Rounds NUMBER/DIVISOR to nearest integer.  The second returned value is the
 
900
remainder.
 
901
 
 
902
 
 
903
@end defun
 
904
 
 
905
@defun LOGAND (&rest integers)
 
906
Package:LISP
 
907
 
 
908
Returns the bit-wise AND of its arguments.
 
909
 
 
910
 
 
911
@end defun
 
912
 
 
913
@defvr {Constant} BOOLE-2 
 
914
Package:LISP
 
915
Makes BOOLE return INTEGER2.
 
916
 
 
917
 
 
918
@end defvr
 
919
 
 
920
@defun * (&rest numbers)
 
921
Package:LISP
 
922
 
 
923
Returns the product of its arguments.  With no args, returns 1.
 
924
 
 
925
 
 
926
@end defun
 
927
 
 
928
@defun < (number &rest more-numbers)
 
929
Package:LISP
 
930
 
 
931
Returns T if its arguments are in strictly increasing order; NIL otherwise.
 
932
 
 
933
 
 
934
@end defun
 
935
 
 
936
@defun COMPLEX (realpart &optional (imagpart 0))
 
937
Package:LISP
 
938
 
 
939
Returns a complex number with the given real and imaginary parts.
 
940
 
 
941
 
 
942
@end defun
 
943
 
 
944
@defvr {Constant} SINGLE-FLOAT-EPSILON 
 
945
Package:LISP
 
946
Same as LONG-FLOAT-EPSILON.
 
947
 
 
948
 
 
949
@end defvr
 
950
 
 
951
@defun LOGANDC2 (integer1 integer2)
 
952
Package:LISP
 
953
 
 
954
Returns the logical AND of INTEGER1 and (LOGNOT INTEGER2).
 
955
 
 
956
 
 
957
@end defun
 
958
 
 
959
@defun INTEGER-LENGTH (integer)
 
960
Package:LISP
 
961
 
 
962
Returns the number of significant bits in the absolute value of INTEGER.
 
963
 
 
964
 
 
965
@end defun
 
966
 
 
967
@defvr {Constant} MOST-NEGATIVE-FIXNUM 
 
968
Package:LISP
 
969
The fixnum closest in value to negative infinity.
 
970
 
 
971
 
 
972
@end defvr
 
973
 
 
974
@defvr {Constant} LONG-FLOAT-NEGATIVE-EPSILON 
 
975
Package:LISP
 
976
The smallest positive long-float that satisfies
 
977
        (not (= (float 1 e) (- (float 1 e) e))).
 
978
 
 
979
 
 
980
@end defvr
 
981
 
 
982
@defun >= (number &rest more-numbers)
 
983
Package:LISP
 
984
 
 
985
Returns T if arguments are in strictly non-increasing order; NIL otherwise.
 
986
 
 
987
 
 
988
@end defun
 
989
 
 
990
@defvr {Constant} BOOLE-NOR 
 
991
Package:LISP
 
992
Makes BOOLE return LOGNOR of INTEGER1 and INTEGER2.
 
993
 
 
994
 
 
995
@end defvr
 
996
 
 
997
@defun ACOS (number)
 
998
Package:LISP
 
999
 
 
1000
Returns the arc cosine of NUMBER.
 
1001
 
 
1002
 
 
1003
@end defun
 
1004
 
 
1005
@defun MAKE-RANDOM-STATE (&optional (state *random-state*))
 
1006
Package:LISP
 
1007
 
 
1008
Creates and returns a copy of the specified random state.  If STATE is NIL,
 
1009
then the value of *RANDOM-STATE* is used.  If STATE is T, then returns a
 
1010
random state object generated from the universal time.
 
1011
 
 
1012
 
 
1013
@end defun
 
1014
 
 
1015
@defun EXPT (base-number power-number)
 
1016
Package:LISP
 
1017
 
 
1018
Returns BASE-NUMBER raised to the power POWER-NUMBER.
 
1019
 
 
1020
 
 
1021
@end defun
 
1022
 
 
1023
@defun SQRT (number)
 
1024
Package:LISP
 
1025
 
 
1026
Returns the principal square root of NUMBER.
 
1027
 
 
1028
 
 
1029
@end defun
 
1030
 
 
1031
@defun SCALE-FLOAT (float integer)
 
1032
Package:LISP
 
1033
 
 
1034
Returns (* FLOAT (expt (float-radix FLOAT) INTEGER)).
 
1035
 
 
1036
 
 
1037
@end defun
 
1038
 
 
1039
@defun ACOSH (number)
 
1040
Package:LISP
 
1041
 
 
1042
Returns the hyperbolic arc cosine of NUMBER.
 
1043
 
 
1044
 
 
1045
@end defun
 
1046
 
 
1047
@defvr {Constant} MOST-NEGATIVE-LONG-FLOAT 
 
1048
Package:LISP
 
1049
The long-float closest in value to negative infinity.
 
1050
 
 
1051
 
 
1052
@end defvr
 
1053
 
 
1054
@defvr {Constant} LEAST-NEGATIVE-LONG-FLOAT 
 
1055
Package:LISP
 
1056
The negative long-float closest in value to zero.
 
1057
 
 
1058
 
 
1059
@end defvr
 
1060
 
 
1061
@defun FFLOOR (number &optional (divisor 1))
 
1062
Package:LISP
 
1063
 
 
1064
Same as FLOOR, but returns a float as the first value.
 
1065
 
 
1066
 
 
1067
@end defun
 
1068
 
 
1069
@defun LOGNOR (integer1 integer2)
 
1070
Package:LISP
 
1071
 
 
1072
Returns the complement of the logical OR of INTEGER1 and INTEGER2.
 
1073
 
 
1074
 
 
1075
@end defun
 
1076
 
 
1077
@defun PARSE-INTEGER (string &key (start 0) (end (length string)) (radix 10) (junk-allowed nil))
 
1078
Package:LISP
 
1079
 
 
1080
Parses STRING for an integer and returns it.
 
1081
 
 
1082
 
 
1083
@end defun
 
1084
 
 
1085
@defun + (&rest numbers)
 
1086
Package:LISP
 
1087
 
 
1088
Returns the sum of its arguments.  With no args, returns 0.
 
1089
 
 
1090
 
 
1091
@end defun
 
1092
 
 
1093
@defun = (number &rest more-numbers)
 
1094
Package:LISP
 
1095
 
 
1096
Returns T if all of its arguments are numerically equal; NIL otherwise.
 
1097
 
 
1098
 
 
1099
@end defun
 
1100
 
 
1101
@defun NUMBERP (x)
 
1102
Package:LISP
 
1103
 
 
1104
Returns T if X is any kind of number; NIL otherwise.
 
1105
 
 
1106
 
 
1107
@end defun
 
1108
 
 
1109
@defvr {Constant} MOST-POSITIVE-DOUBLE-FLOAT 
 
1110
Package:LISP
 
1111
Same as MOST-POSITIVE-LONG-FLOAT.
 
1112
 
 
1113
 
 
1114
@end defvr
 
1115
 
 
1116
@defun LOGTEST (integer1 integer2)
 
1117
Package:LISP
 
1118
 
 
1119
Returns T if LOGAND of INTEGER1 and INTEGER2 is not zero; NIL otherwise.
 
1120
 
 
1121
 
 
1122
@end defun
 
1123
 
 
1124
@defun RANDOM-STATE-P (x)
 
1125
Package:LISP
 
1126
 
 
1127
Returns T if X is a random-state object; NIL otherwise.
 
1128
 
 
1129
 
 
1130
@end defun
 
1131
 
 
1132
@defvr {Constant} LEAST-POSITIVE-DOUBLE-FLOAT 
 
1133
Package:LISP
 
1134
Same as LEAST-POSITIVE-LONG-FLOAT.
 
1135
 
 
1136
 
 
1137
@end defvr
 
1138
 
 
1139
@defun FLOAT-PRECISION (float)
 
1140
Package:LISP
 
1141
 
 
1142
Returns the number of significant radix-B digits used to represent the
 
1143
significand F of the floating-point number, where B = (FLOAT-RADIX FLOAT).
 
1144
 
 
1145
 
 
1146
@end defun
 
1147
 
 
1148
@defvr {Constant} BOOLE-XOR 
 
1149
Package:LISP
 
1150
Makes BOOLE return LOGXOR of INTEGER1 and INTEGER2.
 
1151
 
 
1152
 
 
1153
@end defvr
 
1154
 
 
1155
@defun DPB (newbyte bytespec integer)
 
1156
Package:LISP
 
1157
 
 
1158
Returns an integer computed by replacing the specified byte of INTEGER with
 
1159
NEWBYTE.
 
1160
 
 
1161
 
 
1162
@end defun
 
1163
 
 
1164
@defun ABS (number)
 
1165
Package:LISP
 
1166
 
 
1167
Returns the absolute value of NUMBER.
 
1168
 
 
1169
 
 
1170
@end defun
 
1171
 
 
1172
@defun CONJUGATE (number)
 
1173
Package:LISP
 
1174
 
 
1175
Returns the complex conjugate of NUMBER.
 
1176
 
 
1177
 
 
1178
@end defun
 
1179
 
 
1180
@defun CIS (radians)
 
1181
Package:LISP
 
1182
 
 
1183
Returns e raised to i*RADIANS.
 
1184
 
 
1185
 
 
1186
@end defun
 
1187
 
 
1188
@defun ODDP (integer)
 
1189
Package:LISP
 
1190
 
 
1191
Returns T if INTEGER is odd; NIL otherwise.
 
1192
 
 
1193
 
 
1194
@end defun
 
1195
 
 
1196
@defun RATIONALIZE (number)
 
1197
Package:LISP
 
1198
 
 
1199
Converts NUMBER into rational approximately and returns it.
 
1200
 
 
1201
 
 
1202
@end defun
 
1203
 
 
1204
@defun ISQRT (integer)
 
1205
Package:LISP
 
1206
 
 
1207
Returns the greatest integer less than or equal to the square root of the
 
1208
given non-negative integer.
 
1209
 
 
1210
 
 
1211
@end defun
 
1212
 
 
1213
@defun LOGXOR (&rest integers)
 
1214
Package:LISP
 
1215
 
 
1216
Returns the bit-wise EXCLUSIVE OR of its arguments.
 
1217
 
 
1218
 
 
1219
@end defun
 
1220
 
 
1221
@defun > (number &rest more-numbers)
 
1222
Package:LISP
 
1223
 
 
1224
Returns T if its arguments are in strictly decreasing order; NIL otherwise.
 
1225
 
 
1226
 
 
1227
@end defun
 
1228
 
 
1229
@defun LOGBITP (index integer)
 
1230
Package:LISP
 
1231
 
 
1232
Returns T if the INDEX-th bit of INTEGER is 1.
 
1233
 
 
1234
 
 
1235
@end defun
 
1236
 
 
1237
@defvr {Constant} DOUBLE-FLOAT-EPSILON 
 
1238
Package:LISP
 
1239
Same as LONG-FLOAT-EPSILON.
 
1240
 
 
1241
 
 
1242
@end defvr
 
1243
 
 
1244
@defun LOGCOUNT (integer)
 
1245
Package:LISP
 
1246
 
 
1247
If INTEGER is negative, returns the number of 0 bits.  Otherwise, returns
 
1248
the number of 1 bits.
 
1249
 
 
1250
 
 
1251
@end defun
 
1252
 
 
1253
@defun GCD (&rest integers)
 
1254
Package:LISP
 
1255
 
 
1256
Returns the greatest common divisor of INTEGERs.
 
1257
 
 
1258
 
 
1259
@end defun
 
1260
 
 
1261
@defun RATIONALP (x)
 
1262
Package:LISP
 
1263
 
 
1264
Returns T if X is an integer or a ratio; NIL otherwise.
 
1265
 
 
1266
 
 
1267
@end defun
 
1268
 
 
1269
@defun MOD (number divisor)
 
1270
Package:LISP
 
1271
 
 
1272
Returns the second result of (FLOOR NUMBER DIVISOR).
 
1273
 
 
1274
 
 
1275
@end defun
 
1276
 
 
1277
@defun MODF (number)
 
1278
Package:SYSTEM
 
1279
 
 
1280
Returns the integer and fractional part of a floating point number mod 1.0.
 
1281
 
 
1282
 
 
1283
@end defun
 
1284
 
 
1285
@defvr {Constant} BOOLE-ORC1 
 
1286
Package:LISP
 
1287
Makes BOOLE return LOGORC1 of INTEGER1 and INTEGER2.
 
1288
 
 
1289
 
 
1290
@end defvr
 
1291
 
 
1292
@defvr {Constant} SINGLE-FLOAT-NEGATIVE-EPSILON 
 
1293
Package:LISP
 
1294
Same as LONG-FLOAT-NEGATIVE-EPSILON.
 
1295
 
 
1296
 
 
1297
@end defvr
 
1298
 
 
1299
@defun FLOOR (number &optional (divisor 1))
 
1300
Package:LISP
 
1301
 
 
1302
Returns the largest integer not larger than the NUMBER divided by DIVISOR.
 
1303
The second returned value is (- NUMBER (* first-value DIVISOR)).
 
1304
 
 
1305
 
 
1306
@end defun
 
1307
 
 
1308
@defun PLUSP (number)
 
1309
Package:LISP
 
1310
 
 
1311
Returns T if NUMBER > 0; NIL otherwise.
 
1312
 
 
1313
 
 
1314
@end defun
 
1315
 
 
1316
@defun FLOAT-DIGITS (float)
 
1317
Package:LISP
 
1318
 
 
1319
Returns the number of radix-B digits used to represent the significand F of
 
1320
the floating-point number, where B = (FLOAT-RADIX FLOAT).
 
1321
 
 
1322
 
 
1323
@end defun
 
1324
 
 
1325
@defun RANDOM (number &optional (state *random-state*))
 
1326
Package:LISP
 
1327
 
 
1328
Generates a uniformly distributed pseudo-random number between zero
 
1329
(inclusive) and NUMBER (exclusive), by using the random state object STATE.
 
1330
 
 
1331
 
 
1332
@end defun