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 0116ec2 commit 0fde146Copy full SHA for 0fde146
modules/base/math.mjs
@@ -1593,6 +1593,12 @@ function Prob(chi2, ndf) {
1593
return chisquared_cdf_c(chi2,ndf,0);
1594
}
1595
1596
+/** @summary Square function
1597
+ * @memberof Math */
1598
+function Sq(x) {
1599
+ return x * x;
1600
+}
1601
+
1602
/** @summary Gaus function
1603
* @memberof Math */
1604
function Gaus(x, mean, sigma, norm) {
@@ -2050,7 +2056,7 @@ export { gamma, gamma as tgamma, gamma as Gamma,
2050
2056
tdistribution_cdf_c, tdistribution_cdf, tdistribution_pdf, exponential_cdf_c, exponential_cdf, chisquared_pdf,
2051
2057
Beta, GammaDist, LaplaceDist, LaplaceDistI, LogNormal, Student, StudentI,
2052
2058
gaus, gausn, gausxy, expo,
2053
- Prob, Gaus, BreitWigner, BetaDist, BetaDistI, landau, landaun,
2059
+ Prob, Sq, Gaus, BreitWigner, BetaDist, BetaDistI, landau, landaun,
2054
2060
2055
2061
ChebyshevN, Chebyshev0, Chebyshev1, Chebyshev2, Chebyshev3, Chebyshev4,
2062
Chebyshev5, Chebyshev6, Chebyshev7, Chebyshev8, Chebyshev9, Chebyshev10,
0 commit comments