This is using python.
Assuming all the variables are non-zero.

Which lines of code will assign the discriminant the value b2−4ac? Select 2 options.


discriminant = bb - 4ac

discriminant = b * b - 4 * a * c

discriminant = b ^ 2 - 4ac

discriminant = b ** 2 - 4 * a * c

discriminant = b ^ 2 - 4 * a * c

Answers

Answer 1

Answer:

discriminant = b * b - 4 * a * c

discriminant = b ** 2 - 4 * a * c

Explanation:

The operands are correct and in the right order (for python).

** is the operand for squaring something.

* is the operand for multiplying something.

- is the operand for subtracting something.

Answer 2

Let's take a look at these examples individually.

discriminant = bb - 4ac. You have to use the * sign so the computer understands that you're trying to multiply two objects together.

discriminant = b * b - 4 * a * c. This example works because it's using the * where it's appropriate.

discriminant = b ^ 2 - 4ac. In python we don't use the ^ sign. To use exponents, we use **. Also, there is no * sign in between 4, a, and c.

discriminant =  b ** 2 - 4 * a * c. This example works because it uses the ** and * sign where appropriate.

discriminant = b ^ 2 - 4 * a * c. This example uses the ^ sign and python does not support it.


Related Questions

Other Questions
Find 0.038 as a fraction in its lowest terms Stan, Greg, and Seth were cleaning the school gym in shifts. Stancleaned first, then Greg, then Seth. If they each cleaned the sameamount of time for a total of 11 hours, how many minutes did each oneclean? Three unique qualities Select all that apply.40 is what percent of 25. Hint: There are 2 correct answers.160%B 62.5%C 1600%D625/1000E 160/100F1600/100 Dose the atoms in a solid move freely or remain in a fixed position ? how waves affect matter at the macroscopic and particle levels. 16. Through which of the following mediums is the velocity of a sound wave the greatest?A. SteelB. LendWaterD. Air A large container for water weighs 21 pounds. If a gallon of water weighs 8.34 pounds, what is an equation that relates the weight of thewater and the container, W. in pounds and the amount of water, A, in gallons? (1 point)W Was James Madison right; Political parties are dangerous and destructive to the American political system. agree or disagree with this statement and why What was the primary debate in the Scopes trial?the role of religion in societythe value of the scientific methodO the powers of the state governmentthe validity of the theory of evolution What were Texas settlers looking for when they left the us and were looking to settle in Mexican Texas? what is the state of y when y = k/x, x is halved. According to the declation of independence when a government takes away the people rights to life liberty and pursuit of happiness what are people allowed to do? A) Ask the government for lowest taxes B) Alter or abolish the government C) Stop paying taxes D) give up the allowed the government to do what it wants EMERGENCY! Need a speech on evolution by natural selection - a rough draft What is the volume for 14 8 10 10 10 8? what is capital of japanand chaina How many modes, if any, does the group of data have? Kate, Tim, John, John, Angela, Tim, Sue 1 mode 2 modes no mode 3 modes Question 20(Multiple Choice Worth 1 points) (01.05 LC)Which fraction is equivalent to negative 7 over 8? 8 over negative 7 7 over negative 8 negative 7 over negative 8 7 over 8 Suppose US$1 = 0.7809 in New York and US$1 = 0.7793 in Paris. How can foreign exchange traders profit from these exchange rates? What actions can they take that may result in the same dollar/euro exchange rate in both New York and Paris? Please limit your response to one or two reasonably-sized paragraphs. MatchingA ExtraversionB. NeuroticismC. Openness to experienceD. AgreeablenessE. Conscientiousnessdisciplined and dependable* also referred to as negative emotionality* sympathetic and trusting* also referred to as positive emotionalitycorrelated with living longer than averageoverreact to stress more than othersassociated with childhood temperamentconnected to political attitude and ideologycorrelated with popularityflexible and imaginativeoutgoing and friendlycooperative and modestalso referred to as constraintanxious and insecurecorrelated with honesty* correlated with low alcohol consumption