Page 75 - DCAP310_INTRODUCTION_TO_ARTIFICIAL_INTELLIGENCE_AND_EXPERT_SYSTEMS
P. 75

Unit 4: LISP




               When you evaluate a list, the LISP interpreter looks at the first symbol in the list and then  Notes
               at the function definition bound to that symbol. Then the instructions in the function
               definition are carried out.
               A single quotation mark, ‘, tells the LISP interpreter that it should return the following
               expression as written, and not evaluate it as it would if the quote were not there.

               Arguments are the information passed to a function. The arguments to a function are
               computed by evaluating the rest of the elements of the list of which the function is the first
               element.
               A function always returns a value when it is evaluated (unless it gets an error); in addition,
               it may also carry out some action called a “side effect”. In many cases, a function’s primary
               purpose is to create a side effect.

          4.6 Keywords

          CMUCL: The CMUCL is a high-performance, free common LISP implementation.

          Common LISP Implementation: It is licensed under a LISP-specific variant of the LGPL, and
          derived from Digitool’s MCL product.
          FORTRAN: It has been used for such projects as the design of bridges and aeroplane structures;
          it is used for factory automation control, for storm drainage design, analysis of scientific data
          and so on.
          Functional Calculus: It is a theory allowing one to apply mathematical functions to mathematical
          operators. It is now a branch (more accurately, several related areas) of the field of functional
          analysis, connected with spectral theory.
          Working Knowledge: It is a social enterprise dedicated to opening the eyes of business to young
          talent available locally.

          4.7 Review Questions


          1.   Define LISP?
          2.   What is the different syntax and numeric functions of LISP?
          3.   Explain manipulation functions.
          4.   Abbreviate and meaning of Car, Cdr, Cadr, Caddr.
          5.   Write the difference between Cadr and Caddr.

          6.   What are LISP functions? Describe the LISP functions.
          7.   Explain the procedures with examples.
          8.   Write the examples for the uses of syntax in the LISP.

          Answers: Self Assessment

          1.   True                              2.  False

          3.   True                              4.  False
          5.   False                            6.   True
          7.   True                              8.  True




                                           LOVELY PROFESSIONAL UNIVERSITY                                   69
   70   71   72   73   74   75   76   77   78   79   80