Skip to content
Snippets Groups Projects
Commit 17ae9fa1 authored by GabrielFollet's avatar GabrielFollet
Browse files

added missing custom raise exception

parent c0896502
No related branches found
No related tags found
No related merge requests found
......@@ -30,4 +30,6 @@ plt.show()
if not (numerical_integral_trap - numerical_integral_simp)/numerical_integral_simp < 0.3:
raise ValueError('The difference between the two methods is too high! ')
\ No newline at end of file
raise ValueError('The difference between the two methods is too high! ')
if numerical_integral_simp < 0 and numerical_integral_trap < 0:
raise ValueError('The results should be positive!')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment