Home
last modified time | relevance | path

Searched refs:stirling (Results 1 – 25 of 281) sorted by relevance

12345678910>>...12

/dports/math/maxima/maxima-5.43.2/doc/info/
H A Dstirling.texi2 * Functions and Variables for stirling::
5 @node Functions and Variables for stirling, , stirling-pkg, stirling-pkg
6 @section Functions and Variables for stirling
8 @deffn {Function} stirling @
9 @fname{stirling} (@var{z},@var{n}) @
10 @fname{stirling} (@var{z},@var{n},@var{pred})
20 (%i1) load ("stirling")$
22 (%i2) stirling(gamma(%alpha+x)/gamma(x),1);
45 (%i5) stirling(gamma + gamma(x),0);
48 (%i6) stirling(gamma(y) + gamma(x),0);
[all …]
/dports/math/p5-Math-Prime-Util/Math-Prime-Util-0.73/t/
H A D27-bernfrac.t151 ok(!eval { stirling(-4, -3) }, "Expected fail: stirling with negative args");
152 ok(!eval { stirling(4,3,4) }, "Expected fail: stirling type 4");
160 my @s3 = map { stirling($n,$_,3) } 0..$n+1;
168 my @s2 = map { stirling($n,$_,2) } 0..$n+1;
176 my @s1 = map { stirling($n,$_,1) } 0..$n+1;
184 …is( stirling(114,85,2), '7220955878973829071186404526802420281957387619151442549709256586569359340…
185 …is( stirling(132,67,1), '-613245896607092078160768780923943353888383687176522550035151478512095732…
190 is(sumdigits(stirling(234,95)), 1485, "sumdigits(stirling(234,95))");
/dports/math/maxima/maxima-5.43.2/share/contrib/
H A Dstirling.mac13 stirling(e) replaces all gamma functions in the expression 'e' with the zeroth
16 stirling(e, n) replaces all gamma functions in the expression 'e' with the O(1/x^(2n))
19 stirling(e, n, pred) replaces all expressions of the form gamma(q) in 'e' with
27 (%i1) stirling(gamma(%alpha+x)/gamma(x),1);
36 The function 'stirling' knows the difference between the variable 'gamma' and
39 (%i4) stirling(gamma(gamma));
42 To conditionally apply a Stirling expansion, give 'stirling' a third
46 (%i5) stirling(gamma(a) / gamma(a+b),1, symbolp);
52 (%i6) stirling(gamma(a) / gamma(a+b), 5, lambda([s], freeof('a,s)));
62 stirling(z, [a]) := block([n, s, acc : 0, %m, pred, zerobern : true],
[all …]
/dports/math/p5-Math-Prime-Util-GMP/Math-Prime-Util-GMP-0.52/t/
H A D24-bernfrac.t95 my @s2 = map { stirling($n,$_,3) } 0..$n+1;
103 my @s2 = map { stirling($n,$_,2) } 0..$n+1;
111 my @s1 = map { stirling($n,$_,1) } 0..$n+1;
118 is( stirling(246,61,3), '16781089031289908648739894658187968503831038435579384473036844176021715959…
119 is( stirling(137,14,2), '11992109155284903029871247278465531163645568016673318121268661391519332716…
120 is( stirling(99,14,1), '-76185801962487294910690331431878395972434237854033124053130281967496159110…
/dports/math/pari/pari-2.13.3/src/test/in/
H A Dcombinat1 vector(10, k, stirling(11,k))
2 vector(11, k, stirling(12,k))
3 vector(10, k, stirling(11,k, 2))
4 vector(11, k, stirling(12,k, 2))
9 stirling(100,0)
/dports/science/gnudatalanguage/gdl-1.0.1/testsuite/
H A Dtest_factorial.pro26 print, format=format_g, FACTORIAL(input, /ul64, /stirling)
27 print, format=format_g, FACTORIAL(input+0., /ul64, /stirling)
28 print, format=format_g, FACTORIAL(input, /stirling)
29 print, format=format_g, FACTORIAL(input+0., /stirling)
35 print, 'index | def. int | /ul64 | float | /stirling'
39 FACTORIAL(FLOAT(i)), FACTORIAL(i,/stirling)
/dports/math/stanmath/math-4.2.0/stan/math/opencl/kernels/device_functions/
H A Dlbeta.hpp102 double stirling
104 return stirling + lgamma(x) + stirling_diff;
111 double stirling = (x - 0.5) * log(x_over_xy) + y * log1p(-x_over_xy)
113 return stirling + stirling_diff;
/dports/math/stanmath/math-4.2.0/stan/math/prim/fun/
H A Dlbeta.hpp107 T_ret stirling = (y - 0.5) * log1m(x_over_xy) + x * (1 - log(x + y)); in lbeta() local
108 return stirling + lgamma(x) + stirling_diff; in lbeta()
114 T_ret stirling = (x - 0.5) * log(x_over_xy) + y * log1m(x_over_xy) in lbeta() local
116 return stirling + stirling_diff; in lbeta()
/dports/lang/racket/racket-8.3/share/pkgs/math-lib/math/private/functions/
H A Dbeta.rkt7 "stirling-error.rkt"
55 (* (fl/ (fl* (flexp-stirling a) (flexp-stirling b))
56 (flexp-stirling (fl+ a b)))
61 (* (fl/ (fl* (flexp-stirling a) (flexp-stirling b))
62 (flexp-stirling (fl+ a b)))
67 (: fllog-beta-stirling (Flonum Flonum -> Flonum))
68 (define (fllog-beta-stirling a b)
95 [(y-est . > . (flexp 1.0)) (fllog-beta-stirling a b)]
121 (fllog-beta-stirling a b)])))])])))
/dports/math/graphthing/graphthing-1.3.2/src/
H A Dmath.cc66 int Math::stirling (int n, int k) in stirling() function in Math
79 return ((n - 1) * Math::stirling (n - 1, k) + in stirling()
80 Math::stirling (n - 1, k - 1)); in stirling()
/dports/science/gnudatalanguage/gdl-1.0.1/src/pro/
H A Dfactorial.pro1 function FACTORIAL, input, stirling=stirling, ul64=ul64
13 ; /stirling : Use the Stirling approximation
14 ; /ul64 : Use unsigned long 64 bit, ignored if stirling is set
62 if KEYWORD_SET(stirling) then begin
/dports/lang/gcc6-aux/gcc-6-20180516/libgo/go/math/
H A Dgamma.go95 func stirling(x float64) float64 { func
140 return stirling(x)
155 z = Pi / (Abs(z) * stirling(q))
/dports/math/stanmath/math-4.2.0/test/unit/math/prim/fun/
H A Dlgamma_stirling_diff_test.cpp27 long double stirling in TEST() local
31 double diff_actual = static_cast<double>(lgamma_res - stirling); in TEST()
37 << "; stirling = " << stirling; in TEST()
/dports/devel/arm-none-eabi-gcc492/gcc-4.9.2/libgo/go/math/
H A Dgamma.go95 func stirling(x float64) float64 { func
140 return stirling(x)
155 z = Pi / (Abs(z) * stirling(q))
/dports/lang/gnat_util/gcc-6-20180516/libgo/go/math/
H A Dgamma.go95 func stirling(x float64) float64 { func
140 return stirling(x)
155 z = Pi / (Abs(z) * stirling(q))
/dports/devel/tinygo/tinygo-0.14.1/llvm-project/llgo/third_party/gofrontend/libgo/go/math/
H A Dgamma.go95 func stirling(x float64) float64 { func
140 return stirling(x)
155 z = Pi / (Abs(z) * stirling(q))
/dports/devel/mingw32-gcc/gcc-4.8.1/libgo/go/math/
H A Dgamma.go95 func stirling(x float64) float64 { func
140 return stirling(x)
155 z = Pi / (Abs(z) * stirling(q))
/dports/lang/gcc48/gcc-4.8.5/libgo/go/math/
H A Dgamma.go95 func stirling(x float64) float64 { func
140 return stirling(x)
155 z = Pi / (Abs(z) * stirling(q))
/dports/lang/gcc8/gcc-8.5.0/libgo/go/math/
H A Dgamma.go100 func stirling(x float64) (float64, float64) { func
148 y1, y2 := stirling(x)
167 sq1, sq2 := stirling(q)
/dports/lang/gcc10/gcc-10.3.0/libgo/go/math/
H A Dgamma.go100 func stirling(x float64) (float64, float64) { func
148 y1, y2 := stirling(x)
167 sq1, sq2 := stirling(q)
/dports/devel/riscv64-none-elf-gcc/gcc-8.4.0/libgo/go/math/
H A Dgamma.go100 func stirling(x float64) (float64, float64) { func
148 y1, y2 := stirling(x)
167 sq1, sq2 := stirling(q)
/dports/lang/go-devel/go-dragonfly-amd64-bootstrap/src/math/
H A Dgamma.go100 func stirling(x float64) (float64, float64) { func
148 y1, y2 := stirling(x)
167 sq1, sq2 := stirling(q)
/dports/lang/go-devel/go-becaeea1199b875bc24800fa88f2f4fea119bf78/src/math/
H A Dgamma.go100 func stirling(x float64) (float64, float64) { func
148 y1, y2 := stirling(x)
167 sq1, sq2 := stirling(q)
/dports/math/sprng/sprng5/TESTS/mpitests/
H A Dcoupon.cpp13 double stirling (int n, int m);
96 probability[r-d] = prod*stirling(r-1,d-1); in init_coupon()
101 probability[t-d] = 1.0 - prod*stirling(t-1,d); in init_coupon()
/dports/math/sprng/sprng5/TESTS/
H A Dcoupon.cpp17 double stirling (int n, int m);
100 probability[r-d] = prod*stirling(r-1,d-1); in init_coupon()
105 probability[t-d] = 1.0 - prod*stirling(t-1,d); in init_coupon()

12345678910>>...12