Using (x^4) or (^ x 4) giving an error message. Is there some functions for exponent than simply using (* x x x x)?
Use the primitive function expt (see reference):
(expt x 4) ; = x⁴
If you forget expt, you can use:
(for/product ((i 4)) x)
It's easier than writing (* x x x x) for larger values.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With