This is a rehash of Finding integer power roots but in clojure:
How do i find ALL the integer roots of a number?
So I want a function:
(defn roots [ex num] .....)
that when called gives:
(roots 4 81) => [3, -3, 3i, -3i]
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To be honest, I do not know the standardized way to handle
a complex number in Clojure. You might have to implement
your own
Complexrecord, usingdefrecord.