Open study

is now brainly

With Brainly you can:

  • Get homework help from millions of students and moderators
  • Learn how to solve problems with step-by-step explanations
  • Share your knowledge and earn points by helping other students
  • Learn anywhere, anytime with the Brainly app!

A community for students.

Hi All, Can someone please explain the maths behind OPT.2.2 and OPT.2.3. I dont really understand what the results should even look like let alone how to get them. Maths is not a strong point for me. Thanks.

MIT 6.189 A Gentle Introduction to Programming Using Python (OCW)
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Join Brainly to access

this expert answer

SEE EXPERT ANSWER

To see the expert answer you'll need to create a free account at Brainly

OPT.2.2 is a little tricky because you need to iterate over two loops, one for x and one for y, in order to find the values of x and y where y == x**2 + 1. The bit about domains means that you have loop through values of x from -5 to 5 and values of y from 0 to 10. Here's the solutions I got: [(-3, 10), (-2, 5), (-1, 2), (0, 1), (1, 2), (2, 5), (3, 10)] 2.3 is similar, but they don't give you the equation. The equation for a circle of radius 5 is x**2 + y**2 == 5 My solutions for OPT.2.3: [(-2, -1), (-2, 1), (-1, -2), (-1, 2), (1, -2), (1, 2), (2, -1), (2, 1)] I think there's a recitation video that helped me with this.
Thanks pdinch. How do you know what the ranges are for 2.3? It appears as though you changed y's range to range(-5,6) also? Thanks for posting your answers. I now have the same. :-)

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

Not the answer you are looking for?

Search for more explanations.

Ask your own question