Script precomputing coeficcients
variable granularity