module GridMethod.Infrastructure

let getStep a b n = (/) ((b - a) |> float) (n |> float)

let getIntervalPartition a b n =
    let h = getStep a b n
    Array.init (n + 1) (fun i -> a + float (i) * h)
