1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
(integer-valued? 1) = #t OK
(integer-valued? (rational 2 2)) = #t OK
(integer-valued? (rational 2 3)) = #f OK
(integer-valued? 1.0) = #t OK
(integer-valued? 1.5) = #f OK
(integer-valued? (complex 1.0 0.0)) = #t OK
(integer-valued? (complex 1.5 0.0)) = #f OK
(integer-valued? (complex 1.0 2.0)) = #f OK
(real-valued? 1) = #t OK
(real-valued? (rational 2 2)) = #t OK
(real-valued? (rational 2 3)) = #t OK
(real-valued? 1.0) = #t OK
(real-valued? 1.5) = #t OK
(real-valued? (complex 1.0 0.0)) = #t OK
(real-valued? (complex 1.5 0.0)) = #t OK
(real-valued? (complex 1.0 2.0)) = #f OK
(rational-valued? 1) = #t OK
(rational-valued? (rational 2 2)) = #t OK
(rational-valued? (rational 2 3)) = #t OK
(rational-valued? 1.0) = #t OK
(rational-valued? 1.5) = #f OK
(rational-valued? (complex 1.0 0.0)) = #t OK
(rational-valued? (complex 1.5 0.0)) = #f OK
(rational-valued? (complex 1.0 2.0)) = #f OK
|