OK this isn't fortran as such but
it might be the sort of thing that numerics people have some sensible insight into
I am currently running some Monte Carlo runs of a model results are stored in a a SQL Server database
we have some stability issues which I am addressing however the question
I have the following subset of answers from the model which shoule be intransient :
351697468.6 351697468.6 351697468.6 351697468.6 351697468.6 351697468.6 351697468.6 351697468.6 351697468.6 351697468.6 351697468.6 351697468.6 351697468.6
looks ok yes? now if I use the excel stdevp function to work out a standard deviation of these I get an answer of
4.923076923
which is obviously incorrect since the answer by definition shoudl be less than the varaition of the least significant figure ie leass then 0.1 in above set
similarly if I use the sql built in function I get a similar answer, I can write my own program but since I would naively just do what I am sure excel and sql server will be doing ( this isn't hard core numerics after all) I was wondering if anyone had any experience of handling such data sets
where a small deviation in a large number is the interesting thing ( as is the case here)
the wider issue here is that once things have settled down I will be attempting to find statistics of sets of differences between two large numbers and I currently not totally up to data on all the pitfalls this can entail with floating point arithmetic.
Carl
now I guess this is a float point error from calculating the mean square of these large numbers then taking the mean squred from it ( as