Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

dgo

  • 4 years ago

In the getting started pdf it gives two practice exercises to do to get you acquainted with IDLE. Here is the quote: "Exercise (this is just for practice, solutions will not be graded or collected in class) Use IDLE to calculate: 1. 23.0 to the 5th power 2. Positive root of the following equation: 34*x^2 + 68*x - 510 Recall: a*x^2 + b*x + c x1 = ( - b + sqrt ( b*b - 4*a*c ) ) / ( 2*a) the first one of course went fine but I'm lost on the second one. googled positive root fwiw but that did not help with this situation. help me?

  • This Question is Closed
  1. dgo
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    if I type the first line into python (lol?) it says syntax error. also, I don't know what is meant by "recall". also what does "x1" on the last line mean? thank you very much! :)

  2. bwCA
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 2

    x1 is a variable 23 ** 5 or pow(23, 5) http://docs.python.org/library/stdtypes.html#numeric-types-int-float-long-complex number two wants you to find the positive root of the equation that is given and it is asking you to recall the qudratic formula used to find the roots of an equation: this is algebra.

  3. projectbloke
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    to find sqrt(b*b-4*a*c) in the quadratic equation, you'll need to "import math" and use the math.sqrt() function. I was stuck on that for a couple of hours before Google saved me lol

  4. dgo
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    light bulbs goin off like crazy over here!!! so exciting and fun! you guys RULE!!! :) thanks

  5. 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