Question: Write a Python function, twoQuadratics, that takes in two sets of coefficients and x-values and prints the sum of the results of evaluating two quadratic

Write a Python function, twoQuadratics, that takes in two sets of coefficients and x-values and prints the sum of the results of evaluating two quadratic equations. It does not do anything else. That is, you should evaluate and print the result of the following equation:a1x12+b1x1+c1+a2x22+b2x2+c2

You are given the following function, evalQuadratic

def evalQuadratic(a, b, c, x): ''' a, b, c: numerical values for the coefficients of a quadratic equation x: numerical value at which to evaluate the quadratic. ''' return a*x*x + b*x + c 

Use the given function (you don't need to redefine evalQuadratic in this box; when you call evalQuadratic, our definition will be used).

def twoQuadratics(a1, b1, c1, x1, a2, b2, c2, x2): ''' a1, b1, c1: one set of coefficients of a quadratic equation a2, b2, c2: another set of coefficients of a quadratic equation x1, x2: values at which to evaluate the quadratics ''' # Your code here 

If you are getting this problem incorrect, re-read the problem statement carefully.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!