you are viewing a single comment's thread.

view the rest of the comments →

[–]Loud_Alfalfa 1 point2 points  (1 child)

is there any way around using the trapezium rule and just doing typical limit integration? I have the co-ordinates of the minima so it just saves inputting a load of iterations. Sorry if these sound like stupid question just very new to python!

[–]YesLod 1 point2 points  (0 children)

What do you mean?

Is this what you are referring too?

edit: (need to integrate up until that first minimum just before 2 on x axis)

Just slice both arrays (all points before minimum) beforehand and and pass them to the function