Why does this exponential equation return a zero-zero array?
1 answer
You get underutilized. Things become zero at exp, and multiplying by a large number is then too late. It's like a physical equation - in this case, you want to divide by r, not multiply. Try
exp(log(a)-e./(t*r))
It should work
EDIT - need to add, not multiply, log (a) in exponent ...
+4
source to share