Page 65 - DCAP310_INTRODUCTION_TO_ARTIFICIAL_INTELLIGENCE_AND_EXPERT_SYSTEMS
P. 65

Unit 4: LISP




               Unknown:                                                                         Notes
                    computable tuple (these are a kind of immutable lists playing a special role in
                    parameter passing) (empty tuple) computable tuple (these are a kind of immutable
                    lists playing a special role in parameter passing) (1-uple) computable tuple (these
                    are a kind of immutable lists playing a special role in parameter passing) (using a
                    tuple for a function call) optional value (null coalescing) dictionary (constructor)
                    dictionary (merge) range

               Mathematics
                +/-/*//                            addition/subtraction/multiplication/division
                Logand/logior/logxor               bitwise operators (and/or/xor)
                Lognot                             bitwise operators (bitwise inversion)
                (ash x positive-integer)/(ash x    bitwise operators (left shift/right
                negative-integer)/
                                                   shift/unsigned right shift)
                Floor                              euclidian division (both quotient and modulo)
                Expt                               exponentiation (power)
                (log x 10)                         logarithm (base 10)
                Log                                logarithm (base e)
                Mod                                modulo (modulo of -3/2 is 1)
                -                                  Negation
                1000.0, 1E3                        numbers syntax (floating point)
                #b1, #o7, #xf                      numbers syntax (integers in base 2, octal and
                                                   hexadecimal)
                #2r1, #8r7, #16rf                  numbers syntax (integers in base 2, octal and
                                                   hexadecimal)
                1000, 1000.                        numbers syntax (integers)
                Random                             random (random number)
                make-random-state                  random (seed the pseudo random generator)
                sqrt/exp/abs                       square root/e-exponential/absolute value
                sin/cos/tan                        trigonometry (basic)
                asin/acos/atan                     trigonometry (inverse)
                truncate/round/floor/ceiling       truncate/round/floor/ceil


          Self Assessment

          State whether the following statements are true or false:
          5.   A dotted pair is the internal image of a node in an internal data structure with two
               components.
          6.   In LISP, commas were optional separators in lists.
          7.   LISP can be used in finding the human behavior.
          8.   Each list is coded internally as dotted pairs.










                                           LOVELY PROFESSIONAL UNIVERSITY                                   59
   60   61   62   63   64   65   66   67   68   69   70