I need to calculate pressure fluctuations p
(the code for this is working already good); but I also need to store the values of p
at the different time positions so that I have a function p(t)
and can plot it later.
The problem is: the values of t
are floats. The list with t
-values looks like this:
t = [88.386, 88.986, 90.386, ...]
and some of these values also appears multiple times, which means, if p(t=88.986)
is calculated more than once, the both values just need to be added up.
How can I handle this?
I would appreciate any help.