A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

anonymous

  • one year ago

How to find Positive root of the following equation: 34*x^2 + 68*x - 510 using IDLE

  • This Question is Open
  1. e.mccormick
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 1

    Well, what did you code up so far in Python?

  2. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Well, there's a library 'SymPy' for it. Do you want the code to compute it?

  3. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    LOL it's just a quadratic so if you want you can define the quadratic formula which takes the coefficients of the formula as an input and outputs roots e.g. def quadratic(a,b,c): from math import sqrt as s answer1 = (-b + s(b**2 - 4*ac)) / float(2*a) answer2 = (-b - s(b**2 - 4*ac)) / float(2*a) return answer1 , answer2 # then put in the above question print quadratic(34,68,-510) # and it will give you the answer

  4. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.