| Server IP : 217.160.0.212 / Your IP : 216.73.216.141 Web Server : Apache System : Linux www 6.18.51-i1-ampere #1196 SMP Fri Sep 11 20:43:55 CEST 2026 aarch64 User : sws1073854427 ( 1073854427) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/share/emacs/28.2/lisp/calc/ |
Upload File : |
;ELC
;;; Compiled
;;; in Emacs version 28.2
;;; with all optimizations.
(byte-code "\300\301!\210\300\302!\207" [require calc-ext calc-macs] 2)
#@41
(fn LANG &optional OPTION NO-REFRESH)
(defalias 'calc-set-language #[769 "\306N\206 \307 \310N\311N\312N\313N\314N\206 \315\316N\317N\320N\2062 \321\322N\206; \323\211\203I \211\207\324\325D\326#\207" [math-expr-opers math-expr-function-mapping math-expr-variable-mapping calc-language-input-filter calc-language-output-filter calc-vector-brackets math-oper-table math-standard-ops math-function-table math-variable-table math-input-filter math-output-filter math-vector-brackets "[]" math-complex-format math-radix-formatter math-function-open "(" math-function-close ")" calc-change-mode (calc-language calc-language-option) t calc-complex-format calc-radix-formatter calc-function-open calc-function-close calc-language calc-language-option] 7 (#$ . 156)])
(defalias 'calc-normal-language #[0 "\300\301!\207" [calc-do #[0 "\300\301!\210\302\303!\207" [calc-set-language nil message "Normal language mode"] 2]] 2 nil nil])
(defalias 'calc-flat-language #[0 "\300\301!\207" [calc-do #[0 "\300\301!\210\302\303!\207" [calc-set-language flat message "Flat language mode (all stack entries shown on one line)"] 2]] 2 nil nil])
(defalias 'calc-big-language #[0 "\300\301!\207" [calc-do #[0 "\300\301!\210\302\303!\207" [calc-set-language big message "\"Big\" language mode"] 2]] 2 nil nil])
(defalias 'calc-unformatted-language #[0 "\300\301!\207" [calc-do #[0 "\300\301!\210\302\303!\207" [calc-set-language unform message "Unformatted language mode"] 2]] 2 nil nil])
(defalias 'calc-c-language #[0 "\300\301!\207" [calc-do #[0 "\300\301!\210\302\303!\207" [calc-set-language c message "C language mode"] 2]] 2 nil nil])
(byte-code "\300\301\302\303#\210\300\301\304\305#\207" [put c math-oper-table (("u!" calcFunc-lnot -1 1000) ("~" calcFunc-not -1 1000) ("u+" ident -1 197) ("u-" neg -1 197) ("*" * 190 191) ("/" / 190 191) ("%" % 190 191) ("+" + 180 181) ("-" - 180 181) ("<<" calcFunc-lsh 170 171) (">>" calcFunc-rsh 170 171) ("<" calcFunc-lt 160 161) (">" calcFunc-gt 160 161) ("<=" calcFunc-leq 160 161) (">=" calcFunc-geq 160 161) ("==" calcFunc-eq 150 151) ("!=" calcFunc-neq 150 151) ("&" calcFunc-and 140 141) ("^" calcFunc-xor 131 130) ("|" calcFunc-or 120 121) ("&&" calcFunc-land 110 111) ("||" calcFunc-lor 100 101) ("?" (math-read-if) 91 90) ("!!!" calcFunc-pnot -1 88) ("&&&" calcFunc-pand 85 86) ("|||" calcFunc-por 75 76) ("=" calcFunc-assign 51 50) (":=" calcFunc-assign 51 50) ("::" calcFunc-condition 45 46)) math-function-table ((acos . calcFunc-arccos) (acosh . calcFunc-arccosh) (asin . calcFunc-arcsin) (asinh . calcFunc-arcsinh) (atan . calcFunc-arctan) (atan2 . calcFunc-arctan2) (atanh . calcFunc-arctanh) (fma math-C-parse-fma) (fmax . calcFunc-max) (j0 math-C-parse-bess) (jn . calcFunc-besJ) (j1 math-C-parse-bess) (yn . calcFunc-besY) (y0 math-C-parse-bess) (y1 math-C-parse-bess) (tgamma . calcFunc-gamma))] 4)
#@49 Parse C's j0, j1, y0, y1 functions.
(fn F VAL)
(defalias 'math-C-parse-bess #[514 "\300 \301 \210\302\303\267\202 \304\202 \305\202 \306\202 \307\202 \310\"\207" [math-read-expr-list math-read-token append #s(hash-table size 4 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (j0 12 j1 16 y0 20 y1 24)) (calcFunc-besJ 0) (calcFunc-besJ 1) (calcFunc-besY 0) (calcFunc-besY 1) nil] 6 (#$ . 3041)])
#@63 Parse C's fma function fma(x,y,z) => (x * y + z).
(fn F VAL)
(defalias 'math-C-parse-fma #[514 "\300 \301 \210\302\303@A@E\3048E\207" [math-read-expr-list math-read-token calcFunc-add calcFunc-mul 2] 7 (#$ . 3466)])
(byte-code "\300\301\302\303#\210\300\301\304\305#\210\300\301\306\307#\210\300\301\310\311#\210\312\313\301\"\210\312\314\301\"\210\312\315\301\"\210\312\316\301\"\207" [put c math-variable-table ((M_PI . var-pi) (M_E . var-e)) math-vector-brackets "{}" math-radix-formatter #[514 "\300U\203 \301\302\"\207\303U\203 \301\304\"\207\301\305#\207" [16 format "0x%s" 8 "0%s" "%d#%s"] 6 "\n\n(fn R S)"] math-compose-subscr #[257 "\211AA\300\301A@\302\"\303\304\305\306#\307\257\207" [horiz math-compose-expr 1000 "[" math-compose-vector ", " 0 "]"] 9 "\n\n(fn A)"] add-to-list calc-lang-slash-idiv calc-lang-allow-underscores calc-lang-c-type-hex calc-lang-brackets-are-subscripts] 4)
#@10
(fn N)
(defalias 'calc-pascal-language #[257 "\211C\300\301\302\"!\207" [calc-do make-closure #[0 "\300\242\203\f \300\301\300\242!\240\210\302\303\300\242\"\210\304\300\242\203. \300\242\305U\204. \300\242\305V\203* \306\202/ \307\202/ \310!\207" [V0 prefix-numeric-value calc-set-language pascal message 0 "Pascal language mode (all uppercase)" "Pascal language mode (all lowercase)" "Pascal language mode"] 3]] 6 (#$ . 4384) "P"])
(byte-code "\300\301\302\303#\210\300\301\304\305#\210\300\301\306\307#\210\300\301\310\311#\210\300\301\312\313#\210\300\301\314\315#\210\316\317\301\"\210\316\320\301\"\207" [put pascal math-oper-table (("not" calcFunc-lnot -1 1000) ("*" * 190 191) ("/" / 190 191) ("and" calcFunc-and 190 191) ("div" calcFunc-idiv 190 191) ("mod" % 190 191) ("u+" ident -1 185) ("u-" neg -1 185) ("+" + 180 181) ("-" - 180 181) ("or" calcFunc-or 180 181) ("xor" calcFunc-xor 180 181) ("shl" calcFunc-lsh 180 181) ("shr" calcFunc-rsh 180 181) ("in" calcFunc-in 160 161) ("<" calcFunc-lt 160 161) (">" calcFunc-gt 160 161) ("<=" calcFunc-leq 160 161) (">=" calcFunc-geq 160 161) ("=" calcFunc-eq 160 161) ("<>" calcFunc-neq 160 161) ("!!!" calcFunc-pnot -1 85) ("&&&" calcFunc-pand 80 81) ("|||" calcFunc-por 75 76) (":=" calcFunc-assign 51 50) ("::" calcFunc-condition 45 46)) math-input-filter calc-input-case-filter math-output-filter calc-output-case-filter math-radix-formatter #[514 "\300U\203 \301\302\"\207\301\303#\207" [16 format "$%s" "%d#%s"] 6 "\n\n(fn R S)"] math-lang-read-symbol ((36 (eq (string-match "\\(\\$[[:xdigit:]]+\\)\\($\\|[^0-9a-zA-Zα-ωΑ-Ω]\\)" math-exp-str math-exp-pos) math-exp-pos) (setq math-exp-token 'number math-expr-data (math-match-substring math-exp-str 1) math-exp-pos (match-end 1)))) math-compose-subscr #[257 "\211AAA@\242\300=\203 \301A@AA\"\262A@\262\202 \302\303A@\304\"\305\306\307\310#\311\257\207" [calcFunc-subscr append horiz math-compose-expr 1000 "[" math-compose-vector ", " 0 "]"] 9 "\n\n(fn A)"] add-to-list calc-lang-allow-underscores calc-lang-brackets-are-subscripts] 4)
#@12
(fn STR)
(defalias 'calc-input-case-filter #[257 "\203\n \301U\203 \207\211\227\207" [calc-language-option 0] 3 (#$ . 6459)])
#@12
(fn STR)
(defalias 'calc-output-case-filter #[257 "\203\n \301U\203 \207\301V\203 \211\226\207\211\227\207" [calc-language-option 0] 3 (#$ . 6596)])
#@10
(fn N)
(defalias 'calc-fortran-language #[257 "\211C\300\301\302\"!\207" [calc-do make-closure #[0 "\300\242\203\f \300\301\300\242!\240\210\302\303\300\242\"\210\304\300\242\203. \300\242\305U\204. \300\242\305V\203* \306\202/ \307\202/ \310!\207" [V0 prefix-numeric-value calc-set-language fortran message 0 "FORTRAN language mode (all uppercase)" "FORTRAN language mode (all lowercase)" "FORTRAN language mode"] 3]] 6 (#$ . 6758) "P"])
(byte-code "\300\301\302\303#\210\300\301\304\305#\210\300\301\306\307#\210\300\301\310\311#\210\300\301\312\313#\210\300\301\314\315#\210\300\301\316\317#\210\320\321\301\"\210\320\322\301\"\210\320\323\301\"\207" [put fortran math-oper-table (("u/" (math-parse-fortran-vector) -1 1) ("/" (math-parse-fortran-vector-end) 1 -1) ("**" ^ 201 200) ("u+" ident -1 191) ("u-" neg -1 191) ("*" * 190 191) ("/" / 190 191) ("+" + 180 181) ("-" - 180 181) (".LT." calcFunc-lt 160 161) (".GT." calcFunc-gt 160 161) (".LE." calcFunc-leq 160 161) (".GE." calcFunc-geq 160 161) (".EQ." calcFunc-eq 160 161) (".NE." calcFunc-neq 160 161) (".NOT." calcFunc-lnot -1 121) (".AND." calcFunc-land 110 111) (".OR." calcFunc-lor 100 101) ("!!!" calcFunc-pnot -1 85) ("&&&" calcFunc-pand 80 81) ("|||" calcFunc-por 75 76) ("=" calcFunc-assign 51 50) (":=" calcFunc-assign 51 50) ("::" calcFunc-condition 45 46)) math-vector-brackets "//" math-function-table ((acos . calcFunc-arccos) (acosh . calcFunc-arccosh) (aimag . calcFunc-im) (aint . calcFunc-ftrunc) (asin . calcFunc-arcsin) (asinh . calcFunc-arcsinh) (atan . calcFunc-arctan) (atan2 . calcFunc-arctan2) (atanh . calcFunc-arctanh) (conjg . calcFunc-conj) (log . calcFunc-ln) (nint . calcFunc-round) (real . calcFunc-re)) math-input-filter calc-input-case-filter math-output-filter calc-output-case-filter math-lang-read-symbol ((46 (eq (string-match "\\.[a-zA-Zα-ωΑ-Ω][a-zA-Zα-ωΑ-Ω][a-zA-Zα-ωΑ-Ω]?\\." math-exp-str math-exp-pos) math-exp-pos) (setq math-exp-token 'punc math-expr-data (upcase (math-match-substring math-exp-str 0)) math-exp-pos (match-end 0)))) math-compose-subscr #[257 "\211AAA@\242\300=\203 \301A@AA\"\262A@\262\202 \302\303A@\304\"\305\306\307\310#\311\257\207" [calcFunc-subscr append horiz math-compose-expr 1000 "(" math-compose-vector ", " 0 ")"] 9 "\n\n(fn A)"] add-to-list calc-lang-slash-idiv calc-lang-allow-underscores calc-lang-parens-are-subscripts] 4)
(defvar math-parsing-fortran-vector nil)
#@11
(fn OP)
(defalias 'math-parse-fortran-vector #[257 "\303\304\305\306\"@A)\207" [math-parsing-fortran-vector math-exp-token math-expr-data (end . "