Kaydet (Commit) d8a023d4 authored tarafından Winfried Donkers's avatar Winfried Donkers Kaydeden (comit) Eike Rathke

fdo#71350 fix incorrect calculation of Excel function CONFIDENCE.T

Change-Id: I94202bebcc7deded51636f4bf7f203254a31931f
Reviewed-on: https://gerrit.libreoffice.org/6751Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: 's avatarEike Rathke <erack@redhat.com>
üst fa2498cb
......@@ -2309,7 +2309,7 @@ void ScInterpreter::ScConfidenceT()
if (sigma <= 0.0 || alpha <= 0.0 || alpha >= 1.0 || n < 1.0)
PushIllegalArgument();
else
PushDouble( sigma * GetTInv( 1 - alpha / 2, n - 1 ) / sqrt( n ) );
PushDouble( sigma * GetTInv( alpha, n - 1 ) / sqrt( n ) );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment