[FMX] Array Math, graphing functions

I want to make a graph. Specifically, a graph of a normal population distribution.

I think (please correct me if I’m wrong) that the best way for me to do this is to use two arrays for coordinates and use the lineTo function to connect the dots:

  • An Index array up to about 300 as the “x-axis”
  • A Second array to represent the “y-axis” created using the formula for normal population applied to each entry of the index array

So I need to create these two arrays in FMX. the first array i think should be created with a For loop:

The second array somehow applying my formula to each entry in array 1.

I believe my methods are correct, but I am having a great deal of trouble getting the AS down properly and I can’t find many good sources on it. Help??