MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 52.14.236.216
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/share/emacs/24.3/lisp/calc/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/share/emacs/24.3/lisp/calc/calc-comb.elc
;ELC
;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:10:42 2024
;;; from file /builddir/build/BUILD/emacs-24.3/lisp/calc/calc-comb.el
;;; in Emacs version 24.3.1
;;; with all optimizations.

;;; This file uses dynamic docstrings, first added in Emacs 19.29.

;;; This file does not contain utf-8 non-ASCII characters,
;;; and so can be loaded in Emacs versions earlier than 23.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


(byte-code "\300\301!\210\300\302!\207" [require calc-ext calc-macs] 2)
(defconst math-primes-table [2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97 101 103 107 109 113 127 131 137 139 149 151 157 163 167 173 179 181 191 193 197 199 211 223 227 229 233 239 241 251 257 263 269 271 277 281 283 293 307 311 313 317 331 337 347 349 353 359 367 373 379 383 389 397 401 409 419 421 431 433 439 443 449 457 461 463 467 479 487 491 499 503 509 521 523 541 547 557 563 569 571 577 587 593 599 601 607 613 617 619 631 641 643 647 653 659 661 673 677 683 691 701 709 719 727 733 739 743 751 757 761 769 773 787 797 809 811 821 823 827 829 839 853 857 859 863 877 881 883 887 907 911 919 929 937 941 947 953 967 971 977 983 991 997 1009 1013 1019 1021 1031 1033 1039 1049 1051 1061 1063 1069 1087 1091 1093 1097 1103 1109 1117 1123 1129 1151 1153 1163 1171 1181 1187 1193 1201 1213 1217 1223 1229 1231 1237 1249 1259 1277 1279 1283 1289 1291 1297 1301 1303 1307 1319 1321 1327 1361 1367 1373 1381 1399 1409 1423 1427 1429 1433 1439 1447 1451 1453 1459 1471 1481 1483 1487 1489 1493 1499 1511 1523 1531 1543 1549 1553 1559 1567 1571 1579 1583 1597 1601 1607 1609 1613 1619 1621 1627 1637 1657 1663 1667 1669 1693 1697 1699 1709 1721 1723 1733 1741 1747 1753 1759 1777 1783 1787 1789 1801 1811 1823 1831 1847 1861 1867 1871 1873 1877 1879 1889 1901 1907 1913 1931 1933 1949 1951 1973 1979 1987 1993 1997 1999 2003 2011 2017 2027 2029 2039 2053 2063 2069 2081 2083 2087 2089 2099 2111 2113 2129 2131 2137 2141 2143 2153 2161 2179 2203 2207 2213 2221 2237 2239 2243 2251 2267 2269 2273 2281 2287 2293 2297 2309 2311 2333 2339 2341 2347 2351 2357 2371 2377 2381 2383 2389 2393 2399 2411 2417 2423 2437 2441 2447 2459 2467 2473 2477 2503 2521 2531 2539 2543 2549 2551 2557 2579 2591 2593 2609 2617 2621 2633 2647 2657 2659 2663 2671 2677 2683 2687 2689 2693 2699 2707 2711 2713 2719 2729 2731 2741 2749 2753 2767 2777 2789 2791 2797 2801 2803 2819 2833 2837 2843 2851 2857 2861 2879 2887 2897 2903 2909 2917 2927 2939 2953 2957 2963 2969 2971 2999 3001 3011 3019 3023 3037 3041 3049 3061 3067 3079 3083 3089 3109 3119 3121 3137 3163 3167 3169 3181 3187 3191 3203 3209 3217 3221 3229 3251 3253 3257 3259 3271 3299 3301 3307 3313 3319 3323 3329 3331 3343 3347 3359 3361 3371 3373 3389 3391 3407 3413 3433 3449 3457 3461 3463 3467 3469 3491 3499 3511 3517 3527 3529 3533 3539 3541 3547 3557 3559 3571 3581 3583 3593 3607 3613 3617 3623 3631 3637 3643 3659 3671 3673 3677 3691 3697 3701 3709 3719 3727 3733 3739 3761 3767 3769 3779 3793 3797 3803 3821 3823 3833 3847 3851 3853 3863 3877 3881 3889 3907 3911 3917 3919 3923 3929 3931 3943 3947 3967 3989 4001 4003 4007 4013 4019 4021 4027 4049 4051 4057 4073 4079 4091 4093 4099 4111 4127 4129 4133 4139 4153 4157 4159 4177 4201 4211 4217 4219 4229 4231 4241 4243 4253 4259 4261 4271 4273 4283 4289 4297 4327 4337 4339 4349 4357 4363 4373 4391 4397 4409 4421 4423 4441 4447 4451 4457 4463 4481 4483 4493 4507 4513 4517 4519 4523 4547 4549 4561 4567 4583 4591 4597 4603 4621 4637 4639 4643 4649 4651 4657 4663 4673 4679 4691 4703 4721 4723 4729 4733 4751 4759 4783 4787 4789 4793 4799 4801 4813 4817 4831 4861 4871 4877 4889 4903 4909 4919 4931 4933 4937 4943 4951 4957 4967 4969 4973 4987 4993 4999 5003])
(defalias 'calc-gcd #[(arg) "\300\301`\"\207" [calc-do #[nil "\301\302\303#\207" [arg calc-binary-op "gcd" calcFunc-gcd] 4]] 3 nil "P"])
(defalias 'calc-lcm #[(arg) "\300\301`\"\207" [calc-do #[nil "\301\302\303#\207" [arg calc-binary-op "lcm" calcFunc-lcm] 4]] 3 nil "P"])
(defalias 'calc-extended-gcd #[nil "\300\301`\"\207" [calc-do #[nil "\300\301\302\303\304\301!B#\207" [calc-enter-result 2 "egcd" calcFunc-egcd calc-top-list-n] 6]] 3 nil nil])
(defalias 'calc-factorial #[(arg) "\300\301`\"\207" [calc-do #[nil "\301\302\303#\207" [arg calc-unary-op "fact" calcFunc-fact] 4]] 3 nil "P"])
(defalias 'calc-gamma #[(arg) "\300\301`\"\207" [calc-do #[nil "\301\302\303#\207" [arg calc-unary-op "gmma" calcFunc-gamma] 4]] 3 nil "P"])
(defalias 'calc-double-factorial #[(arg) "\300\301`\"\207" [calc-do #[nil "\301\302\303#\207" [arg calc-unary-op "dfac" calcFunc-dfact] 4]] 3 nil "P"])
(defalias 'calc-choose #[(arg) "\300\301`\"\207" [calc-do #[nil "\301 \203\302\303\304#\207\302\305\306#\207" [arg calc-is-hyperbolic calc-binary-op "perm" calcFunc-perm "chos" calcFunc-choose] 4]] 3 nil "P"])
(defalias 'calc-perm #[(arg) "\301 \210\302!\207" [arg calc-hyperbolic-func calc-choose] 2 nil "P"])
(defvar calc-last-random-limit '(float 1 0))
(defalias 'calc-random #[(n) "\300\301`\"\207" [calc-do #[nil "\203\301\302\303\304\305\306!!D#\207\301\307\303\304\305\310\307!!D#\207" [n calc-enter-result 0 "rand" calcFunc-random calc-get-random-limit prefix-numeric-value 1 calc-top-n] 7]] 3 nil "P"])
(defalias 'calc-get-random-limit #[(val) "\302=\203	\207\211\207" [val calc-last-random-limit 0] 2])
(defalias 'calc-rrandom #[nil "\300\301`\"\207" [calc-do #[nil "\301\302\303\304\305\306D#\207" [calc-last-random-limit (float 1 0) calc-enter-result 0 "rand" calcFunc-random (float 1 0)] 5]] 3 nil nil])
(defalias 'calc-random-again #[(arg) "\300\301`\"\207" [calc-do #[nil "S\211\302Y\205\303\302\304\305	D#\210\202\207" [arg calc-last-random-limit 0 calc-enter-result "rand" calcFunc-random] 5]] 3 nil "p"])
(defalias 'calc-shuffle #[(n) "\300\301`\"\207" [calc-do #[nil "\203\301\302\303\304\305!\306\307\302!!E#\207\301\310\303\304\307\302!\306\307\310!!E#\207" [n calc-enter-result 1 "shuf" calcFunc-shuffle prefix-numeric-value calc-get-random-limit calc-top-n 2] 8]] 3 nil "P"])
(defalias 'calc-report-prime-test #[(res) "@\302=\203\f\303\304\305\"\207@\306=\2034A\203/A@\307=\203%\303\304\310\"\207\303\304\311\312A@!#\207\303\304\313\"\207\303\304\314A@\315\312\3168!)$\207" [res calc-float-format t calc-record-message "prim" "Prime (guaranteed)" nil unknown "Non-prime (factors unknown)" "Non-prime (%s is a factor)" math-format-number "Non-prime" "Probably prime (%d iters; %s%% chance of error)" (fix 2) 2] 7])
(defalias 'calc-prime-test #[(iters) "\300\301`\"\207" [calc-do #[nil "\303\304!\305	\"\306\n!*\207" [n iters res calc-top-n 1 math-prime-test calc-report-prime-test] 3]] 3 nil "p"])
(defvar calc-verbose-nextprime nil)
(defalias 'calc-next-prime #[(iters) "\300\301`\"\207" [calc-do #[nil "\302\303 \203\304\305\306\307\310\305!\311	!E#\202\"\304\305\312\313\310\305!\311	!E#)\207" [calc-verbose-nextprime iters t calc-is-inverse calc-enter-result 1 "prvp" calcFunc-prevprime calc-top-n math-abs "nxtp" calcFunc-nextprime] 7]] 3 nil "p"])
(defalias 'calc-prev-prime #[(iters) "\301 \210\302!\207" [iters calc-invert-func calc-next-prime] 2 nil "p"])
(defalias 'calc-prime-factors #[(iters) "\300\301`\"\207" [calc-do #[nil "\302\303\304!!	\204\305\306\307\"\210\310\304\306#)\207" [res math-prime-factors-finished calcFunc-prfac calc-top-n 1 calc-record-message "pfac" "Warning:  May not be fully factored" calc-enter-result] 4]] 3 nil "p"])
(defalias 'calc-totient #[(arg) "\300\301`\"\207" [calc-do #[nil "\301\302\303#\207" [arg calc-unary-op "phi" calcFunc-totient] 4]] 3 nil "P"])
(defalias 'calc-moebius #[(arg) "\300\301`\"\207" [calc-do #[nil "\301\302\303#\207" [arg calc-unary-op "mu" calcFunc-moebius] 4]] 3 nil "P"])
(defalias 'calcFunc-gcd #[(a b) "\211:\205@\302=\205\3038\304Y)\203\305!	\211:\205.@\302=\205.\3038\304Y)\2036\305	!\211:?\206B@\306>)\203[	\211:?\206R@\306>)\203[\307	\"\207\211\211:\203\227@\310=\206\232@\311=?\205\232@\312>\203\221A@\211:\203\212@\310=\202\215\304W)\202\232\313!\202\232\304W)\206\276:\205\276@\314=\206\276@\315>\205\276\316A@!\206\276\316\3038!)\203\311\317\320!	\"\207	\211\211:\203@\310=\206@\311=?\205@\312>\203\377A@\211:\203\370@\310=\202\373\304W)\202\313!\202\304W)\206,:\205,@\314=\206,@\315>\205,\316A@!\206,\316\3038!)\2037\317\320	!\"\207\211:\203[@\321>?\205^@\302=\203UA@\304=\202^\322!\202^\304=)\203d	\207	\211:\203\210@\321>?\205\213@\302=\203\202A@\304=\202\213\322!\202\213\304=)\203\221\207\211:?\206\235@\323>)\203\360	\211:?\206\255@\323>)\203\360\324\307\242\325=\203\300A@\202\301	\242\325=\203\316	A@\202\317	\"\326\242\325=\203\336\3038\202\337\327	\242\325=\203\354\303	8\202\355\327\"\"\207\211:?\206\374@\306>)\204\n\330\331\"\210\317	E\207\330\331	\"\210\317	E\207" [a b float 2 0 math-trunc (bigpos bigneg) math-gcd bigneg bigpos (frac float) math-negp neg (* /) math-looks-negp calcFunc-gcd math-neg (bigpos bigneg) math-zerop (bigpos bigneg frac) math-make-frac frac calcFunc-lcm 1 calc-record-why integerp] 7])
(defalias 'calcFunc-lcm #[(a b) "\303	\"\211\211:?\206@\304>)\203\305\306	\"\n\"\202#\307	E)\207" [a b g calcFunc-gcd (bigpos bigneg frac float cplx polar) math-div math-mul calcFunc-lcm] 5])
(defalias 'calcFunc-egcd #[(a b) "\211:?\206\f@\306>)\2048\211:\205#@\307=\205#\3108\311Y)\203.\312\313!	\"\207\314\315\"\210\312	E\207	\211:?\206D@\306>)\204p	\211:\205[@\307=\205[\3108\311Y)\203f\312\313	!\"\207\314\315	\"\210\312	E\207\316\311\311\316	\317\211\211
\311=\204\301\320
\"\321\322\n@\"\"\321\322\n@\"\"
\f\nA\211\202\210\323F.	\207" [a b q t2 t1 v3 (bigpos bigneg) float 2 0 calcFunc-egcd math-trunc calc-record-why integerp 1 nil math-idivmod math-sub math-mul vec v2 v1 u3 u2 u1] 10])
(defconst math-small-factorial-table (byte-code "\300\301\211\302\303\304\305\306\307\310\311\312\313\314\315!\314\316!\314\317!\314\320!\314\321!\314\322!\314\323!\314\324!\314\325!&\207" [vector 1 2 6 24 120 720 5040 40320 362880 3628800 39916800 math-read-number-simple "479001600" "6227020800" "87178291200" "1307674368000" "20922789888000" "355687428096000" "6402373705728000" "121645100408832000" "2432902008176640000"] 23))
(defalias 'calcFunc-fact #[(n) "\306	\211:\203\n@\307=\202\n\310W)\203&\203\311\202{\312	\313\"\202{	\250\203@	\314X\2037\f	H\202{\315	S\316\317#\202{\320	!\203\207	\321\322\n
\"\323U*\203\207\324 \210\325	!\211\310Y\203\200\314X\203o\326\327!!\202{\3301T1\315S\316\331#)!\202{\312	\313\"\202{\332	!\203i\333	!\2112\205\266	\334\322\n
\"\323U*\205\266\335	\322\n
\"\323U*\205\266\336	!T\2113\2032\316U\2034\204\321\3373!\314W\2033\310W\203\354\340\341\3423[\"\3433\342_\344\317\316$\"\202\374\340\3433\316_\344\317\316$\341\3163\"\"2\34524\203\f\346\347D\202\350 \")\202e3\203T3\310Y\203T3\314W\203T2\351>\203T\324 \210\340\345\3433\352_2\317\352$2\317U\203H\353 \202J\354 \"\341\3523\"\"\202e\324 \210\3301\344\\1\355\326	!!)!*\202{	\356\232\203s	\202{\357\360	\"\210\327	D)\207" [temp n a calc-infinite-mode math-small-factorial-table b nil bigneg 0 (var uinf var-uinf) math-reject-arg range 20 math-factorial-iter 2 1 math-messy-integerp 100 math-compare -1 math-inexact-result math-trunc math-float calcFunc-fact math-normalize (float 1 0) math-numberp math-quarter-integer 1000 -1000 math-floor math-abs math-div math-pow -2 math-double-factorial-iter 3 math-mul calcFunc-sqrt (var pi var-pi) math-sqrt-pi (1 3) 4 math-gamma-1q math-gamma-3q math-gammap1-raw (var inf var-inf) calc-record-why numberp calc-internal-prec q tn calc-symbolic-mode] 8])
(defvar math-gamma-1q-cache-prec -100)
(defvar math-gamma-1q-cache nil)
(defvar math-gamma-1q-last-prec -100)
(defvar math-gamma-1q-last nil)
(byte-code "\301\302BB\301\207" [math-cache-list math-gamma-1q-cache-prec math-gamma-1q-last-prec] 3)
(defalias 'math-gamma-1q #[nil "	U\204&\305\n	Y\204!	\306\\\305	\307\\\310\311!)!)	\312\\!	\f\207" [math-gamma-1q-last-prec calc-internal-prec math-gamma-1q-cache-prec math-gamma-1q-cache math-gamma-1q-last math-normalize 4 3 math-gammap1-raw (float -75 -2) 2] 4])
(defvar math-gamma-3q-cache-prec -100)
(defvar math-gamma-3q-cache nil)
(defvar math-gamma-3q-last-prec -100)
(defvar math-gamma-3q-last nil)
(byte-code "\301\302BB\301\207" [math-cache-list math-gamma-3q-cache-prec math-gamma-3q-last-prec] 3)
(defalias 'math-gamma-3q #[nil "	U\204&\305\n	Y\204!	\306\\\305	\307\\\310\311!)!)	\312\\!	\f\207" [math-gamma-3q-last-prec calc-internal-prec math-gamma-3q-cache-prec math-gamma-3q-cache math-gamma-3q-last math-normalize 4 3 math-gammap1-raw (float -25 -2) 2] 4])
(defalias 'math-factorial-iter #[(count n f) "\304\246\305U\203	\306=\203\307\310\311S\"\n\"\210\312V\203(\313ST\314\n\"#\207\n\207" [n calc-display-working-message f count 5 1 lots math-do-working format "factorial(%d)" 0 math-factorial-iter math-mul] 6])
(defalias 'calcFunc-dfact #[(n) "\211:\203	@\306=\202	\307W)\203>\310!\203:\311=\203#\312\207\313\314\315\"\316=\2031\312\2022\311\317\320\321\"!\"\207\317D\207\211:\203b	@\322>?\205e	@\323=\203\\	A@\307=\202e\324	!\202e	\307=)\203k\312\207\250\203{\325\326\326\246\\\312\326$\207\327!\203\333\330!\331 \210\332\n!\203\326\n\333\334	\"\311U*\203\257\335\fT\325\n\326\n\326\246\\\336\326$)!\202\331\337\n!\340\341\326
\"\342\343
!!\"'\344\n!\203\313'\202\322\313\342!'\"*\202\331\317D)\207\345\232\203\343\207\346\332\"\210\317D\207" [n a temp b calc-internal-prec half bigneg 0 math-oddp -1 1 math-div math-mod 4 3 calcFunc-dfact math-sub -2 (bigpos bigneg) float math-zerop math-double-factorial-iter 2 math-messy-integerp math-trunc math-inexact-result natnump 200 math-compare math-normalize (float 1 0) math-div2 math-mul math-pow calcFunc-fact math-float math-evenp (var inf var-inf) calc-record-why even] 7])
(defalias 'math-double-factorial-iter #[(max n f step) "\305\246	W\203\n\306=\203\307\310\311	Z\"\"\210\fX\203*\312\f	\\\313\"	$\207\207" [n step calc-display-working-message f max 12 lots math-do-working format "dfact(%d)" math-double-factorial-iter math-mul] 6])
(defalias 'calcFunc-perm #[(n m) "\250\203	\250\203	X\203	\306Y\203\307		ZT\310#\207\311!\203S\312!\2039\313\314\n\"\315U*\204S\311	!\203S\312	!\203\243\313	\314\n\"\315U*\203\243\316!\204d\317\232\204d\320\321\"\210\316	!\204u	\322\232\204u\320	\321\"\210\311!\203\206\323!\203\206\320\324\"\210\311	!\203\227\323	!\203\227\320	\324\"\210\325\326!\326\327	\"!\"\207\330!\330	!\331 \210
\250\204\270\320
\332\"\210\f\250\204\302\320\f\332\"\210\f
X\203\316\f\306Y\204\323\320\f\324\"\210\333T\307\f
\fZT\334#)!*\207" [n m b a tm tn 0 math-factorial-iter 1 math-num-integerp math-messy-integerp 100 math-compare -1 math-realp (var inf var-inf) math-reject-arg realp (var inf var-inf) math-negp range math-div calcFunc-fact math-sub math-trunc math-inexact-result fixnump math-normalize (float 1 0) calc-internal-prec] 6])
(defalias 'calcFunc-choose #[(n m) "\250\203.	\250\203.	X\203.	\306Y\203.	\307\245V\203'\310	Z\311\211$\207\310	\311\211$\207\312!\2049\313\314\"\207\312	!\204D\313	\314\"\207\315	!\204n\315!\203[\316!\203[\317	E\207\320\321\322!!\323\321	!\321\324	\"!\"\"\207\316	!\203v\306\207\316!\203\230\317\325\211	\"\326\"	\"\327\330	!!\203\223\n\202\226\331\n!)\207\315!\203\256	\332\f\"\326U*\203\256\306\207\333 \210\330	!\211\250\204\277\313
\334\"\210
\335V\203\336\320\321\322!!\323\321\322	!!\321\322\324	\"!!\"\"\202\354\336 T \337
\311\211$)!)\207" [n m val b a tm 0 2 math-choose-iter 1 math-realp math-reject-arg realp math-num-integerp math-negp calcFunc-choose math-div calcFunc-fact math-float math-mul math-sub math-add -1 math-evenp math-trunc math-neg math-compare math-inexact-result fixnump 100 math-normalize math-choose-float-iter calc-internal-prec] 10])
(defalias 'math-choose-iter #[(m n i c) "\305\246\306U\203\305V\203	\307=\203\310\311\312S\"\n\"\210X\2032\313\fST\314\315\n\f\"\"$\207\n\207" [i calc-display-working-message c m n 5 1 lots math-do-working format "choose(%d)" math-choose-iter math-quotient math-mul] 8])
(defalias 'math-choose-float-iter #[(count n i c) "\305\246\306U\203	\307=\203\310\311\312S\"\n\"\210\313V\203/\314S\315\f\306\"T\316\317\n\f\"\"$\207\n\207" [i calc-display-working-message c count n 5 1 lots math-do-working format "choose(%d)" 0 math-choose-float-iter math-sub math-div math-mul] 8])
(defalias 'calcFunc-stir1 #[(n m) "\302	\303#\207" [n m math-stirling-number 1] 4])
(defalias 'calcFunc-stir2 #[(n m) "\302	\303#\207" [n m math-stirling-number 0] 4])
(defvar math-stirling-cache (vector [[1]] [[1]]))
(defalias 'math-stirling-number #[(n m k) "\306!\204\307\310\"\210\306	!\204\307	\310\"\210:\203\311!\250\204)\307\312\"\210	:\2032\311	!	\250\204<\307	\312\"\210	W\203D\313\207\nH\fGX\203\217\fGS\314\315\f\316\fG\314\"\"\n\fI\210T\211\fGW\203\213\f\316T\314\"\211I\210
\313\211I\210
\317I\210\202d*\202H\317U\203\234\320	\"\202\240\321	\")\207" [n m math-stirling-cache k math-stirling-local-cache row math-num-natnump math-reject-arg natnump math-trunc fixnump 0 nil vconcat make-vector 1 math-stirling-1 math-stirling-2 i] 5])
(defalias 'math-stirling-1 #[(n m) "	H\nH\206	H\n\303\304	S\nS\"\305\306	Z\304	S\n\"\"\"I\207" [math-stirling-local-cache n m math-add math-stirling-1 math-mul 1] 9])
(defalias 'math-stirling-2 #[(n m) "	H\nH\206	H\n\303\304	S\nS\"\305\n\304	S\n\"\"\"I\207" [math-stirling-local-cache n m math-add math-stirling-2 math-mul] 9])
(defvar math-random-table nil)
(defvar math-last-RandSeed nil)
(defvar math-random-ptr1 nil)
(defvar math-random-ptr2 nil)
(defvar math-random-shift nil)
(defvar math-random-cache nil)
(defvar math-gaussian-cache nil)
(defalias 'math-init-random-base #[nil "\306\300!\203\224\203\224\242\307=\204\275\211:?\206	@\310>)\203i\311\312\"\313\n\314\"T\313\315\n\314\"\314\"T\316\307\317\320\"B
T\211\321X\203e
\322_\320\246\211 \233\211!\f\240\210\fZ!@*\202?,\202n\323\324\"\210\307D\"\325#\326\233$\327
S\211\316V\203\220\330 \210\202\201)\202\275\325\211#\331%\316
T\211\332W\203\274\333\334\335 !%\"\336V\203\236%S%\202\236)&\325\211'\207" [var-RandSeed a seed mj mk i boundp vec (bigpos bigneg) math-sub 161803 math-mod 1000000 math-quotient 0 make-list 55 54 21 math-reject-arg "*RandSeed must be an integer" nil 31 200 math-random-base -4 30 lsh math-abs random 4095 math-random-table ii p math-random-ptr1 math-random-cache math-random-ptr2 math-random-shift math-last-RandSeed math-gaussian-cache] 5])
(defalias 'math-random-base #[nil "\203%	A\206\nAA\206\nA\305\306	\305	@@Z\307\"\240\310\"\311\"\207\305\306\312 \f\"\311\"\207" [var-RandSeed math-random-ptr1 math-random-table math-random-ptr2 math-random-shift logand lsh 524287 -6 1023 random] 6])
#@37 Return a random three digit number.
(defalias 'math-random-three-digit-number #[nil "\305\306\301!\203	\n=\204\307 \210\2041\310 \311\312\305\"\313T\211\312W\2031\310 I\210\202\f\314\245H\310 I\210\f\315Y\2041\f)\207" [i var-RandSeed math-last-RandSeed math-random-cache math-random-last nil boundp math-init-random-base math-random-base make-vector 13 -1 79 1000] 3 (#$ . 19299)])
#@35 Produce a random N digit integer.
(defalias 'math-random-digits #[(n) "\304\304\246Z\304\246	\\\304\245\305\n\305V\203&\306\307 \310\311\"\"\nS\211\202\312\313	\"!+\207" [n slop i rnum 3 0 math-add math-random-three-digit-number math-mul 1000 math-normalize math-scale-right] 6 (#$ . 19711)])
(defalias 'math-random-float #[nil "\301\302![\"\207" [calc-internal-prec math-make-float math-random-digits] 3])
(defalias 'math-gaussian-float #[nil "\306\307\\	\203	@U\203	A\310\202\202\311\312\313 \307\"\314\"\311\312\313 \307\"\314\"\311\315\n!\315!\"\211\316\317
\"\314U*\203H\320\f!\203g\311\312\313 \307\"\314\"\311\312\313 \307\"\314\"\311\315\n!\315!\"\211\2023\321\312\322\323\f!\f\"\324\"!\312\n\"B\312\",)!\207" [calc-internal-prec math-gaussian-cache v1 v2 r b math-normalize 2 nil math-add math-mul math-random-float -1 math-sqr 1 math-compare math-zerop math-sqrt math-div calcFunc-ln -2 a fac] 7])
(defalias 'calcFunc-random #[(max) "\211:\203$	@\306>?\205'	@\307=\203	A@\310=\202'\311	!\202'	\310=)\203.\312 \207\211:?\206:	@\313>)\203N\314!\315\n\316\\!\317\"*\207\211:?\206Z	@\320>)\203d\321\322 \"\207@\323=\203$\324!\203$\3258\3168\326	\f\"\327U*\203$\330!\203\324\331\321\322 \332\3168\3258\"\"\3258\"A@\333>\203\263
\3258\326	\f\"\310U*\204\313A@\334>\203\321
\3168\326	\f\"\310U*\203\321\335!\202\322
)\207A@\336>\203\345\331\3258\337\"\202\350\3258A@\340>\203\371\331\3168\337\"\202\374\3168'\211('\326	\f\"\327U*\203\331\335\332'(\"!(\"\202\"\341\342\"*\207@\343=\203>A\2039\335GS!T8\207\341\344\"\207@\345=\203j\324!\203jA@\211:?\206Y	@\320>)\203j\331\321\312 \3258\"A@\"\207\341\346\"\207" [max a digs r b val (bigpos bigneg) float 0 math-zerop math-gaussian-float (bigpos bigneg) math-numdigs math-random-digits 3 math-mod (bigpos bigneg frac float) math-mul math-random-float intv math-constp 2 math-compare -1 math-floatp math-add math-sub (0 1) (0 2) calcFunc-random (0 1) 1 (1 3) math-reject-arg "*Empty interval" vec "*Empty list" sdev realp hi lo] 8])
(defalias 'calcFunc-shuffle #[(n &optional max) "\204	\306	\211:?\206#\n@\307>\206#\n@\310=\205#\311\n8\312Y)\2037\313\314	!\211!\204<	\306=\204<\315	\316\"\210\317!\204O\320!\204O\242\321=\203_	\312W\203Z\315	\313\"\207\322	\"\207	\323X\203p	\312Y\203p\322	\"\207\242\324=\2039\325!\2039\326\327\3308\3118\"A@\331\236A\"\326\3118A@\332>\203\235\323\202\236\312\"	\312W\203\251\f\333\f!\204\264\315\334\"\210\f	\335\n
\"\306U*\203\307\315	\334\"\210	\336\f\330\"\335\n
\"\306U*\203\337\322	\"\2027	\337_\f\330_V\203\371\326\327\323\"\340	\f\341\f!#\"\2027\312\211\342$)*)	W\203.\343\f*Z!	)ZW\203&\326*\"$B$)T)*T*\202\340	\211\344$B#+*\207\242\344=\203\221GS+	\312W\203N+	+\311\245V\203i	+X\203i\340	+\345!#\202\217\346	\324\330\323GSF\"\211,--A\211-\203\214-\211@8\240\210\202x,*)\207\347!\203\257\333!\203\246\346	\324\311\312F\"\207\346	\324\323\312F\"\207\315\350\"\207" [max n a min num b -1 (bigpos bigneg) float 2 0 natnump math-trunc math-reject-arg integerp math-zerop math-floatp sdev math-simple-shuffle 1 intv math-constp math-add math-sub 3 ((0 . -1) (1 . 0) (2 . 0) (3 . 1)) (0 1) math-posp range math-compare math-quotient 4 math-shuffle-list calcFunc-index nil calcFunc-random vec copy-sequence calcFunc-shuffle math-integerp realp m tot size vals p] 8])
(defalias 'math-simple-shuffle #[(n max) "\304\211\nS\211\305Y\203\306\307!\211	\"\204
	B\202\301	*B\207" [val vec n max nil 0 math-member calcFunc-random] 3])
(defalias 'math-shuffle-list #[(n size vec) "\306\211	\nA\211A\203)\307
!
S\f\n8\f\n\233\n@\240\210\n\240\210\202\301\310\n\311#	\233,B\207" [size vec p temp k j nil calcFunc-random - -1 n] 5])
(defalias 'math-member #[(x list) "\203	@\232\204A\211\204\207" [list x] 3])
(defvar math-prime-test-cache '(-1))
(defalias 'math-prime-test #[(n iters) "\211:\205	@\306=)\203A\203GS8\211:\205-	@\307=\205-\310	8\311Y)\2035\312!\313\311V\203/\250\203Q\314X\203Q\315!UC\202\211:?\206]	@\316>)\204g\317\320!\202\211:\203u	@\321=\202x	\311W)\203\200\322\202\323\211:\203\231\f:\205\241\324	A\fA\"\325U\202\241\f:\206\241	\fW*\203\333\326!\325\313:;:T\211:H\211\246\311V\203\310
\211_W\204\256
\246\311U\203\326\313
D\202\327\327*\202<@\232\204\231A@\310\246\311U\203\361\330\202A@\331\246\311U\203\377\332\202\311=\211>\311=\204\"=\333>\334\"\\\335\246=\336>\334\"\211>\202=\337\246\311U\203/\340\202\225=\341\246\311U\203<\342\202\225=\343\246\311U\203I\344\202\225=\345\246\311U\203V\346\202\225=\347\246\311U\203c\350\202\225\351?\352!@\353\325\"A\354@!\203\206?T?\352@!@\202qT\355\311\356\357\360\361\362!\"\"E*\202<A@@\355=\204\252<A@\202\353\363\353\364\"!\310\"B\365B@#C\311DC\351=\204\352CA\232\204\352DT\211D?W\203\352\366\367C\211\"\"\211C\202\303CA\232\204C\351=\203D\311=\203\355<A@A@T\367\310<A@8\370\"E\202\371+\nD<\n@\355=\203)S\202*\311\211\2028\n)\207" [n a res iters b v vec float 2 0 math-trunc nil 5003 math-next-small-prime (bigpos bigneg) error "Argument must be an integer" bigneg (nil) 8000000 math-compare-bignum -1 math-fixnum (t) (nil 2) 5 (nil 5) calcFunc-mod 1000000 111111 math-quotient 3 (nil 3) 7 (nil 7) 11 (nil 11) 13 (nil 13) 37 (nil 37) 1 math-div2 math-add math-evenp maybe math-sub 100 math-div (float 232 0) math-numdigs calcFunc-random -2 math-pow-mod math-mod math-mul (float 25 -2) (nil unknown) i math-primes-table math-prime-test-cache sum q math-prime-test-cache-k math-prime-test-cache-q math-prime-test-cache-nm1 x y j] 9])
(defalias 'calcFunc-prime #[(n &optional iters) "\302!\204\303\304\"\210	\203\302	!\204\303	\304\"\210\305\306!\306	\206$\307!\"@\203,\307\207\310\207" [n iters math-num-integerp math-reject-arg integerp math-prime-test math-trunc 1 0] 4])
(defalias 'calcFunc-prfac #[(n) "\306	\211:\205\n@\307=\205\310\n8\311Y)\203\312	!	\211:\203+\n@\313=\202.\n\311Y)\203\310	\211:\203K:\205S\314\nAA\"\315U\202S:\206S\nW*\203\316\211\211\311	\317=\204\377\fGW\203\377\fH	
=\203\200\317\311B\202\237	\317=\203\214\311\317B\202\237	:\203\230\320	
\"\202\237	
\245	
\246B\211A\311=\203\303\321=\203\264\322\323
\"\210
C\244@\211\202u	\317=\204\371
@\211:\203\344:\205\354\314\nAA\"\315U\202\354:\206\354\nW*\204\371	C\244\317\fT\202a	\317=\211\204	C\244\324,B\207\324	D\207	\211:?\206$\n@\325>)\203=	\315=\2032\324	D\207\324\315\326\327	!!ABB\207\330\331	\"\210\326	D\207" [math-prime-factors-finished n a b i p t float 2 0 math-trunc bigpos math-compare-bignum -1 nil 1 math-idivmod lots math-do-working "factor" vec (bigpos bigneg) calcFunc-prfac math-neg calc-record-why integerp res factors math-primes-table calc-display-working-message] 6])
(defalias 'calcFunc-totient #[(n) "\211:\205	@\306=\205\307	8\310Y)\203\311!\211:\203)	@\312=\202,	\310Y)\203\326\307\211:\203I\n:\205Q\313	A\nA\"\314U\202Q\n:\206Q	\nW*\203\236\211:\203\217	@\315=\206\222	@\312=?\205\222	@\316>\203\211	A@\211:\203\202	@\315=\202\205	\310W)\202\222\317	!\202\222	\310W)\203\234\320\321!!\207\207\322!A\323
\203\314\f\203\310\f@\324\325\"\326\314\"\"\f@\232\203\251\fA\202\273\202\324\327\330\"\210\320D*\207\327\331\"\210\320D\207" [n a b p factors math-prime-factors-finished float 2 0 math-trunc bigpos math-compare-bignum -1 bigneg (frac float) math-negp calcFunc-totient math-abs calcFunc-prfac nil math-mul math-div math-add calc-record-why "*Number too big to factor" natnump] 6])
(defalias 'calcFunc-moebius #[(n) "\211:\205	@\306=\205\307	8\310Y)\203\311!\211:\203)	@\312=\202,	\310Y)\203\331\310=\204\331\307\211:\203O\n:\205W\313	A\nA\"\314U\202W\n:\206W	\nW*\203\244\211:\203\225	@\315=\206\230	@\312=?\205\230	@\316>\203\217	A@\211:\203\210	@\315=\202\213	\310W)\202\230\317	!\202\230	\310W)\203\242\320\321!!\207\322\207\323!A\322
\203\317\f\203\313\f@\fA@\232\203\300\310\202\303\324!\fA\211\204\263\202\327\325\326\"\210\320D*\207\325\327\"\210\320D\207" [n a b mu factors math-prime-factors-finished float 2 0 math-trunc bigpos math-compare-bignum -1 bigneg (frac float) math-negp calcFunc-moebius math-abs 1 calcFunc-prfac math-neg calc-record-why "Number too big to factor" posintp] 4])
(defalias 'calcFunc-nextprime #[(n &optional iters) "\211:?\206\f	@\305>)\203i\211:\203	@\306=\202!	\307W)\203'\310\207\250\2037\311W\2037\312T!\207\313!\203B\314\315\"\316\317\314\310\"\211\206P\320\"\211@\203D\f\203f\n@\321=\203f\322\n!\210)\207\211:?\206u	@\323>)\203\200\324\325!\"\207\326\327\"\207" [n a res iters calc-verbose-nextprime (bigpos bigneg) bigneg 0 2 5003 math-next-small-prime math-evenp math-add -1 nil math-prime-test 1 maybe calc-report-prime-test (bigpos bigneg frac float) calcFunc-nextprime math-trunc math-reject-arg integerp] 5])
(defalias 'calcFunc-prevprime #[(n &optional iters) "\211:?\206\f	@\306>)\203R\307\310	\n\"\311U*\203 \312\207\313!\203+\314\315\"\316\317\314\320\"\211\f\2069\315\"\211@\203-
\203O@\321=\203O\322!\210)\207\211:?\206^	@\323>)\203i\324\325!\f\"\207\326\327\"\207" [n a b res iters calc-verbose-nextprime (bigpos bigneg) 4 math-compare -1 2 math-evenp math-add 1 nil math-prime-test -2 maybe calc-report-prime-test (bigpos bigneg frac float) calcFunc-prevprime math-ceiling math-reject-arg integerp] 5])
(defalias 'math-next-small-prime #[(n) "\250\2039\305V\2039\306	G\307\fZ\310V\2034	\311\f\\\306\"\211HV\203.\n\202\n\211\202	H+\207\305\207" [n math-primes-table mid hi lo 2 -1 nil 1 ash] 6])
(provide 'calc-comb)

MMCT - 2023