教授が英語で宿題出しやがったんだけど。。。 これ、解ける人いたらどういう問題か教えてくれんか? you must write to primary functions:
(defun evaluate (expression a b) (....)) This function takes any lisp expression and evaluates it with the stipulation that the values passed in through a and b are mapped to x and y, so that if the expression uses the values x and y, the values passed in through a and b will be used in their place.
(defun mutate (expression) (....)) This function will take a mathematical expression, change it according to random rules, and return the resulting new "mutant" expression. Valid input for the function is the list (+ x y) or any expression output by a properly implemented mutate function.
Modifying Mathematical Expressions in Lisp tips:
(random 1.0) ;; generates a random float between 0 and 1 (random 3) ;; generates a random int less than 3 (0, 1, or 2)