I am looping through a function that looks like this:
Y=exp(-0.04*(x-13.25)^(2))*300
Let’s say I want to get Yfor every value of x between 3.3454 and 20.3458 for every 0.1 interval
I would do this:
for (float i=3.3454;i<20.3458;i=+.1)
Is this the correct way to do this?
Your syntax is slightly off, and some of the math functions you want to use will only work on doubles.