We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 915d143 commit 6dfe477Copy full SHA for 6dfe477
src/stdlib_stats_distribution_normal.fypp
@@ -279,7 +279,7 @@ contains
279
280
if(scale == 0._${k1}$) call error_stop("Error(pdf_norm): Normal" &
281
//"distribution scale parameter must be non-zero")
282
- res = exp(- 0.5_${k1}$ * (x - loc) * (x - loc) / (scale * scale)) / &
+ res = exp(- 0.5_${k1}$ * ((x - loc) / scale) * (x - loc) / scale) / &
283
(sqrt_2_Pi * scale)
284
end function pdf_norm_${t1[0]}$${k1}$
285
0 commit comments