Artificial Intelligence, Numerical Analysis, Optimization, Python Programming, Statistics.
label='f(a)',color='orange') plt.axhline(y=0, color='brown', linestyle='dashdot') plt.plot([fun(b_val) for b_val in b_vals], 'co', label='f(b)') plt.axhline(y=0, color='brown', linestyle='dashdot') plt.legend() plt.grid() # Update the plot and display it # plt.pause(1) plt.show() #Call the function