Comments on: Order of Operation Matters Thanks to Rounding Error http://jrwren.wrenfam.com/blog/2008/01/19/order-of-operation-matters-thanks-to-rounding-error/ babblings of a computer loving fool Mon, 21 Nov 2016 19:37:12 +0000 hourly 1 https://wordpress.org/?v=4.7.2 By: Dustin Campbell http://jrwren.wrenfam.com/blog/2008/01/19/order-of-operation-matters-thanks-to-rounding-error/comment-page-1/#comment-30290 Sun, 20 Jan 2008 12:26:41 +0000 http://jrwren.wrenfam.com/blog/2008/01/19/order-of-operation-matters-thanks-to-rounding-error/#comment-30290 Just a quick tip on syntax:

let i = Seq.fold f 0.0f (Seq.map (fun a-> (float32 a)) si)

Since the purpose of the anonymous function passed to Seq.map is simply to call another function with the anonymous function’s argument, the anonymous function can be removed. It can be written more succinctly (and readably) as:

let i = Seq.fold f 0.0f (Seq.map float32 si)

]]>