PPT Slide
CONDITIONALS IN FUNCTIONS
( defun small ( v )
( if ( and
( > v -10 )
( < v 10 ) )
’small ’large ) )
( defun signum ( X )
( cond
( ( plusp X ) 1 )
( ( minusp X ) -1 )
( ( zerop X ) 0 ) ) )
1.23
Previous slide
Next slide
Back to first slide
View graphic version