Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8501265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:09:47+00:00 2026-06-11T01:09:47+00:00

This is a rehash of Finding integer power roots but in clojure: How do

  • 0

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]
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T01:09:49+00:00Added an answer on June 11, 2026 at 1:09 am
    user> (defn nth-root
              [n x]
            (long (Math/pow x (/ 1.0 n))))
    #'user/nth-root
    user> (nth-root 4 81)
    3
    

    To be honest, I do not know the standardized way to handle
    a complex number in Clojure. You might have to implement
    your own Complex record, using defrecord.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I found this in the standard as the post-condition for the rehash function in
This code below allows me to find the word error in all my files
This works. $(document).ready(function(){ $(.items article).click(function(){ window.location=$(this).find(a).attr(href); return false; }); }); However , when the
I realize that this topic have been brought up sometimes, but I find myself
This is probably basic stuff, but I can't find the clear answer anywhere.. Lets
x1.instance3650.db.xeround.com-nino_db [chatserver.sql.MySqlConnection.rehash()] this is con null [.()] connection to MySQL server failed com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Cannot
This link describes a function on a Money object for adding funds together of
Essentially, it's a rehash of this question for Entity Framework 4. How do you
This question was posted on StackApps , but the issue may be more a
This is my database table. Now I want to combine Branch_Id, Acc_no and Acc_Type

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.