let's say we want to calculate the std.dev of an array of #'s in a function. Traditionally one sets up loops to get the sum and the variance etc.
Consider the following alternative:
pure real(4) function getSdev(X,first,last)
1. Can the SUM function improve the speed over a looped sum?
2. Since we do not know the size of the array AND that X**2 is stored on the STACK, for a large array, can this cause problems in either in lack of stack size, or speed?