Traceback (most recent call last):
File "C:\Users\EDMOND\Documents\programme python\exercice34tp2.py", line 27, in <module>
plt.plot(arr, fprim, label='exp(-x)')
File "C:\Users\EDMOND\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\pyplot.py", line 2728, in plot
return gca().plot(
File "C:\Users\EDMOND\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\axes\_axes.py", line 1662, in plot
lines = [*self._get_lines(*args, data=data, **kwargs)]
File "C:\Users\EDMOND\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\axes\_base.py", line 311, in __call__
yield from self._plot_args(
File "C:\Users\EDMOND\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\axes\_base.py", line 504, in _plot_args
raise ValueError(f"x and y must have same first dimension, but "
ValueError: x and y must have same first dimension, but have shapes (200,) and (1,)
Partager