Let us take another example, let us write code for converting Fahrenheit temp of 60o F to the centigrade scale:
The mathematical expression for this conversion will be:
(60 * 9 / 5) + 32
Create a source code file named main.lisp and type the following code in it.
(write(+ (* (/ 9 5) 60) 32))
When you click the Execute button, or type Ctrl+E, MATLAB executes it immediately and the result returned is:
140
Evaluation of LISP Programs
Evaluation of LISP programs has two parts:
• Translation of program text into Lisp objects by a reader program
• Implementation of the semantics of the language in terms of these objects by an evaluator program