Question: I am trying to graph a fuction using matplotlib in Jupyter notebooks in python. My code is below. I don't understand why I am getting

I am trying to graph a fuction using matplotlib in Jupyter notebooks in python. My code is below. I don't understand why I am getting the error message.

I am trying to graph a fuction using matplotlib in Jupyter notebooks

import math def quadratic_formula (a, b, c): root! root2 return (-b + (-b - rooti, math. sqrt(b*b math. sqrt(b*b root 4*a*c))/(2*a) 4*a*c))/(2*a) - - time-1, time-2 quadratic-formula(a,b,c) = total time max(time 1 ,time 2) print('The ball will hit the ground in', total_time, seconds. ') import matplotlib.pyplot as plt for x in range(-4, 4, 1): y-16(x* *2)+20 (x)+5e d.append(x) e.append (y) fig- plt.figure() axes-fig.add_subplot (111) axes plot(d,e) plt.show( Traceback (most recent call last) TypeError ipython-input-2-f7a6de20daabs in () 7 for x in range(-4, 4, 1): > 8 y= -16(x"*2)+20(x)+50 9 d.append(x) 10 eappend(y) TypeError: 'int' object is not callable

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!