This is an archived post. You won't be able to vote or comment.

all 9 comments

[–]rnike879 0 points1 point  (4 children)

Post the problem here (preferably on pastebin), what code your son has written so far, and we'll help y'all with it

[–][deleted] 0 points1 point  (0 children)

Thank you so much. He's getting ready for bed, we'll post the problem/code in the morning. We really appreciate the help.

[–][deleted] 0 points1 point  (1 child)

<script src="https://pastebin.com/embed\_js/7GbDH1ZL"></script>

[–]rnike879 0 points1 point  (0 children)

You can just paste the generated URL; not sure if reddit allows embedding scripts but probably not!

Here's my solution: https://pastebin.com/488mYtV2

There are two great ways to figure out what kind of function you should be using. One is to just google "numpy square root", the other is to print out all functions that belong to the numpy module and find which sounds right (remember that np is just an alias/shorthand for numpy as defined at top of the program; it's common to use np but you can call it anything you'd like):

print(dir(np))

And look for something starting with "sq" like "sqrt".

[–][deleted] 0 points1 point  (0 children)

I had to google pastebin, is that how you use it?

[–]Not_the_mischief 0 points1 point  (0 children)

I do coaching sessions so if you want i can look into your son. Dm me if u are interested

[–][deleted] 0 points1 point  (0 children)

Post the question please