X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fts%2Finnovations.c;h=b9a7cf223442a42ce597748320647a23a0739939;hb=04a62b3c3fc21cc5d320c9e68cd46642bb309553;hp=553e20e8f7953a879595c3ddb0dce2e0e715b1dc;hpb=4aa40ed36fcdb13f73520945d804e6d3d8d52738;p=pspp-builds.git diff --git a/src/math/ts/innovations.c b/src/math/ts/innovations.c index 553e20e8..b9a7cf22 100644 --- a/src/math/ts/innovations.c +++ b/src/math/ts/innovations.c @@ -160,7 +160,7 @@ innovations_update_scale (struct innovations_estimate *est, double *theta, for (j = 0; j < i; j++) { k = i - j - 1; - result -= theta[k] * theta[k] * est->scale[j]; + result -= pow2 (theta[k]) * est->scale[j]; } est->scale[i] = result; }