I am calling a simple function i wrote in another function but getting an unexpected error.
I have saved and executed the first equation 'square-x' and then called it in the second fucntion 'sum-of-squares' in a different file.
First function:
(defun square-x (x)
"gives the square of a number"
(* x x))
Second function:
(defun sum-of-squares (a b)
"sums the squares of two values"
((+ (square-x a)
(square-x b))))
When trying to execute this function the error messages are 'the variable a is defined but never used' and the same for b. But i have used them in the calling of another function. Thanks