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

  • SEARCH
  • Home
  • 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 7514515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:31:12+00:00 2026-05-30T00:31:12+00:00

So my assignment is this: Using your knowledge of square roots in addition to

  • 0

So my assignment is this: “Using your knowledge of square roots in addition to standard double precision accuracy with your language, what is the square root of the sum of the first 10^5 square roots?

sqrt( sqrt(0) + sqrt(1) + sqrt(2) + ... + sqrt(99999) + sqrt(100000) )

Enter the number rounded to the nearest whole number

I’ve created a script:

from math import sqrt

def sumsqrt():
    return sqrt(sum(map(sqrt, range(100001))))

def main():
    print sumsqrt      

if __name__ == '__main__':
  main()

However, when I run this script in Terminal, this is the output:

mcbaby$ python cs28.py
<function sumsqrt at 0x652b0>

So I just decided to run Python in Terminal, and do it there. I did pretty much the same thing, except it worked.

>>> from math import sqrt
>>> sqrt(sum(map(sqrt, range(100001))))
4591.5148887832138

I was hoping somebody could help explain what’s going on. Thanks!

  • 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-05-30T00:31:14+00:00Added an answer on May 30, 2026 at 12:31 am

    Change

    print sumsqrt # print the address of the object in memory, similar to id(sumsqrt)
    

    to

    print sumsqrt()  # call the function and print what it returns.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How to set entire HTML in MSHTML? I am trying using this assignment: (Document
I'm using this code for my web assignment: http://csstechniques.blogspot.sg/2007/05/super-simple-css-bars.html But how do I show
For this assignment I had to create my own string class. I initially wrote
I swear this assignment will be the end of me, I've been researching this
I am making this assignment in my program and I am getting the warning
I've been working on this assignment, where I need to read in records and
so we're doing this assignment at Uni and i have a serious craving to
I'm trying to complete my assignment and this is the last thing to do
OK, I have this assignment and I have to prompt the user for data
I am getting a very strange error in my code. This assignment is for

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.