script to produce least squares dot file
example in computations fleshed out and pulled out