Script precomputing coeficcients