Question: Define a LISP function MIN-2 with the following properties. MIN-2 takes two arguments. If those arguments have values A and B, and A and B

Define a LISP function MIN-2 with the following properties. MIN-2 takes two arguments. If those arguments have values A and B, and A and B are numbers, then MIN-2 returns A if AsB aud rciurus B if > J3; but ifA or B is not a outuber MIN-2 returns thc symbol ERROR. Examples: (MIN-2 21.3 72) 72 (MIN-2 17.5 29) => 17.5 (MIN-2 ,(31) "(54)-> ERROR (MIN-2 5 'APPLE) => ERROR
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
