How to write exponent in racket?
Use the primitive function expt (see reference):
Use the primitive function expt (see reference):
There are some unnecessary parenthesis, don’t do this: Try this instead: Also in here: It should be: In both cases the problem was that if you surround with () an expression, it means that you’re trying to invoke a procedure. And given that the result of the if and cond expressions above don’t return a … Read more