home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1996-10-12 | 35.8 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
1%
| dexvert
| Combustion 2 Particle Library (other/combustion2ParticleLibrary)
| ext
| Unsupported |
100%
| file
| Emacs v18 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| gt2
| Kopftext: '(require (quote calc-ext))
| default (weak)
| |
100%
| xdgMime
| text/x-emacs-lisp
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 0a 28 72 65 71 75 69 72 | 65 20 28 71 75 6f 74 65 |.(requir|e (quote|
|00000010| 20 63 61 6c 63 2d 65 78 | 74 29 29 0a 0a 28 64 65 | calc-ex|t))..(de|
|00000020| 66 75 6e 20 63 61 6c 63 | 2d 4e 65 65 64 2d 63 61 |fun calc|-Need-ca|
|00000030| 6c 63 2d 61 6c 67 20 6e | 69 6c 20 28 62 79 74 65 |lc-alg n|il (byte|
|00000040| 2d 63 6f 64 65 20 22 c0 | 87 22 20 5b 6e 69 6c 5d |-code ".|." [nil]|
|00000050| 20 31 29 29 0a 0a 28 64 | 65 66 75 6e 20 63 61 6c | 1))..(d|efun cal|
|00000060| 63 2d 61 6c 67 2d 65 76 | 61 6c 75 61 74 65 20 28 |c-alg-ev|aluate (|
|00000070| 61 72 67 29 20 28 69 6e | 74 65 72 61 63 74 69 76 |arg) (in|teractiv|
|00000080| 65 20 22 70 22 29 20 28 | 62 79 74 65 2d 63 6f 64 |e "p") (|byte-cod|
|00000090| 65 20 22 c0 88 c1 c2 c3 | 5c 22 87 22 20 5b 6e 69 |e ".....|\"." [ni|
|000000a0| 6c 20 63 61 6c 63 2d 64 | 6f 20 28 6c 61 6d 62 64 |l calc-d|o (lambd|
|000000b0| 61 20 6e 69 6c 20 28 62 | 79 74 65 2d 63 6f 64 65 |a nil (b|yte-code|
|000000c0| 20 22 08 c4 3e 3f 85 08 | 00 08 18 c2 19 c5 0b 21 | "..>?..|.......!|
|000000d0| 88 c6 c7 c8 c9 c7 21 23 | 29 29 87 22 20 5b 63 61 |......!#|))." [ca|
|000000e0| 6c 63 2d 73 69 6d 70 6c | 69 66 79 2d 6d 6f 64 65 |lc-simpl|ify-mode|
|000000f0| 20 6d 61 74 68 2d 73 69 | 6d 70 6c 69 66 79 2d 6f | math-si|mplify-o|
|00000100| 6e 6c 79 20 6e 69 6c 20 | 61 72 67 20 28 6e 6f 6e |nly nil |arg (non|
|00000110| 65 20 6e 75 6d 29 20 63 | 61 6c 63 2d 6d 6f 64 69 |e num) c|alc-modi|
|00000120| 66 79 2d 73 69 6d 70 6c | 69 66 79 2d 6d 6f 64 65 |fy-simpl|ify-mode|
|00000130| 20 63 61 6c 63 2d 65 6e | 74 65 72 2d 72 65 73 75 | calc-en|ter-resu|
|00000140| 6c 74 20 31 20 22 64 73 | 6d 70 22 20 63 61 6c 63 |lt 1 "ds|mp" calc|
|00000150| 2d 74 6f 70 5d 20 36 29 | 29 20 31 31 35 5d 20 33 |-top] 6)|) 115] 3|
|00000160| 29 29 0a 0a 28 64 65 66 | 75 6e 20 63 61 6c 63 2d |))..(def|un calc-|
|00000170| 6d 6f 64 69 66 79 2d 73 | 69 6d 70 6c 69 66 79 2d |modify-s|implify-|
|00000180| 6d 6f 64 65 20 28 61 72 | 67 29 20 28 62 79 74 65 |mode (ar|g) (byte|
|00000190| 2d 63 6f 64 65 20 22 c2 | 08 21 c3 55 83 0e 00 c4 |-code ".|.!.U....|
|000001a0| 89 11 82 19 00 c2 08 21 | c5 59 85 19 00 c6 89 11 |.......!|.Y......|
|000001b0| 88 08 c7 57 85 24 00 09 | 43 89 11 87 22 20 5b 61 |...W.$..|C..." [a|
|000001c0| 72 67 20 63 61 6c 63 2d | 73 69 6d 70 6c 69 66 79 |rg calc-|simplify|
|000001d0| 2d 6d 6f 64 65 20 6d 61 | 74 68 2d 61 62 73 20 32 |-mode ma|th-abs 2|
|000001e0| 20 61 6c 67 20 33 20 65 | 78 74 20 30 5d 20 34 29 | alg 3 e|xt 0] 4)|
|000001f0| 29 0a 0a 28 64 65 66 75 | 6e 20 63 61 6c 63 2d 73 |)..(defu|n calc-s|
|00000200| 69 6d 70 6c 69 66 79 20 | 6e 69 6c 20 28 69 6e 74 |implify |nil (int|
|00000210| 65 72 61 63 74 69 76 65 | 29 20 28 62 79 74 65 2d |eractive|) (byte-|
|00000220| 63 6f 64 65 20 22 c0 88 | c1 c2 c3 5c 22 87 22 20 |code "..|...\"." |
|00000230| 5b 6e 69 6c 20 63 61 6c | 63 2d 64 6f 20 28 6c 61 |[nil cal|c-do (la|
|00000240| 6d 62 64 61 20 6e 69 6c | 20 28 62 79 74 65 2d 63 |mbda nil| (byte-c|
|00000250| 6f 64 65 20 22 08 c1 3e | 3f 85 08 00 08 18 c2 c3 |ode "..>|?.......|
|00000260| c4 c5 c6 c3 21 21 23 29 | 87 22 20 5b 63 61 6c 63 |....!!#)|." [calc|
|00000270| 2d 73 69 6d 70 6c 69 66 | 79 2d 6d 6f 64 65 20 28 |-simplif|y-mode (|
|00000280| 6e 6f 6e 65 20 6e 75 6d | 29 20 63 61 6c 63 2d 65 |none num|) calc-e|
|00000290| 6e 74 65 72 2d 72 65 73 | 75 6c 74 20 31 20 22 73 |nter-res|ult 1 "s|
|000002a0| 69 6d 70 22 20 6d 61 74 | 68 2d 73 69 6d 70 6c 69 |imp" mat|h-simpli|
|000002b0| 66 79 20 63 61 6c 63 2d | 74 6f 70 2d 6e 5d 20 36 |fy calc-|top-n] 6|
|000002c0| 29 29 20 35 32 38 5d 20 | 33 29 29 0a 0a 28 64 65 |)) 528] |3))..(de|
|000002d0| 66 75 6e 20 63 61 6c 63 | 2d 73 69 6d 70 6c 69 66 |fun calc|-simplif|
|000002e0| 79 2d 65 78 74 65 6e 64 | 65 64 20 6e 69 6c 20 28 |y-extend|ed nil (|
|000002f0| 69 6e 74 65 72 61 63 74 | 69 76 65 29 20 28 62 79 |interact|ive) (by|
|00000300| 74 65 2d 63 6f 64 65 20 | 22 c0 88 c1 c2 c3 5c 22 |te-code |".....\"|
|00000310| 87 22 20 5b 6e 69 6c 20 | 63 61 6c 63 2d 64 6f 20 |." [nil |calc-do |
|00000320| 28 6c 61 6d 62 64 61 20 | 6e 69 6c 20 28 62 79 74 |(lambda |nil (byt|
|00000330| 65 2d 63 6f 64 65 20 22 | 08 c1 3e 3f 85 08 00 08 |e-code "|..>?....|
|00000340| 18 c2 c3 c4 c5 c6 c3 21 | 21 23 29 87 22 20 5b 63 |.......!|!#)." [c|
|00000350| 61 6c 63 2d 73 69 6d 70 | 6c 69 66 79 2d 6d 6f 64 |alc-simp|lify-mod|
|00000360| 65 20 28 6e 6f 6e 65 20 | 6e 75 6d 29 20 63 61 6c |e (none |num) cal|
|00000370| 63 2d 65 6e 74 65 72 2d | 72 65 73 75 6c 74 20 31 |c-enter-|result 1|
|00000380| 20 22 65 73 6d 70 22 20 | 6d 61 74 68 2d 73 69 6d | "esmp" |math-sim|
|00000390| 70 6c 69 66 79 2d 65 78 | 74 65 6e 64 65 64 20 63 |plify-ex|tended c|
|000003a0| 61 6c 63 2d 74 6f 70 2d | 6e 5d 20 36 29 29 20 37 |alc-top-|n] 6)) 7|
|000003b0| 34 36 5d 20 33 29 29 0a | 0a 28 64 65 66 75 6e 20 |46] 3)).|.(defun |
|000003c0| 63 61 6c 63 2d 65 78 70 | 61 6e 64 2d 66 6f 72 6d |calc-exp|and-form|
|000003d0| 75 6c 61 20 28 61 72 67 | 29 20 28 69 6e 74 65 72 |ula (arg|) (inter|
|000003e0| 61 63 74 69 76 65 20 22 | 70 22 29 20 28 62 79 74 |active "|p") (byt|
|000003f0| 65 2d 63 6f 64 65 20 22 | c0 88 c1 c2 c3 5c 22 87 |e-code "|.....\".|
|00000400| 22 20 5b 6e 69 6c 20 63 | 61 6c 63 2d 64 6f 20 28 |" [nil c|alc-do (|
|00000410| 6c 61 6d 62 64 61 20 6e | 69 6c 20 28 62 79 74 65 |lambda n|il (byte|
|00000420| 2d 63 6f 64 65 20 22 08 | c7 3e 3f 85 08 00 08 18 |-code ".|.>?.....|
|00000430| c2 19 c8 0b 21 88 c9 ca | cb 0b cc 56 83 21 00 c5 |....!...|...V.!..|
|00000440| 1c cd ca 21 29 82 30 00 | cd ca 21 1e 06 ce 0e 06 |...!).0.|..!.....|
|00000450| 21 86 2f 00 0e 06 29 23 | 29 29 87 22 20 5b 63 61 |!./...)#|))." [ca|
|00000460| 6c 63 2d 73 69 6d 70 6c | 69 66 79 2d 6d 6f 64 65 |lc-simpl|ify-mode|
|00000470| 20 6d 61 74 68 2d 73 69 | 6d 70 6c 69 66 79 2d 6f | math-si|mplify-o|
|00000480| 6e 6c 79 20 6e 69 6c 20 | 61 72 67 20 6d 61 74 68 |nly nil |arg math|
|00000490| 2d 65 78 70 61 6e 64 2d | 66 6f 72 6d 75 6c 61 73 |-expand-|formulas|
|000004a0| 20 74 20 74 6f 70 20 28 | 6e 6f 6e 65 20 6e 75 6d | t top (|none num|
|000004b0| 29 20 63 61 6c 63 2d 6d | 6f 64 69 66 79 2d 73 69 |) calc-m|odify-si|
|000004c0| 6d 70 6c 69 66 79 2d 6d | 6f 64 65 20 63 61 6c 63 |mplify-m|ode calc|
|000004d0| 2d 65 6e 74 65 72 2d 72 | 65 73 75 6c 74 20 31 20 |-enter-r|esult 1 |
|000004e0| 22 65 78 70 66 22 20 30 | 20 63 61 6c 63 2d 74 6f |"expf" 0| calc-to|
|000004f0| 70 2d 6e 20 6d 61 74 68 | 2d 65 78 70 61 6e 64 2d |p-n math|-expand-|
|00000500| 66 6f 72 6d 75 6c 61 5d | 20 38 29 29 20 39 38 32 |formula]| 8)) 982|
|00000510| 5d 20 33 29 29 0a 0a 28 | 64 65 66 75 6e 20 63 61 |] 3))..(|defun ca|
|00000520| 6c 63 2d 66 61 63 74 6f | 72 20 28 61 72 67 29 20 |lc-facto|r (arg) |
|00000530| 28 69 6e 74 65 72 61 63 | 74 69 76 65 20 22 50 22 |(interac|tive "P"|
|00000540| 29 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 88 |) (byte-|code "..|
|00000550| c1 c2 c3 5c 22 87 22 20 | 5b 6e 69 6c 20 63 61 6c |...\"." |[nil cal|
|00000560| 63 2d 64 6f 20 28 6c 61 | 6d 62 64 61 20 6e 69 6c |c-do (la|mbda nil|
|00000570| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c1 c2 c3 | (byte-c|ode "...|
|00000580| 20 83 0b 00 c4 82 0c 00 | c5 08 23 87 22 20 5b 61 | .......|..#." [a|
|00000590| 72 67 20 63 61 6c 63 2d | 75 6e 61 72 79 2d 6f 70 |rg calc-|unary-op|
|000005a0| 20 22 66 63 74 72 22 20 | 63 61 6c 63 2d 69 73 2d | "fctr" |calc-is-|
|000005b0| 68 79 70 65 72 62 6f 6c | 69 63 20 63 61 6c 63 46 |hyperbol|ic calcF|
|000005c0| 75 6e 63 2d 66 61 63 74 | 6f 72 73 20 63 61 6c 63 |unc-fact|ors calc|
|000005d0| 46 75 6e 63 2d 66 61 63 | 74 6f 72 5d 20 35 29 29 |Func-fac|tor] 5))|
|000005e0| 20 31 33 33 32 5d 20 33 | 29 29 0a 0a 28 64 65 66 | 1332] 3|))..(def|
|000005f0| 75 6e 20 63 61 6c 63 2d | 65 78 70 61 6e 64 20 28 |un calc-|expand (|
|00000600| 6e 29 20 28 69 6e 74 65 | 72 61 63 74 69 76 65 20 |n) (inte|ractive |
|00000610| 22 50 22 29 20 28 62 79 | 74 65 2d 63 6f 64 65 20 |"P") (by|te-code |
|00000620| 22 c0 88 c1 c2 c3 5c 22 | 87 22 20 5b 6e 69 6c 20 |".....\"|." [nil |
|00000630| 63 61 6c 63 2d 64 6f 20 | 28 6c 61 6d 62 64 61 20 |calc-do |(lambda |
|00000640| 6e 69 6c 20 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |nil (byt|e-code "|
|00000650| c1 c2 c3 c4 c5 c6 c2 21 | 44 08 85 11 00 c7 08 21 |.......!|D......!|
|00000660| 43 5c 22 23 87 22 20 5b | 6e 20 63 61 6c 63 2d 65 |C\"#." [|n calc-e|
|00000670| 6e 74 65 72 2d 72 65 73 | 75 6c 74 20 31 20 22 65 |nter-res|ult 1 "e|
|00000680| 78 70 61 22 20 61 70 70 | 65 6e 64 20 63 61 6c 63 |xpa" app|end calc|
|00000690| 46 75 6e 63 2d 65 78 70 | 61 6e 64 20 63 61 6c 63 |Func-exp|and calc|
|000006a0| 2d 74 6f 70 2d 6e 20 70 | 72 65 66 69 78 2d 6e 75 |-top-n p|refix-nu|
|000006b0| 6d 65 72 69 63 2d 76 61 | 6c 75 65 5d 20 38 29 29 |meric-va|lue] 8))|
|000006c0| 20 31 35 34 35 5d 20 33 | 29 29 0a 0a 28 64 65 66 | 1545] 3|))..(def|
|000006d0| 75 6e 20 63 61 6c 63 2d | 63 6f 6c 6c 65 63 74 20 |un calc-|collect |
|000006e0| 28 26 6f 70 74 69 6f 6e | 61 6c 20 76 61 72 29 20 |(&option|al var) |
|000006f0| 28 69 6e 74 65 72 61 63 | 74 69 76 65 20 22 73 43 |(interac|tive "sC|
|00000700| 6f 6c 6c 65 63 74 20 74 | 65 72 6d 73 20 69 6e 76 |ollect t|erms inv|
|00000710| 6f 6c 76 69 6e 67 3a 20 | 22 29 20 28 62 79 74 65 |olving: |") (byte|
|00000720| 2d 63 6f 64 65 20 22 c0 | 88 c1 c2 c3 5c 22 87 22 |-code ".|....\"."|
|00000730| 20 5b 6e 69 6c 20 63 61 | 6c 63 2d 64 6f 20 28 6c | [nil ca|lc-do (l|
|00000740| 61 6d 62 64 61 20 6e 69 | 6c 20 28 62 79 74 65 2d |ambda ni|l (byte-|
|00000750| 63 6f 64 65 20 22 c1 08 | c2 5c 22 86 10 00 c1 08 |code "..|.\".....|
|00000760| c3 5c 22 86 10 00 08 3f | 83 1f 00 c4 c5 c6 c7 c8 |.\"....?|........|
|00000770| c5 21 42 23 82 3d 00 c9 | 08 21 18 ca 08 21 cb 3d |.!B#.=..|.!...!.=|
|00000780| 85 31 00 cb cc cd 08 38 | 5c 22 88 c4 cd c6 c7 ce |.1.....8|\"......|
|00000790| cd 21 08 45 23 29 87 22 | 20 5b 76 61 72 20 65 71 |.!.E#)."| [var eq|
|000007a0| 75 61 6c 20 22 22 20 22 | 24 22 20 63 61 6c 63 2d |ual "" "|$" calc-|
|000007b0| 65 6e 74 65 72 2d 72 65 | 73 75 6c 74 20 32 20 22 |enter-re|sult 2 "|
|000007c0| 63 6c 63 74 22 20 63 61 | 6c 63 46 75 6e 63 2d 63 |clct" ca|lcFunc-c|
|000007d0| 6f 6c 6c 65 63 74 20 63 | 61 6c 63 2d 74 6f 70 2d |ollect c|alc-top-|
|000007e0| 6c 69 73 74 2d 6e 20 6d | 61 74 68 2d 72 65 61 64 |list-n m|ath-read|
|000007f0| 2d 65 78 70 72 20 63 61 | 72 2d 73 61 66 65 20 65 |-expr ca|r-safe e|
|00000800| 72 72 6f 72 20 22 42 61 | 64 20 66 6f 72 6d 61 74 |rror "Ba|d format|
|00000810| 20 69 6e 20 65 78 70 72 | 65 73 73 69 6f 6e 3a 20 | in expr|ession: |
|00000820| 25 73 22 20 31 20 63 61 | 6c 63 2d 74 6f 70 2d 6e |%s" 1 ca|lc-top-n|
|00000830| 5d 20 31 34 29 29 20 31 | 37 36 39 5d 20 33 29 29 |] 14)) 1|769] 3))|
|00000840| 0a 0a 28 64 65 66 75 6e | 20 63 61 6c 63 2d 61 70 |..(defun| calc-ap|
|00000850| 61 72 74 20 28 61 72 67 | 29 20 28 69 6e 74 65 72 |art (arg|) (inter|
|00000860| 61 63 74 69 76 65 20 22 | 50 22 29 20 28 62 79 74 |active "|P") (byt|
|00000870| 65 2d 63 6f 64 65 20 22 | c0 88 c1 c2 c3 5c 22 87 |e-code "|.....\".|
|00000880| 22 20 5b 6e 69 6c 20 63 | 61 6c 63 2d 64 6f 20 28 |" [nil c|alc-do (|
|00000890| 6c 61 6d 62 64 61 20 6e | 69 6c 20 28 62 79 74 65 |lambda n|il (byte|
|000008a0| 2d 63 6f 64 65 20 22 c1 | c2 c3 08 23 87 22 20 5b |-code ".|...#." [|
|000008b0| 61 72 67 20 63 61 6c 63 | 2d 75 6e 61 72 79 2d 6f |arg calc|-unary-o|
|000008c0| 70 20 22 61 70 72 74 22 | 20 63 61 6c 63 46 75 6e |p "aprt"| calcFun|
|000008d0| 63 2d 61 70 61 72 74 5d | 20 34 29 29 20 32 31 34 |c-apart]| 4)) 214|
|000008e0| 33 5d 20 33 29 29 0a 0a | 28 64 65 66 75 6e 20 63 |3] 3))..|(defun c|
|000008f0| 61 6c 63 2d 6e 6f 72 6d | 61 6c 69 7a 65 2d 72 61 |alc-norm|alize-ra|
|00000900| 74 20 28 61 72 67 29 20 | 28 69 6e 74 65 72 61 63 |t (arg) |(interac|
|00000910| 74 69 76 65 20 22 50 22 | 29 20 28 62 79 74 65 2d |tive "P"|) (byte-|
|00000920| 63 6f 64 65 20 22 c0 88 | c1 c2 c3 5c 22 87 22 20 |code "..|...\"." |
|00000930| 5b 6e 69 6c 20 63 61 6c | 63 2d 64 6f 20 28 6c 61 |[nil cal|c-do (la|
|00000940| 6d 62 64 61 20 6e 69 6c | 20 28 62 79 74 65 2d 63 |mbda nil| (byte-c|
|00000950| 6f 64 65 20 22 c1 c2 c3 | 08 23 87 22 20 5b 61 72 |ode "...|.#." [ar|
|00000960| 67 20 63 61 6c 63 2d 75 | 6e 61 72 79 2d 6f 70 20 |g calc-u|nary-op |
|00000970| 22 6e 72 61 74 22 20 63 | 61 6c 63 46 75 6e 63 2d |"nrat" c|alcFunc-|
|00000980| 6e 72 61 74 5d 20 34 29 | 29 20 32 33 30 39 5d 20 |nrat] 4)|) 2309] |
|00000990| 33 29 29 0a 0a 28 64 65 | 66 75 6e 20 63 61 6c 63 |3))..(de|fun calc|
|000009a0| 2d 70 6f 6c 79 2d 67 63 | 64 20 28 61 72 67 29 20 |-poly-gc|d (arg) |
|000009b0| 28 69 6e 74 65 72 61 63 | 74 69 76 65 20 22 50 22 |(interac|tive "P"|
|000009c0| 29 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 88 |) (byte-|code "..|
|000009d0| c1 c2 c3 5c 22 87 22 20 | 5b 6e 69 6c 20 63 61 6c |...\"." |[nil cal|
|000009e0| 63 2d 64 6f 20 28 6c 61 | 6d 62 64 61 20 6e 69 6c |c-do (la|mbda nil|
|000009f0| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c1 c2 c3 | (byte-c|ode "...|
|00000a00| 08 23 87 22 20 5b 61 72 | 67 20 63 61 6c 63 2d 62 |.#." [ar|g calc-b|
|00000a10| 69 6e 61 72 79 2d 6f 70 | 20 22 70 67 63 64 22 20 |inary-op| "pgcd" |
|00000a20| 63 61 6c 63 46 75 6e 63 | 2d 70 67 63 64 5d 20 34 |calcFunc|-pgcd] 4|
|00000a30| 29 29 20 32 34 38 32 5d | 20 33 29 29 0a 0a 28 64 |)) 2482]| 3))..(d|
|00000a40| 65 66 75 6e 20 63 61 6c | 63 2d 70 6f 6c 79 2d 64 |efun cal|c-poly-d|
|00000a50| 69 76 20 28 61 72 67 29 | 20 28 69 6e 74 65 72 61 |iv (arg)| (intera|
|00000a60| 63 74 69 76 65 20 22 50 | 22 29 20 28 62 79 74 65 |ctive "P|") (byte|
|00000a70| 2d 63 6f 64 65 20 22 c0 | 88 c1 c2 c3 5c 22 87 22 |-code ".|....\"."|
|00000a80| 20 5b 6e 69 6c 20 63 61 | 6c 63 2d 64 6f 20 28 6c | [nil ca|lc-do (l|
|00000a90| 61 6d 62 64 61 20 6e 69 | 6c 20 28 62 79 74 65 2d |ambda ni|l (byte-|
|00000aa0| 63 6f 64 65 20 22 c1 89 | 10 88 c3 c4 c5 0a 23 88 |code "..|......#.|
|00000ab0| 08 85 10 00 0a 3f 85 52 | 00 c6 c7 21 88 c8 08 c9 |.....?.R|...!....|
|00000ac0| 5c 22 88 08 3a 83 3e 00 | 08 40 ca 3e 3f 85 3b 00 |\"..:.>.|.@.>?.;.|
|00000ad0| 08 40 cb 3d 83 38 00 cc | 08 38 cd 3d 82 3b 00 ce |.@.=.8..|.8.=.;..|
|00000ae0| 08 21 82 41 00 08 cd 3d | 3f 83 4f 00 cf d0 d1 08 |.!.A...=|?.O.....|
|00000af0| cd 5c 22 5c 22 82 52 00 | cf d2 21 87 22 20 5b 63 |.\"\".R.|..!." [c|
|00000b00| 61 6c 63 2d 70 6f 6c 79 | 2d 64 69 76 2d 72 65 6d |alc-poly|-div-rem|
|00000b10| 61 69 6e 64 65 72 20 6e | 69 6c 20 61 72 67 20 63 |ainder n|il arg c|
|00000b20| 61 6c 63 2d 62 69 6e 61 | 72 79 2d 6f 70 20 22 70 |alc-bina|ry-op "p|
|00000b30| 64 69 76 22 20 63 61 6c | 63 46 75 6e 63 2d 70 64 |div" cal|cFunc-pd|
|00000b40| 69 76 20 63 61 6c 63 2d | 63 6c 65 61 72 2d 63 6f |iv calc-|clear-co|
|00000b50| 6d 6d 61 6e 64 2d 66 6c | 61 67 20 63 6c 65 61 72 |mmand-fl|ag clear|
|00000b60| 2d 6d 65 73 73 61 67 65 | 20 63 61 6c 63 2d 72 65 |-message| calc-re|
|00000b70| 63 6f 72 64 20 22 70 72 | 65 6d 22 20 28 62 69 67 |cord "pr|em" (big|
|00000b80| 70 6f 73 20 62 69 67 6e | 65 67 29 20 66 6c 6f 61 |pos bign|eg) floa|
|00000b90| 74 20 31 20 30 20 6d 61 | 74 68 2d 7a 65 72 6f 70 |t 1 0 ma|th-zerop|
|00000ba0| 20 6d 65 73 73 61 67 65 | 20 22 28 52 65 6d 61 69 | message| "(Remai|
|00000bb0| 6e 64 65 72 20 77 61 73 | 20 25 73 29 22 20 6d 61 |nder was| %s)" ma|
|00000bc0| 74 68 2d 66 6f 72 6d 61 | 74 2d 66 6c 61 74 2d 65 |th-forma|t-flat-e|
|00000bd0| 78 70 72 20 22 28 4e 6f | 20 72 65 6d 61 69 6e 64 |xpr "(No| remaind|
|00000be0| 65 72 29 22 5d 20 39 29 | 29 20 32 36 35 31 5d 20 |er)"] 9)|) 2651] |
|00000bf0| 33 29 29 0a 0a 28 64 65 | 66 75 6e 20 63 61 6c 63 |3))..(de|fun calc|
|00000c00| 2d 70 6f 6c 79 2d 72 65 | 6d 20 28 61 72 67 29 20 |-poly-re|m (arg) |
|00000c10| 28 69 6e 74 65 72 61 63 | 74 69 76 65 20 22 50 22 |(interac|tive "P"|
|00000c20| 29 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 88 |) (byte-|code "..|
|00000c30| c1 c2 c3 5c 22 87 22 20 | 5b 6e 69 6c 20 63 61 6c |...\"." |[nil cal|
|00000c40| 63 2d 64 6f 20 28 6c 61 | 6d 62 64 61 20 6e 69 6c |c-do (la|mbda nil|
|00000c50| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c1 c2 c3 | (byte-c|ode "...|
|00000c60| 08 23 87 22 20 5b 61 72 | 67 20 63 61 6c 63 2d 62 |.#." [ar|g calc-b|
|00000c70| 69 6e 61 72 79 2d 6f 70 | 20 22 70 72 65 6d 22 20 |inary-op| "prem" |
|00000c80| 63 61 6c 63 46 75 6e 63 | 2d 70 72 65 6d 5d 20 34 |calcFunc|-prem] 4|
|00000c90| 29 29 20 33 30 39 30 5d | 20 33 29 29 0a 0a 28 64 |)) 3090]| 3))..(d|
|00000ca0| 65 66 75 6e 20 63 61 6c | 63 2d 70 6f 6c 79 2d 64 |efun cal|c-poly-d|
|00000cb0| 69 76 2d 72 65 6d 20 28 | 61 72 67 29 20 28 69 6e |iv-rem (|arg) (in|
|00000cc0| 74 65 72 61 63 74 69 76 | 65 20 22 50 22 29 20 28 |teractiv|e "P") (|
|00000cd0| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 88 c1 c2 c3 |byte-cod|e ".....|
|00000ce0| 5c 22 87 22 20 5b 6e 69 | 6c 20 63 61 6c 63 2d 64 |\"." [ni|l calc-d|
|00000cf0| 6f 20 28 6c 61 6d 62 64 | 61 20 6e 69 6c 20 28 62 |o (lambd|a nil (b|
|00000d00| 79 74 65 2d 63 6f 64 65 | 20 22 c1 20 83 0d 00 c2 |yte-code| ". ....|
|00000d10| c3 c4 08 23 82 12 00 c2 | c3 c5 08 23 87 22 20 5b |...#....|...#." [|
|00000d20| 61 72 67 20 63 61 6c 63 | 2d 69 73 2d 68 79 70 65 |arg calc|-is-hype|
|00000d30| 72 62 6f 6c 69 63 20 63 | 61 6c 63 2d 62 69 6e 61 |rbolic c|alc-bina|
|00000d40| 72 79 2d 6f 70 20 22 70 | 64 76 72 22 20 63 61 6c |ry-op "p|dvr" cal|
|00000d50| 63 46 75 6e 63 2d 70 64 | 69 76 69 64 65 20 63 61 |cFunc-pd|ivide ca|
|00000d60| 6c 63 46 75 6e 63 2d 70 | 64 69 76 72 65 6d 5d 20 |lcFunc-p|divrem] |
|00000d70| 36 29 29 20 33 32 35 39 | 5d 20 33 29 29 0a 0a 28 |6)) 3259|] 3))..(|
|00000d80| 64 65 66 75 6e 20 63 61 | 6c 63 2d 73 75 62 73 74 |defun ca|lc-subst|
|00000d90| 69 74 75 74 65 20 28 26 | 6f 70 74 69 6f 6e 61 6c |itute (&|optional|
|00000da0| 20 6f 6c 64 6e 61 6d 65 | 20 6e 65 77 6e 61 6d 65 | oldname| newname|
|00000db0| 29 20 28 69 6e 74 65 72 | 61 63 74 69 76 65 20 22 |) (inter|active "|
|00000dc0| 73 53 75 62 73 74 69 74 | 75 74 65 20 6f 6c 64 3a |sSubstit|ute old:|
|00000dd0| 20 22 29 20 28 62 79 74 | 65 2d 63 6f 64 65 20 22 | ") (byt|e-code "|
|00000de0| c0 88 c1 c2 c3 5c 22 87 | 22 20 5b 6e 69 6c 20 63 |.....\".|" [nil c|
|00000df0| 61 6c 63 2d 64 6f 20 28 | 6c 61 6d 62 64 61 20 6e |alc-do (|lambda n|
|00000e00| 69 6c 20 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c6 |il (byte|-code ".|
|00000e10| c6 c7 c6 1b 1a 19 18 c8 | 0c c9 5c 22 86 18 00 c8 |........|..\"....|
|00000e20| 0c ca 5c 22 86 18 00 0c | 3f 83 2d 00 cb c7 21 11 |..\"....|?.-...!.|
|00000e30| cb cc 21 10 cb cd 21 13 | cd 89 12 82 ac 00 0d 86 |..!...!.|........|
|00000e40| 3e 00 ce c7 21 88 cf d0 | 0c d1 51 0c 5c 22 89 15 |>...!...|..Q.\"..|
|00000e50| 88 c8 0d c9 5c 22 86 4f | 00 c8 0d ca 5c 22 86 4f |....\".O|....\".O|
|00000e60| 00 0d 3f 83 60 00 cb c7 | 21 11 cb cc 21 13 cc 89 |..?.`...|!...!...|
|00000e70| 12 82 83 00 0d 3b 83 6b | 00 d2 0d 21 82 6c 00 0d |.....;.k|...!.l..|
|00000e80| 89 11 88 d3 09 21 d4 3d | 85 7d 00 d4 d5 c7 09 38 |.....!.=|.}.....8|
|00000e90| 5c 22 88 cb c7 21 89 13 | 88 0c 3b 83 8f 00 d2 0c |\"...!..|..;.....|
|00000ea0| 21 82 90 00 0c 89 10 88 | d3 08 21 d4 3d 85 a1 00 |!.......|..!.=...|
|00000eb0| d4 d5 c7 08 38 5c 22 88 | d6 0b 08 5c 22 86 ac 00 |....8\".|...\"...|
|00000ec0| d4 d7 21 88 d8 0a d9 da | 0b 08 09 23 23 2c 87 22 |..!.....|...##,."|
|00000ed0| 20 5b 6f 6c 64 20 6e 65 | 77 20 6e 75 6d 20 65 78 | [old ne|w num ex|
|00000ee0| 70 72 20 6f 6c 64 6e 61 | 6d 65 20 6e 65 77 6e 61 |pr oldna|me newna|
|00000ef0| 6d 65 20 6e 69 6c 20 31 | 20 65 71 75 61 6c 20 22 |me nil 1| equal "|
|00000f00| 22 20 22 24 22 20 63 61 | 6c 63 2d 74 6f 70 2d 6e |" "$" ca|lc-top-n|
|00000f10| 20 32 20 33 20 63 61 6c | 63 2d 75 6e 72 65 61 64 | 2 3 cal|c-unread|
|00000f20| 2d 63 6f 6d 6d 61 6e 64 | 20 72 65 61 64 2d 73 74 |-command| read-st|
|00000f30| 72 69 6e 67 20 22 53 75 | 62 73 74 69 74 75 74 65 |ring "Su|bstitute|
|00000f40| 20 6f 6c 64 3a 20 22 20 | 22 2c 20 6e 65 77 3a 20 | old: " |", new: |
|00000f50| 22 20 6d 61 74 68 2d 72 | 65 61 64 2d 65 78 70 72 |" math-r|ead-expr|
|00000f60| 20 63 61 72 2d 73 61 66 | 65 20 65 72 72 6f 72 20 | car-saf|e error |
|00000f70| 22 42 61 64 20 66 6f 72 | 6d 61 74 20 69 6e 20 65 |"Bad for|mat in e|
|00000f80| 78 70 72 65 73 73 69 6f | 6e 3a 20 25 73 22 20 6d |xpressio|n: %s" m|
|00000f90| 61 74 68 2d 65 78 70 72 | 2d 63 6f 6e 74 61 69 6e |ath-expr|-contain|
|00000fa0| 73 20 22 4e 6f 20 6f 63 | 63 75 72 72 65 6e 63 65 |s "No oc|currence|
|00000fb0| 73 20 66 6f 75 6e 64 2e | 22 20 63 61 6c 63 2d 65 |s found.|" calc-e|
|00000fc0| 6e 74 65 72 2d 72 65 73 | 75 6c 74 20 22 73 62 73 |nter-res|ult "sbs|
|00000fd0| 74 22 20 6d 61 74 68 2d | 65 78 70 72 2d 73 75 62 |t" math-|expr-sub|
|00000fe0| 73 74 5d 20 32 37 29 29 | 20 33 34 38 34 5d 20 33 |st] 27))| 3484] 3|
|00000ff0| 29 29 0a 0a 28 64 65 66 | 75 6e 20 63 61 6c 63 2d |))..(def|un calc-|
|00001000| 68 61 73 2d 72 75 6c 65 | 73 20 28 6e 61 6d 65 29 |has-rule|s (name)|
|00001010| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c1 08 21 | (byte-c|ode "..!|
|00001020| 89 10 88 08 3a 85 13 00 | 08 40 c2 3e 85 13 00 08 |....:...|.@.>....|
|00001030| 87 22 20 5b 6e 61 6d 65 | 20 63 61 6c 63 2d 76 61 |." [name| calc-va|
|00001040| 72 2d 76 61 6c 75 65 20 | 28 76 65 63 20 63 61 6c |r-value |(vec cal|
|00001050| 63 46 75 6e 63 2d 61 73 | 73 69 67 6e 20 63 61 6c |cFunc-as|sign cal|
|00001060| 63 46 75 6e 63 2d 63 6f | 6e 64 69 74 69 6f 6e 29 |cFunc-co|ndition)|
|00001070| 5d 20 33 29 29 0a 0a 28 | 64 65 66 75 6e 20 6d 61 |] 3))..(|defun ma|
|00001080| 74 68 2d 72 65 63 6f 6d | 70 69 6c 65 2d 65 76 61 |th-recom|pile-eva|
|00001090| 6c 2d 72 75 6c 65 73 20 | 6e 69 6c 20 28 62 79 74 |l-rules |nil (byt|
|000010a0| 65 2d 63 6f 64 65 20 22 | c4 c5 21 85 09 00 c6 c7 |e-code "|..!.....|
|000010b0| 21 10 c8 c2 08 5c 22 11 | c9 c5 21 89 13 87 22 20 |!....\".|..!..." |
|000010c0| 5b 6d 61 74 68 2d 65 76 | 61 6c 2d 72 75 6c 65 73 |[math-ev|al-rules|
|000010d0| 2d 63 61 63 68 65 20 6d | 61 74 68 2d 65 76 61 6c |-cache m|ath-eval|
|000010e0| 2d 72 75 6c 65 73 2d 63 | 61 63 68 65 2d 6f 74 68 |-rules-c|ache-oth|
|000010f0| 65 72 20 6e 69 6c 20 6d | 61 74 68 2d 65 76 61 6c |er nil m|ath-eval|
|00001100| 2d 72 75 6c 65 73 2d 63 | 61 63 68 65 2d 74 61 67 |-rules-c|ache-tag|
|00001110| 20 63 61 6c 63 2d 68 61 | 73 2d 72 75 6c 65 73 20 | calc-ha|s-rules |
|00001120| 76 61 72 2d 45 76 61 6c | 52 75 6c 65 73 20 6d 61 |var-Eval|Rules ma|
|00001130| 74 68 2d 63 6f 6d 70 69 | 6c 65 2d 72 65 77 72 69 |th-compi|le-rewri|
|00001140| 74 65 73 20 28 76 61 72 | 20 45 76 61 6c 52 75 6c |tes (var| EvalRul|
|00001150| 65 73 20 76 61 72 2d 45 | 76 61 6c 52 75 6c 65 73 |es var-E|valRules|
|00001160| 29 20 61 73 73 71 20 63 | 61 6c 63 2d 76 61 72 2d |) assq c|alc-var-|
|00001170| 76 61 6c 75 65 5d 20 36 | 29 29 0a 0a 28 64 65 66 |value] 6|))..(def|
|00001180| 75 6e 20 6d 61 74 68 2d | 65 78 70 61 6e 64 2d 66 |un math-|expand-f|
|00001190| 6f 72 6d 75 6c 61 20 28 | 65 78 70 72 29 20 28 62 |ormula (|expr) (b|
|000011a0| 79 74 65 2d 63 6f 64 65 | 20 22 08 3a 85 2f 00 08 |yte-code| ".:./..|
|000011b0| 40 39 85 2f 00 08 40 c4 | 4e 86 16 00 08 40 c5 4e |@9./..@.|N....@.N|
|000011c0| 85 2f 00 c3 1a c6 08 40 | 08 41 5c 22 29 19 c7 09 |./.....@|.A\")...|
|000011d0| 21 08 40 3d 3f 85 2e 00 | 09 29 87 22 20 5b 65 78 |!.@=?...|.)." [ex|
|000011e0| 70 72 20 72 65 73 20 6d | 61 74 68 2d 65 78 70 61 |pr res m|ath-expa|
|000011f0| 6e 64 2d 66 6f 72 6d 75 | 6c 61 73 20 74 20 63 61 |nd-formu|las t ca|
|00001200| 6c 63 2d 75 73 65 72 2d | 64 65 66 6e 20 6d 61 74 |lc-user-|defn mat|
|00001210| 68 2d 65 78 70 61 6e 64 | 61 62 6c 65 20 61 70 70 |h-expand|able app|
|00001220| 6c 79 20 63 61 72 2d 73 | 61 66 65 5d 20 34 29 29 |ly car-s|afe] 4))|
|00001230| 0a 0a 28 64 65 66 75 6e | 20 6d 61 74 68 2d 62 65 |..(defun| math-be|
|00001240| 66 6f 72 65 70 20 28 61 | 20 62 29 20 28 62 79 74 |forep (a| b) (byt|
|00001250| 65 2d 63 6f 64 65 20 22 | 08 3a 3f 86 0a 00 08 40 |e-code "|.:?....@|
|00001260| c5 3e 85 17 00 09 3a 3f | 86 17 00 09 40 c6 3e 83 |.>....:?|....@.>.|
|00001270| 44 00 c7 08 09 5c 22 1a | 0a c8 3d 86 40 00 0a c9 |D....\".|..=.@...|
|00001280| 3d 85 40 00 ca 08 09 5c | 22 3f 85 40 00 cb 08 21 |=.@....\|"?.@...!|
|00001290| cc 3e 47 cb 09 21 cd 3e | 47 56 29 82 18 02 ca 09 |.>G..!.>|GV).....|
|000012a0| ce 5c 22 83 4f 00 c3 82 | 18 02 ca 08 cf 5c 22 83 |.\".O...|.....\".|
|000012b0| 5a 00 c4 82 18 02 ca 08 | d0 5c 22 83 65 00 c3 82 |Z.......|.\".e...|
|000012c0| 18 02 ca 09 d1 5c 22 83 | 70 00 c4 82 18 02 08 3a |.....\".|p......:|
|000012d0| 3f 86 7a 00 08 40 d2 3e | 83 ab 00 cb 09 21 d3 3d |?.z..@.>|.....!.=|
|000012e0| 85 88 00 d4 09 21 83 a7 | 00 d5 08 d6 09 38 5c 22 |.....!..|.....8\"|
|000012f0| 86 9c 00 c7 08 d6 09 38 | 5c 22 c9 55 83 a3 00 c4 |.......8|\".U....|
|00001300| 82 a4 00 c3 82 a8 00 c4 | 82 18 02 09 3a 3f 86 b5 |........|....:?..|
|00001310| 00 09 40 d7 3e 83 db 00 | cb 08 21 d3 3d 85 c3 00 |..@.>...|..!.=...|
|00001320| d4 08 21 83 d7 00 d5 d6 | 08 38 09 5c 22 83 d3 00 |..!.....|.8.\"...|
|00001330| c4 82 d4 00 c3 82 d8 00 | c3 82 18 02 08 40 d3 3d |........|.....@.=|
|00001340| 85 f2 00 09 40 d3 3d 85 | f2 00 d4 08 21 85 f2 00 |....@.=.|....!...|
|00001350| d4 09 21 83 70 01 c7 d6 | 08 38 d6 09 38 5c 22 1a |..!.p...|.8..8\".|
|00001360| 0a c8 3d 83 08 01 c4 82 | 6c 01 0a d8 3d 83 12 01 |..=.....|l...=...|
|00001370| c3 82 6c 01 d8 08 38 d9 | 3e 85 1f 01 d8 09 38 da |..l...8.|>.....8.|
|00001380| 3e 83 26 01 c4 82 6c 01 | d8 08 38 db 3e 85 33 01 |>.&...l.|..8.>.3.|
|00001390| d8 09 38 dc 3e 83 3a 01 | c3 82 6c 01 c7 dd 08 38 |..8.>.:.|..l....8|
|000013a0| dd 09 38 5c 22 89 12 c8 | 3d 83 4d 01 c4 82 6c 01 |..8\"...|=.M...l.|
|000013b0| 0a d8 3d 83 57 01 c3 82 | 6c 01 d8 08 38 de 3e 85 |..=.W...|l...8.>.|
|000013c0| 64 01 d8 09 38 df 3e 83 | 6b 01 c4 82 6c 01 c3 29 |d...8.>.|k...l..)|
|000013d0| 82 18 02 08 3a 3f 86 7a | 01 08 40 e0 3e 3f 09 3a |....:?.z|..@.>?.:|
|000013e0| 3f 86 85 01 09 40 e1 3e | 3f 3d 3f 83 98 01 08 3a |?....@.>|?=?....:|
|000013f0| 3f 86 95 01 08 40 e2 3e | 82 18 02 08 40 e3 3d 83 |?....@.>|....@.=.|
|00001400| c3 01 09 40 e3 3d 83 b5 | 01 e4 e5 d8 08 38 21 e5 |...@.=..|.....8!.|
|00001410| d8 09 38 21 5c 22 82 c0 | 01 09 3a 3f 86 bf 01 09 |..8!\"..|..:?....|
|00001420| 40 e6 3e 3f 82 18 02 09 | 40 e3 3d 83 d7 01 08 3a |@.>?....|@.=....:|
|00001430| 3f 86 d4 01 08 40 e7 3e | 82 18 02 08 40 09 40 3d |?....@.>|....@.@=|
|00001440| 83 0e 02 08 41 10 09 41 | 89 11 85 f3 01 08 85 f3 |....A..A|........|
|00001450| 01 ca 08 40 09 40 5c 22 | 85 fb 01 c3 88 82 df 01 |...@.@\"|........|
|00001460| 88 09 85 0b 02 08 3f 86 | 0b 02 d5 08 40 09 40 5c |......?.|....@.@\|
|00001470| 22 82 18 02 e4 e5 08 40 | 21 e5 09 40 21 5c 22 87 |"......@|!..@!\".|
|00001480| 22 20 5b 61 20 62 20 63 | 6f 6d 70 20 6e 69 6c 20 |" [a b c|omp nil |
|00001490| 74 20 28 62 69 67 70 6f | 73 20 62 69 67 6e 65 67 |t (bigpo|s bigneg|
|000014a0| 20 66 72 61 63 20 66 6c | 6f 61 74 29 20 28 62 69 | frac fl|oat) (bi|
|000014b0| 67 70 6f 73 20 62 69 67 | 6e 65 67 20 66 72 61 63 |gpos big|neg frac|
|000014c0| 20 66 6c 6f 61 74 29 20 | 6d 61 74 68 2d 63 6f 6d | float) |math-com|
|000014d0| 70 61 72 65 20 2d 31 20 | 30 20 65 71 75 61 6c 20 |pare -1 |0 equal |
|000014e0| 63 61 72 2d 73 61 66 65 | 20 28 62 69 67 6e 65 67 |car-safe| (bigneg|
|000014f0| 20 6e 69 6c 20 62 69 67 | 70 6f 73 20 66 72 61 63 | nil big|pos frac|
|00001500| 20 66 6c 6f 61 74 29 20 | 28 62 69 67 6e 65 67 20 | float) |(bigneg |
|00001510| 6e 69 6c 20 62 69 67 70 | 6f 73 20 66 72 61 63 20 |nil bigp|os frac |
|00001520| 66 6c 6f 61 74 29 20 28 | 6e 65 67 20 28 76 61 72 |float) (|neg (var|
|00001530| 20 69 6e 66 20 76 61 72 | 2d 69 6e 66 29 29 20 28 | inf var|-inf)) (|
|00001540| 6e 65 67 20 28 76 61 72 | 20 69 6e 66 20 76 61 72 |neg (var| inf var|
|00001550| 2d 69 6e 66 29 29 20 28 | 76 61 72 20 69 6e 66 20 |-inf)) (|var inf |
|00001560| 76 61 72 2d 69 6e 66 29 | 20 28 76 61 72 20 69 6e |var-inf)| (var in|
|00001570| 66 20 76 61 72 2d 69 6e | 66 29 20 28 62 69 67 70 |f var-in|f) (bigp|
|00001580| 6f 73 20 62 69 67 6e 65 | 67 20 66 72 61 63 20 66 |os bigne|g frac f|
|00001590| 6c 6f 61 74 29 20 69 6e | 74 76 20 6d 61 74 68 2d |loat) in|tv math-|
|000015a0| 69 6e 74 76 2d 63 6f 6e | 73 74 70 20 6d 61 74 68 |intv-con|stp math|
|000015b0| 2d 62 65 66 6f 72 65 70 | 20 32 20 28 62 69 67 70 |-beforep| 2 (bigp|
|000015c0| 6f 73 20 62 69 67 6e 65 | 67 20 66 72 61 63 20 66 |os bigne|g frac f|
|000015d0| 6c 6f 61 74 29 20 31 20 | 28 32 20 33 29 20 28 30 |loat) 1 |(2 3) (0|
|000015e0| 20 31 29 20 28 30 20 31 | 29 20 28 32 20 33 29 20 | 1) (0 1|) (2 3) |
|000015f0| 33 20 28 30 20 32 29 20 | 28 31 20 33 29 20 28 62 |3 (0 2) |(1 3) (b|
|00001600| 69 67 70 6f 73 20 62 69 | 67 6e 65 67 20 66 72 61 |igpos bi|gneg fra|
|00001610| 63 20 66 6c 6f 61 74 20 | 63 70 6c 78 20 70 6f 6c |c float |cplx pol|
|00001620| 61 72 20 68 6d 73 20 64 | 61 74 65 20 73 64 65 76 |ar hms d|ate sdev|
|00001630| 20 69 6e 74 76 20 6d 6f | 64 29 20 28 62 69 67 70 | intv mo|d) (bigp|
|00001640| 6f 73 20 62 69 67 6e 65 | 67 20 66 72 61 63 20 66 |os bigne|g frac f|
|00001650| 6c 6f 61 74 20 63 70 6c | 78 20 70 6f 6c 61 72 20 |loat cpl|x polar |
|00001660| 68 6d 73 20 64 61 74 65 | 20 73 64 65 76 20 69 6e |hms date| sdev in|
|00001670| 74 76 20 6d 6f 64 29 20 | 28 62 69 67 70 6f 73 20 |tv mod) |(bigpos |
|00001680| 62 69 67 6e 65 67 20 66 | 72 61 63 20 66 6c 6f 61 |bigneg f|rac floa|
|00001690| 74 20 63 70 6c 78 20 70 | 6f 6c 61 72 20 68 6d 73 |t cplx p|olar hms|
|000016a0| 20 64 61 74 65 20 73 64 | 65 76 20 69 6e 74 76 20 | date sd|ev intv |
|000016b0| 6d 6f 64 29 20 76 61 72 | 20 73 74 72 69 6e 67 2d |mod) var| string-|
|000016c0| 6c 65 73 73 70 20 73 79 | 6d 62 6f 6c 2d 6e 61 6d |lessp sy|mbol-nam|
|000016d0| 65 20 28 62 69 67 70 6f | 73 20 62 69 67 6e 65 67 |e (bigpo|s bigneg|
|000016e0| 20 66 72 61 63 20 66 6c | 6f 61 74 20 63 70 6c 78 | frac fl|oat cplx|
|000016f0| 20 70 6f 6c 61 72 29 20 | 28 62 69 67 70 6f 73 20 | polar) |(bigpos |
|00001700| 62 69 67 6e 65 67 20 66 | 72 61 63 20 66 6c 6f 61 |bigneg f|rac floa|
|00001710| 74 20 63 70 6c 78 20 70 | 6f 6c 61 72 29 5d 20 32 |t cplx p|olar)] 2|
|00001720| 39 29 29 0a 0a 28 64 65 | 66 75 6e 20 6d 61 74 68 |9))..(de|fun math|
|00001730| 2d 73 69 6d 70 6c 69 66 | 79 2d 65 78 74 65 6e 64 |-simplif|y-extend|
|00001740| 65 64 20 28 61 29 20 28 | 62 79 74 65 2d 63 6f 64 |ed (a) (|byte-cod|
|00001750| 65 20 22 c1 18 c3 0a 21 | 29 87 22 20 5b 6d 61 74 |e "....!|)." [mat|
|00001760| 68 2d 6c 69 76 69 6e 67 | 2d 64 61 6e 67 65 72 6f |h-living|-dangero|
|00001770| 75 73 6c 79 20 74 20 61 | 20 6d 61 74 68 2d 73 69 |usly t a| math-si|
|00001780| 6d 70 6c 69 66 79 5d 20 | 32 29 29 0a 0a 28 66 73 |mplify] |2))..(fs|
|00001790| 65 74 20 28 71 75 6f 74 | 65 20 63 61 6c 63 46 75 |et (quot|e calcFu|
|000017a0| 6e 63 2d 65 73 69 6d 70 | 6c 69 66 79 29 20 28 73 |nc-esimp|lify) (s|
|000017b0| 79 6d 62 6f 6c 2d 66 75 | 6e 63 74 69 6f 6e 20 28 |ymbol-fu|nction (|
|000017c0| 71 75 6f 74 65 20 6d 61 | 74 68 2d 73 69 6d 70 6c |quote ma|th-simpl|
|000017d0| 69 66 79 2d 65 78 74 65 | 6e 64 65 64 29 29 29 0a |ify-exte|nded))).|
|000017e0| 0a 28 64 65 66 75 6e 20 | 6d 61 74 68 2d 73 69 6d |.(defun |math-sim|
|000017f0| 70 6c 69 66 79 20 28 74 | 6f 70 2d 65 78 70 72 29 |plify (t|op-expr)|
|00001800| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c1 0b 3a | (byte-c|ode "..:|
|00001810| cb cc cd 21 85 0b 00 ce | 0d 85 16 00 cc cf 21 85 |...!....|......!.|
|00001820| 16 00 d0 0e 06 85 5c 22 | 00 cc d1 21 85 5c 22 00 |......\"|...!.\".|
|00001830| d2 0e 07 85 2e 00 cc d3 | 21 85 2e 00 d4 24 d5 1e |........|!....$..|
|00001840| 08 1c 1a 18 0a 83 6b 00 | 0c 1e 09 d6 d7 0e 0a 21 |......k.|.......!|
|00001850| 21 16 08 d8 13 d7 0e 08 | 21 89 16 0a 88 0e 09 85 |!.......|!.......|
|00001860| 67 00 d9 0e 0a 0e 09 40 | da 23 16 0a 0e 09 41 89 |g......@|.#....A.|
|00001870| 16 09 88 82 4e 00 29 82 | b2 00 0b db 3e 3f 85 73 |....N.).|....>?.s|
|00001880| 00 0b 1b 0c 1e 09 d7 0e | 0a 21 89 16 08 88 0e 09 |........|.!......|
|00001890| 85 97 00 d9 0e 08 0e 09 | 40 5c 22 16 08 0e 09 41 |........|@\"....A|
|000018a0| 89 16 09 88 82 7f 00 88 | dc 0e 0a d6 0e 08 21 89 |........|......!.|
|000018b0| 16 08 5c 22 3f 29 85 b1 | 00 0e 08 89 16 0a 88 82 |..\"?)..|........|
|000018c0| 74 00 29 2c 88 0e 0a 87 | 22 20 5b 6d 61 74 68 2d |t.),....|" [math-|
|000018d0| 73 69 6d 70 6c 69 66 79 | 69 6e 67 20 74 20 74 6f |simplify|ing t to|
|000018e0| 70 2d 6f 6e 6c 79 20 63 | 61 6c 63 2d 73 69 6d 70 |p-only c|alc-simp|
|000018f0| 6c 69 66 79 2d 6d 6f 64 | 65 20 73 69 6d 70 2d 72 |lify-mod|e simp-r|
|00001900| 75 6c 65 73 20 6d 61 74 | 68 2d 6c 69 76 69 6e 67 |ules mat|h-living|
|00001910| 2d 64 61 6e 67 65 72 6f | 75 73 6c 79 20 6d 61 74 |-dangero|usly mat|
|00001920| 68 2d 73 69 6d 70 6c 69 | 66 79 69 6e 67 2d 75 6e |h-simpli|fying-un|
|00001930| 69 74 73 20 6d 61 74 68 | 2d 69 6e 74 65 67 72 61 |its math|-integra|
|00001940| 74 69 6e 67 20 72 65 73 | 20 72 20 74 6f 70 2d 65 |ting res| r top-e|
|00001950| 78 70 72 20 61 70 70 65 | 6e 64 20 63 61 6c 63 2d |xpr appe|nd calc-|
|00001960| 68 61 73 2d 72 75 6c 65 | 73 20 76 61 72 2d 41 6c |has-rule|s var-Al|
|00001970| 67 53 69 6d 70 52 75 6c | 65 73 20 28 28 76 61 72 |gSimpRul|es ((var|
|00001980| 20 41 6c 67 53 69 6d 70 | 52 75 6c 65 73 20 76 61 | AlgSimp|Rules va|
|00001990| 72 2d 41 6c 67 53 69 6d | 70 52 75 6c 65 73 29 29 |r-AlgSim|pRules))|
|000019a0| 20 76 61 72 2d 45 78 74 | 53 69 6d 70 52 75 6c 65 | var-Ext|SimpRule|
|000019b0| 73 20 28 28 76 61 72 20 | 45 78 74 53 69 6d 70 52 |s ((var |ExtSimpR|
|000019c0| 75 6c 65 73 20 76 61 72 | 2d 45 78 74 53 69 6d 70 |ules var|-ExtSimp|
|000019d0| 52 75 6c 65 73 29 29 20 | 76 61 72 2d 55 6e 69 74 |Rules)) |var-Unit|
|000019e0| 53 69 6d 70 52 75 6c 65 | 73 20 28 28 76 61 72 20 |SimpRule|s ((var |
|000019f0| 55 6e 69 74 53 69 6d 70 | 52 75 6c 65 73 20 76 61 |UnitSimp|Rules va|
|00001a00| 72 2d 55 6e 69 74 53 69 | 6d 70 52 75 6c 65 73 29 |r-UnitSi|mpRules)|
|00001a10| 29 20 76 61 72 2d 49 6e | 74 65 67 53 69 6d 70 52 |) var-In|tegSimpR|
|00001a20| 75 6c 65 73 20 28 28 76 | 61 72 20 49 6e 74 65 67 |ules ((v|ar Integ|
|00001a30| 53 69 6d 70 52 75 6c 65 | 73 20 76 61 72 2d 49 6e |SimpRule|s var-In|
|00001a40| 74 65 67 53 69 6d 70 52 | 75 6c 65 73 29 29 20 6e |tegSimpR|ules)) n|
|00001a50| 69 6c 20 6d 61 74 68 2d | 73 69 6d 70 6c 69 66 79 |il math-|simplify|
|00001a60| 2d 73 74 65 70 20 6d 61 | 74 68 2d 6e 6f 72 6d 61 |-step ma|th-norma|
|00001a70| 6c 69 7a 65 20 28 6e 69 | 6c 29 20 6d 61 74 68 2d |lize (ni|l) math-|
|00001a80| 72 65 77 72 69 74 65 20 | 28 6e 65 67 20 28 76 61 |rewrite |(neg (va|
|00001a90| 72 20 69 6e 66 20 76 61 | 72 2d 69 6e 66 29 29 20 |r inf va|r-inf)) |
|00001aa0| 28 6e 6f 6e 65 20 6e 75 | 6d 29 20 65 71 75 61 6c |(none nu|m) equal|
|00001ab0| 5d 20 31 36 29 29 0a 0a | 28 66 73 65 74 20 28 71 |] 16))..|(fset (q|
|00001ac0| 75 6f 74 65 20 63 61 6c | 63 46 75 6e 63 2d 73 69 |uote cal|cFunc-si|
|00001ad0| 6d 70 6c 69 66 79 29 20 | 28 73 79 6d 62 6f 6c 2d |mplify) |(symbol-|
|00001ae0| 66 75 6e 63 74 69 6f 6e | 20 28 71 75 6f 74 65 20 |function| (quote |
|00001af0| 6d 61 74 68 2d 73 69 6d | 70 6c 69 66 79 29 29 29 |math-sim|plify)))|
|00001b00| 0a 0a 28 64 65 66 75 6e | 20 6d 61 74 68 2d 73 69 |..(defun| math-si|
|00001b10| 6d 70 6c 69 66 79 2d 73 | 74 65 70 20 28 61 29 20 |mplify-s|tep (a) |
|00001b20| 28 62 79 74 65 2d 63 6f | 64 65 20 22 08 3a 3f 86 |(byte-co|de ".:?.|
|00001b30| 0a 00 08 40 c4 3e 83 11 | 00 08 82 59 00 0a 86 19 |...@.>..|...Y....|
|00001b40| 00 08 40 c5 3e 83 20 00 | 08 82 28 00 08 40 c6 c7 |..@.>. .|..(..@..|
|00001b50| 08 41 5c 22 42 19 09 40 | 39 85 56 00 09 40 c8 4e |.A\"B..@|9.V..@.N|
|00001b60| 1b 0b 85 55 00 0b 85 4a | 00 c9 ca 0b 40 09 5c 22 |...U...J|....@.\"|
|00001b70| 86 46 00 09 89 11 08 5c | 22 85 55 00 0b 41 89 13 |.F.....\|".U..A..|
|00001b80| 88 82 38 00 29 88 09 29 | 87 22 20 5b 61 20 61 61 |..8.)..)|." [a aa|
|00001b90| 20 74 6f 70 2d 6f 6e 6c | 79 20 68 61 6e 64 6c 65 | top-onl|y handle|
|00001ba0| 72 20 28 62 69 67 70 6f | 73 20 62 69 67 6e 65 67 |r (bigpo|s bigneg|
|00001bb0| 20 66 72 61 63 20 66 6c | 6f 61 74 20 63 70 6c 78 | frac fl|oat cplx|
|00001bc0| 20 70 6f 6c 61 72 20 68 | 6d 73 20 64 61 74 65 20 | polar h|ms date |
|00001bd0| 6d 6f 64 20 76 61 72 29 | 20 28 63 61 6c 63 46 75 |mod var)| (calcFu|
|00001be0| 6e 63 2d 71 75 6f 74 65 | 20 63 61 6c 63 46 75 6e |nc-quote| calcFun|
|00001bf0| 63 2d 63 6f 6e 64 69 74 | 69 6f 6e 20 63 61 6c 63 |c-condit|ion calc|
|00001c00| 46 75 6e 63 2d 65 76 61 | 6c 74 6f 29 20 6d 61 70 |Func-eva|lto) map|
|00001c10| 63 61 72 20 6d 61 74 68 | 2d 73 69 6d 70 6c 69 66 |car math|-simplif|
|00001c20| 79 2d 73 74 65 70 20 6d | 61 74 68 2d 73 69 6d 70 |y-step m|ath-simp|
|00001c30| 6c 69 66 79 20 65 71 75 | 61 6c 20 66 75 6e 63 61 |lify equ|al funca|
|00001c40| 6c 6c 5d 20 36 29 29 0a | 0a 28 64 65 66 75 6e 20 |ll] 6)).|.(defun |
|00001c50| 6d 61 74 68 2d 6e 65 65 | 64 2d 73 74 64 2d 73 69 |math-nee|d-std-si|
|00001c60| 6d 70 73 20 6e 69 6c 20 | 28 62 79 74 65 2d 63 6f |mps nil |(byte-co|
|00001c70| 64 65 20 22 c0 87 22 20 | 5b 6e 69 6c 5d 20 31 29 |de ".." |[nil] 1)|
|00001c80| 29 0a 0a 28 6d 61 74 68 | 2d 64 65 66 73 69 6d 70 |)..(math|-defsimp|
|00001c90| 6c 69 66 79 20 28 2b 20 | 2d 29 20 28 6d 61 74 68 |lify (+ |-) (math|
|00001ca0| 2d 73 69 6d 70 6c 69 66 | 79 2d 70 6c 75 73 29 29 |-simplif|y-plus))|
|00001cb0| 0a 0a 28 64 65 66 75 6e | 20 6d 61 74 68 2d 73 69 |..(defun| math-si|
|00001cc0| 6d 70 6c 69 66 79 2d 70 | 6c 75 73 20 6e 69 6c 20 |mplify-p|lus nil |
|00001cd0| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c8 c9 08 38 |(byte-co|de "...8|
|00001ce0| 21 ca 3e 85 2e 00 cb c9 | 08 38 38 3a 3f 86 1c 00 |!.>.....|.88:?...|
|00001cf0| cb c9 08 38 38 40 cc 3e | 85 2e 00 cb 08 38 3a 3f |...88@.>|.....8:?|
|00001d00| 86 2d 00 cb 08 38 40 cd | 3e 3f 83 5e 00 cb 08 38 |.-...8@.|>?.^...8|
|00001d10| 08 40 1a 19 ce 08 41 41 | cb c9 08 38 38 5c 22 88 |.@....AA|...88\".|
|00001d20| ce 08 c9 08 38 40 5c 22 | 88 ce c9 08 38 41 41 09 |....8@\"|....8AA.|
|00001d30| 5c 22 88 ce c9 08 38 0a | 5c 22 2a 82 9b 00 08 40 |\"....8.|\"*....@|
|00001d40| cf 3d 85 85 00 c9 08 38 | 3a 3f 86 73 00 c9 08 38 |.=.....8|:?.s...8|
|00001d50| 40 d0 3e 85 85 00 cb 08 | 38 3a 3f 86 84 00 cb 08 |@.>.....|8:?.....|
|00001d60| 38 40 d1 3e 3f 85 9b 00 | cb 08 38 19 ce 08 41 41 |8@.>?...|..8...AA|
|00001d70| c9 08 38 5c 22 88 ce 08 | 41 09 5c 22 29 88 08 c7 |..8\"...|A.\")...|
|00001d80| c7 1d 1c 1b c8 c9 0b 38 | 89 14 21 d2 3e 85 e0 00 |.......8|..!.>...|
|00001d90| d3 cb 0c 38 cb 08 38 0c | 40 d4 3d 08 40 d4 3d c6 |...8..8.|@.=.@.=.|
|00001da0| 25 89 15 85 d6 00 ce 08 | 41 41 0d 5c 22 88 ce 08 |%.......|AA.\"...|
|00001db0| cf 5c 22 88 ce 0c 41 41 | d5 5c 22 88 c9 0b 38 89 |.\"...AA|.\"...8.|
|00001dc0| 13 88 82 a2 00 88 d3 0c | cb 08 38 c7 08 40 d4 3d |........|..8..@.=|
|00001dd0| c6 25 89 15 85 03 01 ce | 08 41 41 0d 5c 22 88 ce |.%......|.AA.\"..|
|00001de0| 08 cf 5c 22 88 ce 0b 41 | d5 5c 22 88 08 2b 87 22 |..\"...A|.\"..+."|
|00001df0| 20 5b 65 78 70 72 20 78 | 20 6f 70 20 61 61 20 61 | [expr x| op aa a|
|00001e00| 61 61 20 74 65 6d 70 20 | 74 20 6e 69 6c 20 63 61 |aa temp |t nil ca|
|00001e10| 72 2d 73 61 66 65 20 31 | 20 28 2b 20 2d 29 20 32 |r-safe 1| (+ -) 2|
|00001e20| 20 28 62 69 67 70 6f 73 | 20 62 69 67 6e 65 67 20 | (bigpos| bigneg |
|00001e30| 66 72 61 63 20 66 6c 6f | 61 74 20 63 70 6c 78 20 |frac flo|at cplx |
|00001e40| 70 6f 6c 61 72 29 20 28 | 62 69 67 70 6f 73 20 62 |polar) (|bigpos b|
|00001e50| 69 67 6e 65 67 20 66 72 | 61 63 20 66 6c 6f 61 74 |igneg fr|ac float|
|00001e60| 20 63 70 6c 78 20 70 6f | 6c 61 72 29 20 73 65 74 | cplx po|lar) set|
|00001e70| 63 61 72 20 2b 20 28 62 | 69 67 70 6f 73 20 62 69 |car + (b|igpos bi|
|00001e80| 67 6e 65 67 20 66 72 61 | 63 20 66 6c 6f 61 74 20 |gneg fra|c float |
|00001e90| 63 70 6c 78 20 70 6f 6c | 61 72 29 20 28 62 69 67 |cplx pol|ar) (big|
|00001ea0| 70 6f 73 20 62 69 67 6e | 65 67 20 66 72 61 63 20 |pos bign|eg frac |
|00001eb0| 66 6c 6f 61 74 20 63 70 | 6c 78 20 70 6f 6c 61 72 |float cp|lx polar|
|00001ec0| 29 20 28 2b 20 2d 29 20 | 6d 61 74 68 2d 63 6f 6d |) (+ -) |math-com|
|00001ed0| 62 69 6e 65 2d 73 75 6d | 20 2d 20 30 5d 20 31 38 |bine-sum| - 0] 18|
|00001ee0| 29 29 0a 0a 28 6d 61 74 | 68 2d 64 65 66 73 69 6d |))..(mat|h-defsim|
|00001ef0| 70 6c 69 66 79 20 2a 20 | 28 6d 61 74 68 2d 73 69 |plify * |(math-si|
|00001f00| 6d 70 6c 69 66 79 2d 74 | 69 6d 65 73 29 29 0a 0a |mplify-t|imes))..|
|00001f10| 28 64 65 66 75 6e 20 6d | 61 74 68 2d 73 69 6d 70 |(defun m|ath-simp|
|00001f20| 6c 69 66 79 2d 74 69 6d | 65 73 20 6e 69 6c 20 28 |lify-tim|es nil (|
|00001f30| 62 79 74 65 2d 63 6f 64 | 65 20 22 c9 ca 08 38 21 |byte-cod|e "...8!|
|00001f40| cb 3d 83 44 00 cc cd ca | 08 38 38 cd 08 38 5c 22 |.=.D....|.88..8\"|
|00001f50| 85 41 00 ce cd 08 38 c1 | 5c 22 86 28 00 ce cd ca |.A....8.|\".(....|
|00001f60| 08 38 38 c1 5c 22 85 41 | 00 cd 08 38 1a cf 08 41 |.88.\".A|...8...A|
|00001f70| cd ca 08 38 38 5c 22 88 | cf ca 08 38 41 0a 5c 22 |...88\".|...8A.\"|
|00001f80| 29 82 74 00 cc ca 08 38 | cd 08 38 5c 22 85 74 00 |).t....8|..8\".t.|
|00001f90| ce cd 08 38 c1 5c 22 86 | 5e 00 ce ca 08 38 c1 5c |...8.\".|^....8.\|
|00001fa0| 22 85 74 00 ca 08 38 1a | cf 08 41 41 cd 08 38 5c |".t...8.|..AA..8\|
|00001fb0| 22 88 cf 08 41 0a 5c 22 | 29 88 08 c8 c8 c1 ce cd |"...A.\"|).......|
|00001fc0| 08 38 21 1e 07 1e 06 1d | 1c 1b cd 08 38 3a 3f 86 |.8!.....|....8:?.|
|00001fd0| 93 00 cd 08 38 40 d0 3e | 85 9d 00 d1 ca 08 38 21 |....8@.>|......8!|
|00001fe0| 89 15 85 b6 00 cf 08 41 | 41 d2 ca 08 38 0d 5c 22 |.......A|A...8.\"|
|00001ff0| 5c 22 88 cf 08 41 d3 cd | 08 38 0d 5c 22 5c 22 88 |\"...A..|.8.\"\".|
|00002000| c9 ca 0b 38 89 14 21 cb | 3d 85 c5 00 0e 06 85 fa |...8..!.|=.......|
|00002010| 00 d4 cd 08 38 cd 0c 38 | c8 c8 c1 25 89 15 85 e3 |....8..8|...%....|
|00002020| 00 cf 08 41 0d 5c 22 88 | cf 0c 41 cd 5c 22 88 0e |...A.\".|..A.\"..|
|00002030| 07 86 ef 00 ce cd 0c 38 | c1 5c 22 16 06 ca 0b 38 |.......8|.\"....8|
|00002040| 89 13 88 82 b7 00 88 d4 | 0c cd 08 38 c8 c8 c1 25 |........|...8...%|
|00002050| 89 15 85 0b 01 0e 06 85 | 1a 01 cf 08 41 0d 5c 22 |........|....A.\"|
|00002060| 88 cf 0b 41 41 cd 5c 22 | 88 c9 cd 08 38 21 d5 3d |...AA.\"|....8!.=|
|00002070| 85 2c 01 cd cd 08 38 38 | d6 3e 83 43 01 d7 d3 ca |.,....88|.>.C....|
|00002080| 08 38 cd cd 08 38 38 5c | 22 ca cd 08 38 38 5c 22 |.8...88\|"...88\"|
|00002090| 82 44 01 08 2d 87 22 20 | 5b 65 78 70 72 20 74 20 |.D..-." |[expr t |
|000020a0| 78 20 61 61 20 61 61 61 | 20 74 65 6d 70 20 73 61 |x aa aaa| temp sa|
|000020b0| 66 65 20 73 63 61 6c 61 | 72 20 6e 69 6c 20 63 61 |fe scala|r nil ca|
|000020c0| 72 2d 73 61 66 65 20 32 | 20 2a 20 6d 61 74 68 2d |r-safe 2| * math-|
|000020d0| 62 65 66 6f 72 65 70 20 | 31 20 6d 61 74 68 2d 6b |beforep |1 math-k|
|000020e0| 6e 6f 77 6e 2d 73 63 61 | 6c 61 72 70 20 73 65 74 |nown-sca|larp set|
|000020f0| 63 61 72 20 28 62 69 67 | 70 6f 73 20 62 69 67 6e |car (big|pos bign|
|00002100| 65 67 20 66 72 61 63 29 | 20 6d 61 74 68 2d 63 6f |eg frac)| math-co|
|00002110| 6d 6d 6f 6e 2d 63 6f 6e | 73 74 61 6e 74 2d 66 61 |mmon-con|stant-fa|
|00002120| 63 74 6f 72 20 6d 61 74 | 68 2d 63 61 6e 63 65 6c |ctor mat|h-cancel|
|00002130| 2d 63 6f 6d 6d 6f 6e 2d | 66 61 63 74 6f 72 20 6d |-common-|factor m|
|00002140| 61 74 68 2d 6d 75 6c 20 | 6d 61 74 68 2d 63 6f 6d |ath-mul |math-com|
|00002150| 62 69 6e 65 2d 70 72 6f | 64 20 66 72 61 63 20 28 |bine-pro|d frac (|
|00002160| 31 20 2d 31 29 20 6d 61 | 74 68 2d 64 69 76 5d 20 |1 -1) ma|th-div] |
|00002170| 33 32 29 29 0a 0a 28 6d | 61 74 68 2d 64 65 66 73 |32))..(m|ath-defs|
|00002180| 69 6d 70 6c 69 66 79 20 | 2f 20 28 6d 61 74 68 2d |implify |/ (math-|
|00002190| 73 69 6d 70 6c 69 66 79 | 2d 64 69 76 69 64 65 29 |simplify|-divide)|
|000021a0| 29 0a 0a 28 64 65 66 75 | 6e 20 6d 61 74 68 2d 73 |)..(defu|n math-s|
|000021b0| 69 6d 70 6c 69 66 79 2d | 64 69 76 69 64 65 20 6e |implify-|divide n|
|000021c0| 69 6c 20 28 62 79 74 65 | 2d 63 6f 64 65 20 22 09 |il (byte|-code ".|
|000021d0| 41 c3 09 40 c9 3d 86 19 | 00 ca 09 38 3a 3f 86 18 |A..@.=..|...8:?..|
|000021e0| 00 ca 09 38 40 cb 3e 3f | 85 21 00 cc ca 09 38 21 |...8@.>?|.!....8!|
|000021f0| c3 c3 1e 06 1d 1c 1a 18 | 0c 85 d8 00 09 40 c9 3d |........|.....@.=|
|00002200| 86 43 00 cd 09 38 3a 3f | 86 42 00 cd 09 38 40 ce |.C...8:?|.B...8@.|
|00002210| 3e 3f 85 4b 00 cc cd 09 | 38 21 89 15 88 cf 0c 21 |>?.K....|8!.....!|
|00002220| d0 3d 85 60 00 cd 0c 38 | cd 3d 85 60 00 0d 3f 83 |.=.`...8|.=.`..?.|
|00002230| 98 00 d1 09 41 d2 ca 0c | 38 cd 09 38 5c 22 5c 22 |....A...|8..8\"\"|
|00002240| 88 d1 09 41 41 d3 ca 09 | 38 0c 5c 22 5c 22 88 d4 |...AA...|8.\"\"..|
|00002250| 0c 21 85 8b 00 d5 09 40 | 0e 07 5c 22 89 16 06 85 |.!.....@|..\"....|
|00002260| 95 00 d1 09 cd 0e 06 38 | 5c 22 82 d8 00 0d 85 a5 |.......8|\"......|
|00002270| 00 d6 0d 0c 5c 22 89 15 | cd 3d 3f 85 d8 00 d1 09 |....\"..|.=?.....|
|00002280| 41 d3 cd 09 38 0d 5c 22 | 5c 22 88 d1 09 41 41 d3 |A...8.\"|\"...AA.|
|00002290| ca 09 38 0d 5c 22 5c 22 | 88 d4 0d 21 85 ce 00 d5 |..8.\"\"|...!....|
|000022a0| 09 40 0e 07 5c 22 89 16 | 06 85 d8 00 d1 09 cd 0e |.@..\"..|........|
|000022b0| 06 38 5c 22 88 cf 08 40 | 21 c9 3d 85 e8 00 d7 ca |.8\"...@|!.=.....|
|000022c0| 09 38 c8 5c 22 85 2c 01 | cd 09 38 41 89 10 88 cf |.8.\".,.|..8A....|
|000022d0| 08 40 89 15 21 d8 3d 85 | 19 01 d7 ca 0d 38 c8 5c |.@..!.=.|.....8.\|
|000022e0| 22 85 0f 01 d9 0d 41 09 | 41 41 c3 c8 24 88 0d 41 |".....A.|AA..$..A|
|000022f0| 41 89 10 88 82 f2 00 88 | d9 08 09 41 41 c3 c8 24 |A.......|...AA..$|
|00002300| 88 c8 12 cd 09 38 41 41 | 89 10 88 cf 08 40 89 15 |.....8AA|.....@..|
|00002310| 21 d8 3d 85 54 01 d7 ca | 0d 38 c8 5c 22 85 4a 01 |!.=.T...|.8.\".J.|
|00002320| d9 0d 41 09 41 41 0a c8 | 24 88 0d 41 41 89 10 88 |..A.AA..|$..AA...|
|00002330| 82 2d 01 88 d9 08 09 41 | 41 0a c8 24 88 09 2d 87 |.-.....A|A..$..-.|
|00002340| 22 20 5b 6e 70 20 65 78 | 70 72 20 6e 6f 76 65 72 |" [np ex|pr nover|
|00002350| 20 6e 69 6c 20 6e 6e 20 | 6e 20 6f 70 20 63 61 6c | nil nn |n op cal|
|00002360| 63 2d 74 77 65 61 6b 2d | 65 71 6e 2d 74 61 62 6c |c-tweak-|eqn-tabl|
|00002370| 65 20 74 20 2f 20 32 20 | 28 62 69 67 70 6f 73 20 |e t / 2 |(bigpos |
|00002380| 62 69 67 6e 65 67 20 66 | 72 61 63 20 66 6c 6f 61 |bigneg f|rac floa|
|00002390| 74 29 20 6d 61 74 68 2d | 63 6f 6d 6d 6f 6e 2d 63 |t) math-|common-c|
|000023a0| 6f 6e 73 74 61 6e 74 2d | 66 61 63 74 6f 72 20 31 |onstant-|factor 1|
|000023b0| 20 28 62 69 67 70 6f 73 | 20 62 69 67 6e 65 67 20 | (bigpos| bigneg |
|000023c0| 66 72 61 63 20 66 6c 6f | 61 74 29 20 63 61 72 2d |frac flo|at) car-|
|000023d0| 73 61 66 65 20 66 72 61 | 63 20 73 65 74 63 61 72 |safe fra|c setcar|
|000023e0| 20 6d 61 74 68 2d 6d 75 | 6c 20 6d 61 74 68 2d 63 | math-mu|l math-c|
|000023f0| 61 6e 63 65 6c 2d 63 6f | 6d 6d 6f 6e 2d 66 61 63 |ancel-co|mmon-fac|
|00002400| 74 6f 72 20 6d 61 74 68 | 2d 6e 65 67 70 20 61 73 |tor math|-negp as|
|00002410| 73 71 20 6d 61 74 68 2d | 66 72 61 63 2d 67 63 64 |sq math-|frac-gcd|
|00002420| 20 6d 61 74 68 2d 6b 6e | 6f 77 6e 2d 73 63 61 6c | math-kn|own-scal|
|00002430| 61 72 70 20 2a 20 6d 61 | 74 68 2d 73 69 6d 70 6c |arp * ma|th-simpl|
|00002440| 69 66 79 2d 64 69 76 69 | 73 6f 72 5d 20 33 32 29 |ify-divi|sor] 32)|
|00002450| 29 0a 0a 28 64 65 66 75 | 6e 20 6d 61 74 68 2d 73 |)..(defu|n math-s|
|00002460| 69 6d 70 6c 69 66 79 2d | 64 69 76 69 73 6f 72 20 |implify-|divisor |
|00002470| 28 6e 70 20 64 70 20 6e | 6f 76 65 72 20 64 6f 76 |(np dp n|over dov|
|00002480| 65 72 29 20 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |er) (byt|e-code "|
|00002490| cf 08 40 21 d0 3d 83 29 | 00 d1 09 08 40 41 0a 0b |..@!.=.)|....@A..|
|000024a0| 24 88 d2 d3 08 40 38 c4 | 5c 22 85 26 00 d1 09 08 |$....@8.|\".&....|
|000024b0| 40 41 41 0a 0b 3f 24 82 | ad 00 0d 40 d0 3d 86 4e |@AA..?$.|...@.=.N|
|000024c0| 00 d4 09 40 21 1e 06 0e | 06 d5 3e 86 4d 00 0d 40 |...@!...|..>.M..@|
|000024d0| d6 3e 85 48 00 0e 06 d7 | 3d 86 4d 00 0e 07 29 86 |.>.H....|=.M...).|
|000024e0| 55 00 d8 09 40 21 85 ad | 00 09 40 d9 d9 d9 d9 c4 |U...@!..|..@.....|
|000024f0| d2 0e 08 21 1e 0e 1e 0d | 1e 0c 1e 0b 1e 0a 1e 09 |...!....|........|
|00002500| 1e 08 cf 08 40 89 16 09 | 21 da 3d 85 7f 00 0e 0d |....@...|!.=.....|
|00002510| 85 a1 00 db 09 0e 09 41 | 5c 22 88 0e 0e 86 95 00 |.......A|\"......|
|00002520| d2 d3 0e 09 38 c4 5c 22 | 16 0d 0e 09 41 41 89 10 |....8.\"|....AA..|
|00002530| 88 82 71 00 88 0e 0d 85 | ab 00 db 09 08 5c 22 2e |..q.....|.....\".|
|00002540| 07 87 22 20 5b 64 70 20 | 6e 70 20 6e 6f 76 65 72 |.." [dp |np nover|
|00002550| 20 64 6f 76 65 72 20 74 | 20 65 78 70 72 20 73 69 | dover t| expr si|
|00002560| 67 6e 73 20 6d 61 74 68 | 2d 6c 69 76 69 6e 67 2d |gns math|-living-|
|00002570| 64 61 6e 67 65 72 6f 75 | 73 6c 79 20 6e 20 64 20 |dangerou|sly n d |
|00002580| 64 64 20 74 65 6d 70 20 | 6f 70 20 73 61 66 65 20 |dd temp |op safe |
|00002590| 73 63 61 6c 61 72 20 63 | 61 72 2d 73 61 66 65 20 |scalar c|ar-safe |
|000025a0| 2f 20 6d 61 74 68 2d 73 | 69 6d 70 6c 69 66 79 2d |/ math-s|implify-|
|000025b0| 64 69 76 69 73 6f 72 20 | 6d 61 74 68 2d 6b 6e 6f |divisor |math-kno|
|000025c0| 77 6e 2d 73 63 61 6c 61 | 72 70 20 31 20 6d 61 74 |wn-scala|rp 1 mat|
|000025d0| 68 2d 70 6f 73 73 69 62 | 6c 65 2d 73 69 67 6e 73 |h-possib|le-signs|
|000025e0| 20 28 31 20 34 29 20 28 | 63 61 6c 63 46 75 6e 63 | (1 4) (|calcFunc|
|000025f0| 2d 65 71 20 63 61 6c 63 | 46 75 6e 63 2d 6e 65 71 |-eq calc|Func-neq|
|00002600| 29 20 35 20 6d 61 74 68 | 2d 6e 75 6d 62 65 72 70 |) 5 math|-numberp|
|00002610| 20 6e 69 6c 20 2a 20 6d | 61 74 68 2d 73 69 6d 70 | nil * m|ath-simp|
|00002620| 6c 69 66 79 2d 6f 6e 65 | 2d 64 69 76 69 73 6f 72 |lify-one|-divisor|
|00002630| 5d 20 31 34 29 29 0a 0a | 28 64 65 66 75 6e 20 6d |] 14))..|(defun m|
|00002640| 61 74 68 2d 73 69 6d 70 | 6c 69 66 79 2d 6f 6e 65 |ath-simp|lify-one|
|00002650| 2d 64 69 76 69 73 6f 72 | 20 28 6e 70 20 64 70 29 |-divisor| (np dp)|
|00002660| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c9 09 40 | (byte-c|ode "..@|
|00002670| 0a 40 0b 0c c5 25 89 10 | 83 4b 00 0e 06 40 ca 3e |.@...%..|.K...@.>|
|00002680| 3f 85 33 00 cb 0a 40 21 | 85 33 00 cc 0e 06 40 0e |?.3...@!|.3....@.|
|00002690| 08 5c 22 89 16 07 85 33 | 00 cd 0e 06 ce 0e 07 38 |.\"....3|.......8|
|000026a0| 5c 22 88 cd 09 0b 83 41 | 00 cf ce 08 5c 22 82 42 |\".....A|....\".B|
|000026b0| 00 08 5c 22 88 cd 0a ce | 5c 22 82 8d 00 0c 85 8d |..\"....|\"......|
|000026c0| 00 0b 3f 85 8d 00 0e 06 | 40 d0 3d 85 8d 00 d1 0a |..?.....|@.=.....|
|000026d0| 40 21 d2 3d 85 8d 00 ce | 0a 40 38 3a 3f 86 75 00 |@!.=....|.@8:?.u.|
|000026e0| ce 0a 40 38 40 d3 3e 85 | 8d 00 cd 09 d4 09 40 d2 |..@8@.>.|......@.|
|000026f0| ce 0a 40 38 44 5c 22 5c | 22 88 cd 0a ce 0a 40 38 |..@8D\"\|".....@8|
|00002700| 5c 22 87 22 20 5b 74 65 | 6d 70 20 6e 70 20 64 70 |\"." [te|mp np dp|
|00002710| 20 6e 6f 76 65 72 20 64 | 6f 76 65 72 20 74 20 65 | nover d|over t e|
|00002720| 78 70 72 20 6f 70 20 63 | 61 6c 63 2d 74 77 65 61 |xpr op c|alc-twea|
|00002730| 6b 2d 65 71 6e 2d 74 61 | 62 6c 65 20 6d 61 74 68 |k-eqn-ta|ble math|
|00002740| 2d 63 6f 6d 62 69 6e 65 | 2d 70 72 6f 64 20 28 2f |-combine|-prod (/|
|00002750| 20 63 61 6c 63 46 75 6e | 63 2d 65 71 20 63 61 6c | calcFun|c-eq cal|
|00002760| 63 46 75 6e 63 2d 6e 65 | 71 29 20 6d 61 74 68 2d |cFunc-ne|q) math-|
|00002770| 6b 6e 6f 77 6e 2d 6e 65 | 67 70 20 61 73 73 71 20 |known-ne|gp assq |
|00002780| 73 65 74 63 61 72 20 31 | 20 6d 61 74 68 2d 64 69 |setcar 1| math-di|
|00002790| 76 20 2f 20 63 61 72 2d | 73 61 66 65 20 63 61 6c |v / car-|safe cal|
|000027a0| 63 46 75 6e 63 2d 73 71 | 72 74 20 28 62 69 67 70 |cFunc-sq|rt (bigp|
|000027b0| 6f 73 20 62 69 67 6e 65 | 67 29 20 6d 61 74 68 2d |os bigne|g) math-|
|000027c0| 6d 75 6c 5d 20 31 35 29 | 29 0a 0a 28 64 65 66 75 |mul] 15)|)..(defu|
|000027d0| 6e 20 6d 61 74 68 2d 63 | 6f 6d 6d 6f 6e 2d 63 6f |n math-c|ommon-co|
|000027e0| 6e 73 74 61 6e 74 2d 66 | 61 63 74 6f 72 20 28 65 |nstant-f|actor (e|
|000027f0| 78 70 72 29 20 28 62 79 | 74 65 2d 63 6f 64 65 20 |xpr) (by|te-code |
|00002800| 22 08 3a 3f 86 0a 00 08 | 40 c3 3e 83 37 00 08 3a |".:?....|@.>.7..:|
|00002810| 3f 86 17 00 08 40 c4 3e | 83 27 00 08 c5 3e 3f 85 |?....@.>|.'...>?.|
|00002820| 24 00 c6 08 21 82 34 00 | c7 c8 08 21 89 10 21 85 |$...!.4.|...!..!.|
|00002830| 34 00 c9 08 21 82 9a 00 | 08 40 ca 3e 83 63 00 c9 |4...!...|.@.>.c..|
|00002840| cb 08 38 21 c9 cc 08 38 | 21 1a 19 09 85 5f 00 0a |..8!...8|!...._..|
|00002850| 85 5f 00 cd 09 0a 5c 22 | 89 11 cb 3d 3f 85 5f 00 |._....\"|...=?._.|
|00002860| 09 2a 82 9a 00 08 40 ce | 3e 83 72 00 c9 cb 08 38 |.*....@.|>.r....8|
|00002870| 21 82 9a 00 08 40 cf 3d | 85 9a 00 c9 cb 08 38 21 |!....@.=|......8!|
|00002880| 86 9a 00 cc 08 38 3a 3f | 86 8f 00 cc 08 38 40 d0 |.....8:?|.....8@.|
|00002890| 3e 85 9a 00 d1 cb c6 cc | 08 38 21 45 87 22 20 5b |>.......|.8!E." [|
|000028a0| 65 78 70 72 20 66 31 20 | 66 32 20 28 62 69 67 70 |expr f1 |f2 (bigp|
|000028b0| 6f 73 20 62 69 67 6e 65 | 67 20 66 72 61 63 20 66 |os bigne|g frac f|
|000028c0| 6c 6f 61 74 29 20 28 62 | 69 67 70 6f 73 20 62 69 |loat) (b|igpos bi|
|000028d0| 67 6e 65 67 20 66 72 61 | 63 29 20 28 30 20 31 20 |gneg fra|c) (0 1 |
|000028e0| 2d 31 29 20 6d 61 74 68 | 2d 61 62 73 20 6d 61 74 |-1) math|-abs mat|
|000028f0| 68 2d 72 61 74 70 20 6d | 61 74 68 2d 74 6f 2d 73 |h-ratp m|ath-to-s|
|00002900| 69 6d 70 6c 65 2d 66 72 | 61 63 74 69 6f 6e 20 6d |imple-fr|action m|
|00002910| 61 74 68 2d 63 6f 6d 6d | 6f 6e 2d 63 6f 6e 73 74 |ath-comm|on-const|
|00002920| 61 6e 74 2d 66 61 63 74 | 6f 72 20 28 2b 20 2d 20 |ant-fact|or (+ - |
|00002930| 63 70 6c 78 20 73 64 65 | 76 29 20 31 20 32 20 6d |cplx sde|v) 1 2 m|
|00002940| 61 74 68 2d 66 72 61 63 | 2d 67 63 64 20 28 2a 20 |ath-frac|-gcd (* |
|00002950| 70 6f 6c 61 72 29 20 2f | 20 28 62 69 67 70 6f 73 |polar) /| (bigpos|
|00002960| 20 62 69 67 6e 65 67 29 | 20 66 72 61 63 5d 20 31 | bigneg)| frac] 1|
|00002970| 34 29 29 0a 0a 28 64 65 | 66 75 6e 20 6d 61 74 68 |4))..(de|fun math|
|00002980| 2d 63 61 6e 63 65 6c 2d | 63 6f 6d 6d 6f 6e 2d 66 |-cancel-|common-f|
|00002990| 61 63 74 6f 72 20 28 65 | 78 70 72 20 76 61 6c 29 |actor (e|xpr val)|
|000029a0| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c2 08 21 | (byte-c|ode "..!|
|000029b0| c3 3e 83 23 00 c4 08 41 | c5 c6 08 38 09 5c 22 5c |.>.#...A|...8.\"\|
|000029c0| 22 88 c4 08 41 41 c5 c7 | 08 38 09 5c 22 5c 22 88 |"...AA..|.8.\"\".|
|000029d0| 08 82 3d 00 c2 08 21 c8 | 3d 83 39 00 c9 c5 c6 08 |..=...!.|=.9.....|
|000029e0| 38 09 5c 22 c7 08 38 5c | 22 82 3d 00 ca 08 09 5c |8.\"..8\|".=....\|
|000029f0| 22 87 22 20 5b 65 78 70 | 72 20 76 61 6c 20 63 61 |"." [exp|r val ca|
|00002a00| 72 2d 73 61 66 65 20 28 | 2b 20 2d 20 63 70 6c 78 |r-safe (|+ - cplx|
|00002a10| 20 73 64 65 76 29 20 73 | 65 74 63 61 72 20 6d 61 | sdev) s|etcar ma|
|00002a20| 74 68 2d 63 61 6e 63 65 | 6c 2d 63 6f 6d 6d 6f 6e |th-cance|l-common|
|00002a30| 2d 66 61 63 74 6f 72 20 | 31 20 32 20 2a 20 6d 61 |-factor |1 2 * ma|
|00002a40| 74 68 2d 6d 75 6c 20 6d | 61 74 68 2d 64 69 76 5d |th-mul m|ath-div]|
|00002a50| 20 31 31 29 29 0a 0a 28 | 64 65 66 75 6e 20 6d 61 | 11))..(|defun ma|
|00002a60| 74 68 2d 66 72 61 63 2d | 67 63 64 20 28 61 20 62 |th-frac-|gcd (a b|
|00002a70| 29 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 08 3a |) (byte-|code ".:|
|00002a80| 83 5c 22 00 08 40 c2 3e | 3f 85 1f 00 08 40 c3 3d |.\"..@.>|?....@.=|
|00002a90| 83 1c 00 c4 08 38 c5 3d | 82 1f 00 c6 08 21 82 25 |.....8.=|.....!.%|
|00002aa0| 00 08 c5 3d 83 2c 00 09 | 82 b3 00 09 3a 83 4e 00 |...=.,..|....:.N.|
|00002ab0| 09 40 c7 3e 3f 85 4b 00 | 09 40 c3 3d 83 48 00 c4 |.@.>?.K.|.@.=.H..|
|00002ac0| 09 38 c5 3d 82 4b 00 c6 | 09 21 82 51 00 09 c5 3d |.8.=.K..|.!.Q...=|
|00002ad0| 83 58 00 08 82 b3 00 08 | 3a 3f 86 62 00 08 40 c8 |.X......|:?.b..@.|
|00002ae0| 3e 85 6f 00 09 3a 3f 86 | 6f 00 09 40 c9 3e 83 79 |>.o..:?.|o..@.>.y|
|00002af0| 00 ca 08 09 5c 22 82 b3 | 00 08 3a 3f 86 83 00 08 |....\"..|..:?....|
|00002b00| 40 cb 3e 85 8c 00 cc 08 | c4 45 89 10 88 09 3a 3f |@.>.....|.E....:?|
|00002b10| 86 97 00 09 40 cd 3e 85 | a0 00 cc 09 c4 45 89 11 |....@.>.|.....E..|
|00002b20| 88 ce ca c4 08 38 c4 09 | 38 5c 22 ca cf 08 38 cf |.....8..|8\"...8.|
|00002b30| 09 38 5c 22 5c 22 87 22 | 20 5b 61 20 62 20 28 62 |.8\"\"."| [a b (b|
|00002b40| 69 67 70 6f 73 20 62 69 | 67 6e 65 67 29 20 66 6c |igpos bi|gneg) fl|
|00002b50| 6f 61 74 20 31 20 30 20 | 6d 61 74 68 2d 7a 65 72 |oat 1 0 |math-zer|
|00002b60| 6f 70 20 28 62 69 67 70 | 6f 73 20 62 69 67 6e 65 |op (bigp|os bigne|
|00002b70| 67 29 20 28 62 69 67 70 | 6f 73 20 62 69 67 6e 65 |g) (bigp|os bigne|
|00002b80| 67 29 20 28 62 69 67 70 | 6f 73 20 62 69 67 6e 65 |g) (bigp|os bigne|
|00002b90| 67 29 20 6d 61 74 68 2d | 67 63 64 20 28 62 69 67 |g) math-|gcd (big|
|00002ba0| 70 6f 73 20 62 69 67 6e | 65 67 29 20 66 72 61 63 |pos bign|eg) frac|
|00002bb0| 20 28 62 69 67 70 6f 73 | 20 62 69 67 6e 65 67 29 | (bigpos| bigneg)|
|00002bc0| 20 6d 61 74 68 2d 6d 61 | 6b 65 2d 66 72 61 63 20 | math-ma|ke-frac |
|00002bd0| 32 5d 20 31 30 29 29 0a | 0a 28 6d 61 74 68 2d 64 |2] 10)).|.(math-d|
|00002be0| 65 66 73 69 6d 70 6c 69 | 66 79 20 25 20 28 6d 61 |efsimpli|fy % (ma|
|00002bf0| 74 68 2d 73 69 6d 70 6c | 69 66 79 2d 6d 6f 64 29 |th-simpl|ify-mod)|
|00002c00| 29 0a 0a 28 64 65 66 75 | 6e 20 6d 61 74 68 2d 73 |)..(defu|n math-s|
|00002c10| 69 6d 70 6c 69 66 79 2d | 6d 6f 64 20 6e 69 6c 20 |implify-|mod nil |
|00002c20| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c7 08 38 3a |(byte-co|de "..8:|
|00002c30| 3f 86 0e 00 c7 08 38 40 | c8 3e 85 23 01 c7 08 38 |?.....8@|.>.#...8|
|00002c40| 3a 83 5a 00 c7 08 38 40 | c9 3d 86 57 00 c7 08 38 |:.Z...8@|.=.W...8|
|00002c50| 40 ca 3d 3f 85 57 00 c7 | 08 38 40 cb 3e 83 52 00 |@.=?.W..|.8@.>.R.|
|00002c60| cc c7 08 38 38 3a 83 48 | 00 cc c7 08 38 38 40 c9 |...88:.H|....88@.|
|00002c70| 3d 82 4f 00 cc c7 08 38 | 38 cd 56 82 57 00 ce c7 |=.O....8|8.V.W...|
|00002c80| 08 38 21 82 5f 00 c7 08 | 38 cd 56 85 23 01 cf cc |.8!._...|8.V.#...|
|00002c90| 08 38 21 d0 d0 d0 1c 1b | 1a 19 09 85 9c 00 d1 09 |.8!.....|........|
|00002ca0| 40 21 86 83 00 d2 09 40 | c7 08 38 5c 22 d3 55 3f |@!.....@|..8\".U?|
|00002cb0| 85 9c 00 d4 d5 d6 cc 09 | 38 c7 09 38 5c 22 d7 09 |........|8..8\"..|
|00002cc0| 40 c7 08 38 5c 22 45 c7 | 08 38 45 86 5c 22 01 09 |@..8\"E.|.8E.\"..|
|00002cd0| 85 f2 00 d8 cc 09 38 cc | 5c 22 3f 85 f2 00 d9 cc |......8.|\"?.....|
|00002ce0| 09 38 21 85 f2 00 d9 c7 | 08 38 21 85 f2 00 da cc |.8!.....|.8!.....|
|00002cf0| 09 38 c7 08 38 5c 22 89 | 12 85 f2 00 d8 0a cc 5c |.8..8\".|.......\|
|00002d00| 22 3f 85 f2 00 db 0a d4 | d5 d6 dc cc 09 38 0a 5c |"?......|.....8.\|
|00002d10| 22 c7 09 38 5c 22 c6 1d | dc 09 40 0a 5c 22 29 45 |"..8\"..|..@.\")E|
|00002d20| dc c7 08 38 0a 5c 22 45 | 45 86 5c 22 01 d8 c7 08 |...8.\"E|E.\"....|
|00002d30| 38 cc 5c 22 85 5c 22 01 | dd 09 83 0e 01 d6 cc 09 |8.\".\".|........|
|00002d40| 38 c7 09 38 5c 22 82 11 | 01 cc 08 38 21 85 5c 22 |8..8\"..|...8!.\"|
|00002d50| 01 09 83 21 01 d7 09 40 | cc 5c 22 82 5c 22 01 cd |...!...@|.\".\"..|
|00002d60| 2c 87 22 20 5b 65 78 70 | 72 20 6c 69 6e 20 74 31 |,." [exp|r lin t1|
|00002d70| 20 74 32 20 74 33 20 63 | 61 6c 63 2d 70 72 65 66 | t2 t3 c|alc-pref|
|00002d80| 65 72 2d 66 72 61 63 20 | 74 20 32 20 28 62 69 67 |er-frac |t 2 (big|
|00002d90| 70 6f 73 20 62 69 67 6e | 65 67 20 66 72 61 63 20 |pos bign|eg frac |
|00002da0| 66 6c 6f 61 74 29 20 62 | 69 67 70 6f 73 20 62 69 |float) b|igpos bi|
|00002db0| 67 6e 65 67 20 28 66 72 | 61 63 20 66 6c 6f 61 74 |gneg (fr|ac float|
|00002dc0| 29 20 31 20 30 20 6d 61 | 74 68 2d 70 6f 73 70 20 |) 1 0 ma|th-posp |
|00002dd0| 6d 61 74 68 2d 69 73 2d | 6c 69 6e 65 61 72 20 6e |math-is-|linear n|
|00002de0| 69 6c 20 6d 61 74 68 2d | 6e 65 67 70 20 6d 61 74 |il math-|negp mat|
|00002df0| 68 2d 63 6f 6d 70 61 72 | 65 20 2d 31 20 25 20 2b |h-compar|e -1 % +|
|00002e00| 20 6d 61 74 68 2d 6d 75 | 6c 20 6d 61 74 68 2d 6d | math-mu|l math-m|
|00002e10| 6f 64 20 6d 61 74 68 2d | 65 71 75 61 6c 2d 69 6e |od math-|equal-in|
|00002e20| 74 20 6d 61 74 68 2d 6e | 75 6d 2d 69 6e 74 65 67 |t math-n|um-integ|
|00002e30| 65 72 70 20 63 61 6c 63 | 46 75 6e 63 2d 67 63 64 |erp calc|Func-gcd|
|00002e40| 20 2a 20 6d 61 74 68 2d | 64 69 76 20 6d 61 74 68 | * math-|div math|
|00002e50| 2d 6b 6e 6f 77 6e 2d 69 | 6e 74 65 67 65 72 70 5d |-known-i|ntegerp]|
|00002e60| 20 32 31 29 29 0a 0a 28 | 6d 61 74 68 2d 64 65 66 | 21))..(|math-def|
|00002e70| 73 69 6d 70 6c 69 66 79 | 20 28 63 61 6c 63 46 75 |simplify| (calcFu|
|00002e80| 6e 63 2d 65 71 20 63 61 | 6c 63 46 75 6e 63 2d 6e |nc-eq ca|lcFunc-n|
|00002e90| 65 71 20 63 61 6c 63 46 | 75 6e 63 2d 6c 74 20 63 |eq calcF|unc-lt c|
|00002ea0| 61 6c 63 46 75 6e 63 2d | 67 74 20 63 61 6c 63 46 |alcFunc-|gt calcF|
|00002eb0| 75 6e 63 2d 6c 65 71 20 | 63 61 6c 63 46 75 6e 63 |unc-leq |calcFunc|
|00002ec0| 2d 67 65 71 29 20 28 69 | 66 20 28 3d 20 28 6c 65 |-geq) (i|f (= (le|
|00002ed0| 6e 67 74 68 20 65 78 70 | 72 29 20 33 29 20 28 6d |ngth exp|r) 3) (m|
|00002ee0| 61 74 68 2d 73 69 6d 70 | 6c 69 66 79 2d 69 6e 65 |ath-simp|lify-ine|
|00002ef0| 71 29 29 29 0a 0a 28 64 | 65 66 75 6e 20 6d 61 74 |q)))..(d|efun mat|
|00002f00| 68 2d 73 69 6d 70 6c 69 | 66 79 2d 69 6e 65 71 20 |h-simpli|fy-ineq |
|00002f10| 6e 69 6c 20 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |nil (byt|e-code "|
|00002f20| 09 41 c3 1a 18 c5 08 40 | 89 12 21 c6 3e 85 26 00 |.A.....@|..!.>.&.|
|00002f30| c7 0a 41 41 09 41 41 0a | 40 c8 3d c3 24 88 0a 41 |..AA.AA.|@.=.$..A|
|00002f40| 89 10 88 82 05 00 88 c7 | 08 09 41 41 c3 08 09 41 |........|..AA...A|
|00002f50| 3d 24 88 c9 20 88 ca c8 | 09 41 42 21 1c 09 40 cb |=$.. ...|.AB!..@.|
|00002f60| 3d 83 58 00 0c cc 3d 85 | 4b 00 cd 86 55 00 0c ce |=.X...=.|K...U...|
|00002f70| 3e 85 55 00 cf 82 dc 00 | 09 40 d0 3d 83 73 00 0c |>.U.....|.@.=.s..|
|00002f80| cc 3d 85 66 00 cf 86 70 | 00 0c d1 3e 85 70 00 cd |.=.f...p|...>.p..|
|00002f90| 82 dc 00 09 40 d2 3d 83 | 8e 00 0c cd 3d 85 81 00 |....@.=.|....=...|
|00002fa0| cd 86 8b 00 0c d3 3e 85 | 8b 00 cf 82 dc 00 09 40 |......>.|.......@|
|00002fb0| d4 3d 83 a9 00 0c d5 3d | 85 9c 00 cd 86 a6 00 0c |.=.....=|........|
|00002fc0| d6 3e 85 a6 00 cf 82 dc | 00 09 40 d7 3d 83 c4 00 |.>......|..@.=...|
|00002fd0| 0c d5 3d 85 b7 00 cf 86 | c1 00 0c d8 3e 85 c1 00 |..=.....|....>...|
|00002fe0| cd 82 dc 00 09 40 d9 3d | 85 dc 00 0c cd 3d 85 d2 |.....@.=|.....=..|
|00002ff0| 00 cf 86 dc 00 0c da 3e | 85 dc 00 cd 86 e0 00 09 |.......>|........|
|00003000| 29 2a 87 22 20 5b 6e 70 | 20 65 78 70 72 20 6e 20 |)*." [np| expr n |
|00003010| 6e 69 6c 20 73 69 67 6e | 73 20 63 61 72 2d 73 61 |nil sign|s car-sa|
|00003020| 66 65 20 28 2b 20 2d 29 | 20 6d 61 74 68 2d 73 69 |fe (+ -)| math-si|
|00003030| 6d 70 6c 69 66 79 2d 61 | 64 64 2d 74 65 72 6d 20 |mplify-a|dd-term |
|00003040| 2d 20 6d 61 74 68 2d 73 | 69 6d 70 6c 69 66 79 2d |- math-s|implify-|
|00003050| 64 69 76 69 64 65 20 6d | 61 74 68 2d 70 6f 73 73 |divide m|ath-poss|
|00003060| 69 62 6c 65 2d 73 69 67 | 6e 73 20 63 61 6c 63 46 |ible-sig|ns calcF|
|00003070| 75 6e 63 2d 65 71 20 32 | 20 31 20 28 31 20 34 20 |unc-eq 2| 1 (1 4 |
|00003080| 35 29 20 30 20 63 61 6c | 63 46 75 6e 63 2d 6e 65 |5) 0 cal|cFunc-ne|
|00003090| 71 20 28 31 20 34 20 35 | 29 20 63 61 6c 63 46 75 |q (1 4 5|) calcFu|
|000030a0| 6e 63 2d 6c 74 20 28 32 | 20 34 20 36 29 20 63 61 |nc-lt (2| 4 6) ca|
|000030b0| 6c 63 46 75 6e 63 2d 67 | 74 20 34 20 28 31 20 32 |lcFunc-g|t 4 (1 2|
|000030c0| 20 33 29 20 63 61 6c 63 | 46 75 6e 63 2d 6c 65 71 | 3) calc|Func-leq|
|000030d0| 20 28 31 20 32 20 33 29 | 20 63 61 6c 63 46 75 6e | (1 2 3)| calcFun|
|000030e0| 63 2d 67 65 71 20 28 32 | 20 34 20 36 29 5d 20 38 |c-geq (2| 4 6)] 8|
|000030f0| 29 29 0a 0a 28 64 65 66 | 75 6e 20 6d 61 74 68 2d |))..(def|un math-|
|00003100| 73 69 6d 70 6c 69 66 79 | 2d 61 64 64 2d 74 65 72 |simplify|-add-ter|
|00003110| 6d 20 28 6e 70 20 64 70 | 20 6d 69 6e 75 73 20 6c |m (np dp| minus l|
|00003120| 70 6c 61 69 6e 29 20 28 | 62 79 74 65 2d 63 6f 64 |plain) (|byte-cod|
|00003130| 65 20 22 cb 08 40 21 86 | d9 00 c2 c8 c8 c8 c8 1e |e "..@!.|........|
|00003140| 06 1d 1c 1b 19 cc 08 40 | 13 0e 07 40 89 14 21 cd |.......@|...@..!.|
|00003150| 3e 85 8a 00 c8 89 11 88 | ce 0b cf 0c 38 0e 09 0c |>.......|....8...|
|00003160| 40 d0 3d c2 25 89 16 06 | 85 80 00 0e 0a 86 44 00 |@.=.%...|......D.|
|00003170| d1 0e 06 21 0e 09 3d 83 | 64 00 d2 08 0e 09 83 55 |...!..=.|d......U|
|00003180| 00 d3 0e 06 21 82 57 00 | 0e 06 89 13 5c 22 88 d2 |....!.W.|....\"..|
|00003190| 0c 41 41 d4 5c 22 82 80 | 00 d2 08 d4 5c 22 88 d2 |.AA.\"..|....\"..|
|000031a0| 0c 41 41 0c 40 d0 3d 83 | 7b 00 d3 0e 06 21 82 7d |.AA.@.=.|{....!.}|
|000031b0| 00 0e 06 89 13 5c 22 88 | 0c 41 89 16 07 88 82 12 |.....\".|.A......|
|000031c0| 00 88 ce 0b 0c 0e 09 c2 | c2 25 89 16 06 85 d8 00 |........|.%......|
|000031d0| 0e 0a 86 aa 00 09 3f 85 | aa 00 d1 0e 06 21 0e 09 |......?.|.....!..|
|000031e0| 3d 83 c9 00 d2 08 0e 09 | 83 bb 00 d3 0e 06 21 82 |=.......|......!.|
|000031f0| bd 00 0e 06 89 13 5c 22 | 88 d2 0e 07 d4 5c 22 82 |......\"|.....\".|
|00003200| d8 00 d2 08 d4 5c 22 88 | d2 0e 07 d3 0e 06 21 89 |.....\".|......!.|
|00003210| 13 5c 22 2d 87 22 20 5b | 6e 70 20 72 70 6c 61 69 |.\"-." [|np rplai|
|00003220| 6e 20 74 20 6e 20 64 20 | 64 64 20 74 65 6d 70 20 |n t n d |dd temp |
|00003230| 64 70 20 6e 69 6c 20 6d | 69 6e 75 73 20 6c 70 6c |dp nil m|inus lpl|
|00003240| 61 69 6e 20 6d 61 74 68 | 2d 76 65 63 74 6f 72 70 |ain math|-vectorp|
|00003250| 20 63 61 72 2d 73 61 66 | 65 20 28 2b 20 2d 29 20 | car-saf|e (+ -) |
|00003260| 6d 61 74 68 2d 63 6f 6d | 62 69 6e 65 2d 73 75 6d |math-com|bine-sum|
|00003270| 20 32 20 2b 20 6d 61 74 | 68 2d 6c 6f 6f 6b 73 2d | 2 + mat|h-looks-|
|00003280| 6e 65 67 70 20 73 65 74 | 63 61 72 20 6d 61 74 68 |negp set|car math|
|00003290| 2d 6e 65 67 20 30 5d 20 | 32 31 29 29 0a 0a 28 6d |-neg 0] |21))..(m|
|000032a0| 61 74 68 2d 64 65 66 73 | 69 6d 70 6c 69 66 79 20 |ath-defs|implify |
|000032b0| 63 61 6c 63 46 75 6e 63 | 2d 73 69 6e 20 28 6f 72 |calcFunc|-sin (or|
|000032c0| 20 28 61 6e 64 20 28 65 | 71 20 28 63 61 72 2d 73 | (and (e|q (car-s|
|000032d0| 61 66 65 20 28 6e 74 68 | 20 31 20 65 78 70 72 29 |afe (nth| 1 expr)|
|000032e0| 29 20 28 71 75 6f 74 65 | 20 63 61 6c 63 46 75 6e |) (quote| calcFun|
|000032f0| 63 2d 61 72 63 73 69 6e | 29 29 20 28 6e 74 68 20 |c-arcsin|)) (nth |
|00003300| 31 20 28 6e 74 68 20 31 | 20 65 78 70 72 29 29 29 |1 (nth 1| expr)))|
|00003310| 20 28 61 6e 64 20 28 6d | 61 74 68 2d 6c 6f 6f 6b | (and (m|ath-look|
|00003320| 73 2d 6e 65 67 70 20 28 | 6e 74 68 20 31 20 65 78 |s-negp (|nth 1 ex|
|00003330| 70 72 29 29 20 28 6d 61 | 74 68 2d 6e 65 67 20 28 |pr)) (ma|th-neg (|
|00003340| 6c 69 73 74 20 28 71 75 | 6f 74 65 20 63 61 6c 63 |list (qu|ote calc|
|00003350| 46 75 6e 63 2d 73 69 6e | 29 20 28 6d 61 74 68 2d |Func-sin|) (math-|
|00003360| 6e 65 67 20 28 6e 74 68 | 20 31 20 65 78 70 72 29 |neg (nth| 1 expr)|
|00003370| 29 29 29 29 20 28 61 6e | 64 20 28 65 71 20 63 61 |)))) (an|d (eq ca|
|00003380| 6c 63 2d 61 6e 67 6c 65 | 2d 6d 6f 64 65 20 28 71 |lc-angle|-mode (q|
|00003390| 75 6f 74 65 20 72 61 64 | 29 29 20 28 6c 65 74 20 |uote rad|)) (let |
|000033a0| 28 28 6e 20 28 6d 61 74 | 68 2d 6c 69 6e 65 61 72 |((n (mat|h-linear|
|000033b0| 2d 69 6e 20 28 6e 74 68 | 20 31 20 65 78 70 72 29 |-in (nth| 1 expr)|
|000033c0| 20 28 71 75 6f 74 65 20 | 28 76 61 72 20 70 69 20 | (quote |(var pi |
|000033d0| 76 61 72 2d 70 69 29 29 | 29 29 29 20 28 61 6e 64 |var-pi))|))) (and|
|000033e0| 20 6e 20 28 6d 61 74 68 | 2d 6b 6e 6f 77 6e 2d 73 | n (math|-known-s|
|000033f0| 69 6e 20 28 63 61 72 20 | 6e 29 20 28 6e 74 68 20 |in (car |n) (nth |
|00003400| 31 20 6e 29 20 31 32 30 | 20 30 29 29 29 29 20 28 |1 n) 120| 0)))) (|
|00003410| 61 6e 64 20 28 65 71 20 | 63 61 6c 63 2d 61 6e 67 |and (eq |calc-ang|
|00003420| 6c 65 2d 6d 6f 64 65 20 | 28 71 75 6f 74 65 20 64 |le-mode |(quote d|
|00003430| 65 67 29 29 20 28 6c 65 | 74 20 28 28 6e 20 28 6d |eg)) (le|t ((n (m|
|00003440| 61 74 68 2d 69 6e 74 65 | 67 65 72 2d 70 6c 75 73 |ath-inte|ger-plus|
|00003450| 20 28 6e 74 68 20 31 20 | 65 78 70 72 29 29 29 29 | (nth 1 |expr))))|
|00003460| 20 28 61 6e 64 20 6e 20 | 28 6d 61 74 68 2d 6b 6e | (and n |(math-kn|
|00003470| 6f 77 6e 2d 73 69 6e 20 | 28 63 61 72 20 6e 29 20 |own-sin |(car n) |
|00003480| 28 6e 74 68 20 31 20 6e | 29 20 28 71 75 6f 74 65 |(nth 1 n|) (quote|
|00003490| 20 28 66 72 61 63 20 32 | 20 33 29 29 20 30 29 29 | (frac 2| 3)) 0))|
|000034a0| 29 29 20 28 61 6e 64 20 | 28 65 71 20 28 63 61 72 |)) (and |(eq (car|
|000034b0| 2d 73 61 66 65 20 28 6e | 74 68 20 31 20 65 78 70 |-safe (n|th 1 exp|
|000034c0| 72 29 29 20 28 71 75 6f | 74 65 20 63 61 6c 63 46 |r)) (quo|te calcF|
|000034d0| 75 6e 63 2d 61 72 63 63 | 6f 73 29 29 20 28 6c 69 |unc-arcc|os)) (li|
|000034e0| 73 74 20 28 71 75 6f 74 | 65 20 63 61 6c 63 46 75 |st (quot|e calcFu|
|000034f0| 6e 63 2d 73 71 72 74 29 | 20 28 6d 61 74 68 2d 73 |nc-sqrt)| (math-s|
|00003500| 75 62 20 31 20 28 6d 61 | 74 68 2d 73 71 72 20 28 |ub 1 (ma|th-sqr (|
|00003510| 6e 74 68 20 31 20 28 6e | 74 68 20 31 20 65 78 70 |nth 1 (n|th 1 exp|
|00003520| 72 29 29 29 29 29 29 20 | 28 61 6e 64 20 28 65 71 |r)))))) |(and (eq|
|00003530| 20 28 63 61 72 2d 73 61 | 66 65 20 28 6e 74 68 20 | (car-sa|fe (nth |
|00003540| 31 20 65 78 70 72 29 29 | 20 28 71 75 6f 74 65 20 |1 expr))| (quote |
|00003550| 63 61 6c 63 46 75 6e 63 | 2d 61 72 63 74 61 6e 29 |calcFunc|-arctan)|
|00003560| 29 20 28 6d 61 74 68 2d | 64 69 76 20 28 6e 74 68 |) (math-|div (nth|
|00003570| 20 31 20 28 6e 74 68 20 | 31 20 65 78 70 72 29 29 | 1 (nth |1 expr))|
|00003580| 20 28 6c 69 73 74 20 28 | 71 75 6f 74 65 20 63 61 | (list (|quote ca|
|00003590| 6c 63 46 75 6e 63 2d 73 | 71 72 74 29 20 28 6d 61 |lcFunc-s|qrt) (ma|
|000035a0| 74 68 2d 61 64 64 20 31 | 20 28 6d 61 74 68 2d 73 |th-add 1| (math-s|
|000035b0| 71 72 20 28 6e 74 68 20 | 31 20 28 6e 74 68 20 31 |qr (nth |1 (nth 1|
|000035c0| 20 65 78 70 72 29 29 29 | 29 29 29 29 20 28 6c 65 | expr)))|)))) (le|
|000035d0| 74 20 28 28 6d 20 28 6d | 61 74 68 2d 73 68 6f 75 |t ((m (m|ath-shou|
|000035e0| 6c 64 2d 65 78 70 61 6e | 64 2d 74 72 69 67 20 28 |ld-expan|d-trig (|
|000035f0| 6e 74 68 20 31 20 65 78 | 70 72 29 29 29 29 20 28 |nth 1 ex|pr)))) (|
|00003600| 61 6e 64 20 6d 20 28 69 | 6e 74 65 67 65 72 70 20 |and m (i|ntegerp |
|00003610| 28 63 61 72 20 6d 29 29 | 20 28 6c 65 74 20 28 28 |(car m))| (let ((|
|00003620| 6e 20 28 63 61 72 20 6d | 29 29 20 28 61 20 28 6e |n (car m|)) (a (n|
|00003630| 74 68 20 31 20 6d 29 29 | 29 20 28 6c 69 73 74 20 |th 1 m))|) (list |
|00003640| 28 71 75 6f 74 65 20 2b | 29 20 28 6c 69 73 74 20 |(quote +|) (list |
|00003650| 28 71 75 6f 74 65 20 2a | 29 20 28 6c 69 73 74 20 |(quote *|) (list |
|00003660| 28 71 75 6f 74 65 20 63 | 61 6c 63 46 75 6e 63 2d |(quote c|alcFunc-|
|00003670| 73 69 6e 29 20 28 6c 69 | 73 74 20 28 71 75 6f 74 |sin) (li|st (quot|
|00003680| 65 20 2a 29 20 28 31 2d | 20 6e 29 20 61 29 29 20 |e *) (1-| n) a)) |
|00003690| 28 6c 69 73 74 20 28 71 | 75 6f 74 65 20 63 61 6c |(list (q|uote cal|
|000036a0| 63 46 75 6e 63 2d 63 6f | 73 29 20 61 29 29 20 28 |cFunc-co|s) a)) (|
|000036b0| 6c 69 73 74 20 28 71 75 | 6f 74 65 20 2a 29 20 28 |list (qu|ote *) (|
|000036c0| 6c 69 73 74 20 28 71 75 | 6f 74 65 20 63 61 6c 63 |list (qu|ote calc|
|000036d0| 46 75 6e 63 2d 63 6f 73 | 29 20 28 6c 69 73 74 20 |Func-cos|) (list |
|000036e0| 28 71 75 6f 74 65 20 2a | 29 20 28 31 2d 20 6e 29 |(quote *|) (1- n)|
|000036f0| 20 61 29 29 20 28 6c 69 | 73 74 20 28 71 75 6f 74 | a)) (li|st (quot|
|00003700| 65 20 63 61 6c 63 46 75 | 6e 63 2d 73 69 6e 29 20 |e calcFu|nc-sin) |
|00003710| 61 29 29 29 29 29 29 29 | 29 0a 0a 28 6d 61 74 68 |a)))))))|)..(math|
|00003720| 2d 64 65 66 73 69 6d 70 | 6c 69 66 79 20 63 61 6c |-defsimp|lify cal|
|00003730| 63 46 75 6e 63 2d 63 6f | 73 20 28 6f 72 20 28 61 |cFunc-co|s (or (a|
|00003740| 6e 64 20 28 65 71 20 28 | 63 61 72 2d 73 61 66 65 |nd (eq (|car-safe|
|00003750| 20 28 6e 74 68 20 31 20 | 65 78 70 72 29 29 20 28 | (nth 1 |expr)) (|
|00003760| 71 75 6f 74 65 20 63 61 | 6c 63 46 75 6e 63 2d 61 |quote ca|lcFunc-a|
|00003770| 72 63 63 6f 73 29 29 20 | 28 6e 74 68 20 31 20 28 |rccos)) |(nth 1 (|
|00003780| 6e 74 68 20 31 20 65 78 | 70 72 29 29 29 20 28 61 |nth 1 ex|pr))) (a|
|00003790| 6e 64 20 28 6d 61 74 68 | 2d 6c 6f 6f 6b 73 2d 6e |nd (math|-looks-n|
|000037a0| 65 67 70 20 28 6e 74 68 | 20 31 20 65 78 70 72 29 |egp (nth| 1 expr)|
|000037b0| 29 20 28 6c 69 73 74 20 | 28 71 75 6f 74 65 20 63 |) (list |(quote c|
|000037c0| 61 6c 63 46 75 6e 63 2d | 63 6f 73 29 20 28 6d 61 |alcFunc-|cos) (ma|
|000037d0| 74 68 2d 6e 65 67 20 28 | 6e 74 68 20 31 20 65 78 |th-neg (|nth 1 ex|
|000037e0| 70 72 29 29 29 29 20 28 | 61 6e 64 20 28 65 71 20 |pr)))) (|and (eq |
|000037f0| 63 61 6c 63 2d 61 6e 67 | 6c 65 2d 6d 6f 64 65 20 |calc-ang|le-mode |
|00003800| 28 71 75 6f 74 65 20 72 | 61 64 29 29 20 28 6c 65 |(quote r|ad)) (le|
|00003810| 74 20 28 28 6e 20 28 6d | 61 74 68 2d 6c 69 6e 65 |t ((n (m|ath-line|
|00003820| 61 72 2d 69 6e 20 28 6e | 74 68 20 31 20 65 78 70 |ar-in (n|th 1 exp|
|00003830| 72 29 20 28 71 75 6f 74 | 65 20 28 76 61 72 20 70 |r) (quot|e (var p|
|00003840| 69 20 76 61 72 2d 70 69 | 29 29 29 29 29 20 28 61 |i var-pi|))))) (a|
|00003850| 6e 64 20 6e 20 28 6d 61 | 74 68 2d 6b 6e 6f 77 6e |nd n (ma|th-known|
|00003860| 2d 73 69 6e 20 28 63 61 | 72 20 6e 29 20 28 6e 74 |-sin (ca|r n) (nt|
|00003870| 68 20 31 20 6e 29 20 31 | 32 30 20 33 30 30 29 29 |h 1 n) 1|20 300))|
|00003880| 29 29 20 28 61 6e 64 20 | 28 65 71 20 63 61 6c 63 |)) (and |(eq calc|
|00003890| 2d 61 6e 67 6c 65 2d 6d | 6f 64 65 20 28 71 75 6f |-angle-m|ode (quo|
|000038a0| 74 65 20 64 65 67 29 29 | 20 28 6c 65 74 20 28 28 |te deg))| (let ((|
|000038b0| 6e 20 28 6d 61 74 68 2d | 69 6e 74 65 67 65 72 2d |n (math-|integer-|
|000038c0| 70 6c 75 73 20 28 6e 74 | 68 20 31 20 65 78 70 72 |plus (nt|h 1 expr|
|000038d0| 29 29 29 29 20 28 61 6e | 64 20 6e 20 28 6d 61 74 |)))) (an|d n (mat|
|000038e0| 68 2d 6b 6e 6f 77 6e 2d | 73 69 6e 20 28 63 61 72 |h-known-|sin (car|
|000038f0| 20 6e 29 20 28 6e 74 68 | 20 31 20 6e 29 20 28 71 | n) (nth| 1 n) (q|
|00003900| 75 6f 74 65 20 28 66 72 | 61 63 20 32 20 33 29 29 |uote (fr|ac 2 3))|
|00003910| 20 33 30 30 29 29 29 29 | 20 28 61 6e 64 20 28 65 | 300))))| (and (e|
|00003920| 71 20 28 63 61 72 2d 73 | 61 66 65 20 28 6e 74 68 |q (car-s|afe (nth|
|00003930| 20 31 20 65 78 70 72 29 | 29 20 28 71 75 6f 74 65 | 1 expr)|) (quote|
|00003940| 20 63 61 6c 63 46 75 6e | 63 2d 61 72 63 73 69 6e | calcFun|c-arcsin|
|00003950| 29 29 20 28 6c 69 73 74 | 20 28 71 75 6f 74 65 20 |)) (list| (quote |
|00003960| 63 61 6c 63 46 75 6e 63 | 2d 73 71 72 74 29 20 28 |calcFunc|-sqrt) (|
|00003970| 6d 61 74 68 2d 73 75 62 | 20 31 20 28 6d 61 74 68 |math-sub| 1 (math|
|00003980| 2d 73 71 72 20 28 6e 74 | 68 20 31 20 28 6e 74 68 |-sqr (nt|h 1 (nth|
|00003990| 20 31 20 65 78 70 72 29 | 29 29 29 29 29 20 28 61 | 1 expr)|))))) (a|
|000039a0| 6e 64 20 28 65 71 20 28 | 63 61 72 2d 73 61 66 65 |nd (eq (|car-safe|
|000039b0| 20 28 6e 74 68 20 31 20 | 65 78 70 72 29 29 20 28 | (nth 1 |expr)) (|
|000039c0| 71 75 6f 74 65 20 63 61 | 6c 63 46 75 6e 63 2d 61 |quote ca|lcFunc-a|
|000039d0| 72 63 74 61 6e 29 29 20 | 28 6d 61 74 68 2d 64 69 |rctan)) |(math-di|
|000039e0| 76 20 31 20 28 6c 69 73 | 74 20 28 71 75 6f 74 65 |v 1 (lis|t (quote|
|000039f0| 20 63 61 6c 63 46 75 6e | 63 2d 73 71 72 74 29 20 | calcFun|c-sqrt) |
|00003a00| 28 6d 61 74 68 2d 61 64 | 64 20 31 20 28 6d 61 74 |(math-ad|d 1 (mat|
|00003a10| 68 2d 73 71 72 20 28 6e | 74 68 20 31 20 28 6e 74 |h-sqr (n|th 1 (nt|
|00003a20| 68 20 31 20 65 78 70 72 | 29 29 29 29 29 29 29 20 |h 1 expr|))))))) |
|00003a30| 28 6c 65 74 20 28 28 6d | 20 28 6d 61 74 68 2d 73 |(let ((m| (math-s|
|00003a40| 68 6f 75 6c 64 2d 65 78 | 70 61 6e 64 2d 74 72 69 |hould-ex|pand-tri|
|00003a50| 67 20 28 6e 74 68 20 31 | 20 65 78 70 72 29 29 29 |g (nth 1| expr)))|
|00003a60| 29 20 28 61 6e 64 20 6d | 20 28 69 6e 74 65 67 65 |) (and m| (intege|
|00003a70| 72 70 20 28 63 61 72 20 | 6d 29 29 20 28 6c 65 74 |rp (car |m)) (let|
|00003a80| 20 28 28 6e 20 28 63 61 | 72 20 6d 29 29 20 28 61 | ((n (ca|r m)) (a|
|00003a90| 20 28 6e 74 68 20 31 20 | 6d 29 29 29 20 28 6c 69 | (nth 1 |m))) (li|
|00003aa0| 73 74 20 28 71 75 6f 74 | 65 20 2d 29 20 28 6c 69 |st (quot|e -) (li|
|00003ab0| 73 74 20 28 71 75 6f 74 | 65 20 2a 29 20 28 6c 69 |st (quot|e *) (li|
|00003ac0| 73 74 20 28 71 75 6f 74 | 65 20 63 61 6c 63 46 75 |st (quot|e calcFu|
|00003ad0| 6e 63 2d 63 6f 73 29 20 | 28 6c 69 73 74 20 28 71 |nc-cos) |(list (q|
|00003ae0| 75 6f 74 65 20 2a 29 20 | 28 31 2d 20 6e 29 20 61 |uote *) |(1- n) a|
|00003af0| 29 29 20 28 6c 69 73 74 | 20 28 71 75 6f 74 65 20 |)) (list| (quote |
|00003b00| 63 61 6c 63 46 75 6e 63 | 2d 63 6f 73 29 20 61 29 |calcFunc|-cos) a)|
|00003b10| 29 20 28 6c 69 73 74 20 | 28 71 75 6f 74 65 20 2a |) (list |(quote *|
|00003b20| 29 20 28 6c 69 73 74 20 | 28 71 75 6f 74 65 20 63 |) (list |(quote c|
|00003b30| 61 6c 63 46 75 6e 63 2d | 73 69 6e 29 20 28 6c 69 |alcFunc-|sin) (li|
|00003b40| 73 74 20 28 71 75 6f 74 | 65 20 2a 29 20 28 31 2d |st (quot|e *) (1-|
|00003b50| 20 6e 29 20 61 29 29 20 | 28 6c 69 73 74 20 28 71 | n) a)) |(list (q|
|00003b60| 75 6f 74 65 20 63 61 6c | 63 46 75 6e 63 2d 73 69 |uote cal|cFunc-si|
|00003b70| 6e 29 20 61 29 29 29 29 | 29 29 29 29 0a 0a 28 64 |n) a))))|))))..(d|
|00003b80| 65 66 75 6e 20 6d 61 74 | 68 2d 73 68 6f 75 6c 64 |efun mat|h-should|
|00003b90| 2d 65 78 70 61 6e 64 2d | 74 72 69 67 20 28 78 20 |-expand-|trig (x |
|00003ba0| 26 6f 70 74 69 6f 6e 61 | 6c 20 68 79 70 65 72 62 |&optiona|l hyperb|
|00003bb0| 6f 6c 69 63 29 20 28 62 | 79 74 65 2d 63 6f 64 65 |olic) (b|yte-code|
|00003bc0| 20 22 c5 09 21 18 0a 85 | 49 00 08 85 49 00 c6 08 | "..!...|I...I...|
|00003bd0| 40 21 85 17 00 08 40 c7 | 56 86 1f 00 c8 08 40 c9 |@!....@.|V.....@.|
|00003be0| 5c 22 85 49 00 0b 86 45 | 00 ca c7 08 38 21 0c 83 |\".I...E|....8!..|
|00003bf0| 33 00 cb 82 34 00 cc 3e | 86 45 00 ca c7 08 38 21 |3...4..>|.E....8!|
|00003c00| cd 3d 85 45 00 0c ce 3d | 85 49 00 08 29 87 22 20 |.=.E...=|.I..)." |
|00003c10| 5b 6d 20 78 20 6d 61 74 | 68 2d 6c 69 76 69 6e 67 |[m x mat|h-living|
|00003c20| 2d 64 61 6e 67 65 72 6f | 75 73 6c 79 20 6d 61 74 |-dangero|usly mat|
|00003c30| 68 2d 69 6e 74 65 67 72 | 61 74 69 6e 67 20 68 79 |h-integr|ating hy|
|00003c40| 70 65 72 62 6f 6c 69 63 | 20 6d 61 74 68 2d 69 73 |perbolic| math-is|
|00003c50| 2d 6d 75 6c 74 69 70 6c | 65 20 69 6e 74 65 67 65 |-multipl|e intege|
|00003c60| 72 70 20 31 20 65 71 75 | 61 6c 20 28 66 72 61 63 |rp 1 equ|al (frac|
|00003c70| 20 31 20 32 29 20 63 61 | 72 2d 73 61 66 65 20 28 | 1 2) ca|r-safe (|
|00003c80| 63 61 6c 63 46 75 6e 63 | 2d 61 72 63 73 69 6e 68 |calcFunc|-arcsinh|
|00003c90| 20 63 61 6c 63 46 75 6e | 63 2d 61 72 63 63 6f 73 | calcFun|c-arccos|
|00003ca0| 68 20 63 61 6c 63 46 75 | 6e 63 2d 61 72 63 74 61 |h calcFu|nc-arcta|
|00003cb0| 6e 68 29 20 28 63 61 6c | 63 46 75 6e 63 2d 61 72 |nh) (cal|cFunc-ar|
|00003cc0| 63 73 69 6e 20 63 61 6c | 63 46 75 6e 63 2d 61 72 |csin cal|cFunc-ar|
|00003cd0| 63 63 6f 73 20 63 61 6c | 63 46 75 6e 63 2d 61 72 |ccos cal|cFunc-ar|
|00003ce0| 63 74 61 6e 29 20 63 61 | 6c 63 46 75 6e 63 2d 6c |ctan) ca|lcFunc-l|
|00003cf0| 6e 20 65 78 70 5d 20 37 | 29 29 0a 0a 28 64 65 66 |n exp] 7|))..(def|
|00003d00| 75 6e 20 6d 61 74 68 2d | 6b 6e 6f 77 6e 2d 73 69 |un math-|known-si|
|00003d10| 6e 20 28 70 6c 75 73 20 | 6e 20 6d 75 6c 20 6f 66 |n (plus |n mul of|
|00003d20| 66 29 20 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c7 |f) (byte|-code ".|
|00003d30| 08 09 5c 22 89 10 88 c8 | 08 21 85 75 00 c9 ca cb |..\"....|.!.u....|
|00003d40| 08 21 0a 5c 22 cc 5c 22 | 89 10 85 75 00 08 cd 59 |.!.\".\"|...u...Y|
|00003d50| 83 34 00 ce 0b 08 cd 5a | cf d0 24 89 10 85 31 00 |.4.....Z|..$...1.|
|00003d60| d1 08 21 82 75 00 08 d2 | 56 85 3f 00 cd 08 5a 89 |..!.u...|V.?...Z.|
|00003d70| 10 88 d3 0b 21 83 58 00 | 0c 86 4d 00 08 d4 3e 85 |....!.X.|..M...>.|
|00003d80| 55 00 d5 08 d6 5c 22 41 | 82 75 00 08 d0 3d 83 66 |U....\"A|.u...=.f|
|00003d90| 00 d7 d8 0b 44 21 82 75 | 00 08 d2 3d 83 74 00 d7 |....D!.u|...=.t..|
|00003da0| d9 0b 44 21 82 75 00 c6 | 87 22 20 5b 6e 20 6d 75 |..D!.u..|." [n mu|
|00003db0| 6c 20 6f 66 66 20 70 6c | 75 73 20 63 61 6c 63 2d |l off pl|us calc-|
|00003dc0| 73 79 6d 62 6f 6c 69 63 | 2d 6d 6f 64 65 20 74 20 |symbolic|-mode t |
|00003dd0| 6e 69 6c 20 6d 61 74 68 | 2d 6d 75 6c 20 6d 61 74 |nil math|-mul mat|
|00003de0| 68 2d 6e 75 6d 2d 69 6e | 74 65 67 65 72 70 20 6d |h-num-in|tegerp m|
|00003df0| 61 74 68 2d 6d 6f 64 20 | 6d 61 74 68 2d 61 64 64 |ath-mod |math-add|
|00003e00| 20 6d 61 74 68 2d 74 72 | 75 6e 63 20 32 34 30 20 | math-tr|unc 240 |
|00003e10| 31 32 30 20 6d 61 74 68 | 2d 6b 6e 6f 77 6e 2d 73 |120 math|-known-s|
|00003e20| 69 6e 20 31 20 30 20 6d | 61 74 68 2d 6e 65 67 20 |in 1 0 m|ath-neg |
|00003e30| 36 30 20 6d 61 74 68 2d | 7a 65 72 6f 70 20 28 30 |60 math-|zerop (0|
|00003e40| 20 32 30 20 36 30 29 20 | 61 73 73 71 20 28 28 30 | 20 60) |assq ((0|
|00003e50| 20 2e 20 30 29 20 28 31 | 30 20 2f 20 28 63 61 6c | . 0) (1|0 / (cal|
|00003e60| 63 46 75 6e 63 2d 73 71 | 72 74 20 28 2d 20 32 20 |cFunc-sq|rt (- 2 |
|00003e70| 28 63 61 6c 63 46 75 6e | 63 2d 73 71 72 74 20 33 |(calcFun|c-sqrt 3|
|00003e80| 29 29 29 20 32 29 20 28 | 31 32 20 2f 20 28 2d 20 |))) 2) (|12 / (- |
|00003e90| 28 63 61 6c 63 46 75 6e | 63 2d 73 71 72 74 20 35 |(calcFun|c-sqrt 5|
|00003ea0| 29 20 31 29 20 34 29 20 | 28 31 35 20 2f 20 28 63 |) 1) 4) |(15 / (c|
|00003eb0| 61 6c 63 46 75 6e 63 2d | 73 71 72 74 20 28 2d 20 |alcFunc-|sqrt (- |
|00003ec0| 32 20 28 63 61 6c 63 46 | 75 6e 63 2d 73 71 72 74 |2 (calcF|unc-sqrt|
|00003ed0| 20 32 29 29 29 20 32 29 | 20 28 32 30 20 2f 20 31 | 2))) 2)| (20 / 1|
|00003ee0| 20 32 29 20 28 32 34 20 | 2a 20 28 5e 20 28 2f 20 | 2) (24 |* (^ (/ |
|00003ef0| 31 20 32 29 20 28 2f 20 | 33 20 32 29 29 20 28 63 |1 2) (/ |3 2)) (c|
|00003f00| 61 6c 63 46 75 6e 63 2d | 73 71 72 74 20 28 2d 20 |alcFunc-|sqrt (- |
|00003f10| 35 20 28 63 61 6c 63 46 | 75 6e 63 2d 73 71 72 74 |5 (calcF|unc-sqrt|
|00003f20| 20 35 29 29 29 29 20 28 | 33 30 20 2f 20 28 63 61 | 5)))) (|30 / (ca|
|00003f30| 6c 63 46 75 6e 63 2d 73 | 71 72 74 20 32 29 20 32 |lcFunc-s|qrt 2) 2|
|00003f40| 29 20 28 33 36 20 2f 20 | 28 2b 20 28 63 61 6c 63 |) (36 / |(+ (calc|
|00003f50| 46 75 6e 63 2d 73 71 72 | 74 20 35 29 20 31 29 20 |Func-sqr|t 5) 1) |
|00003f60| 34 29 20 28 34 30 20 2f | 20 28 63 61 6c 63 46 75 |4) (40 /| (calcFu|
|00003f70| 6e 63 2d 73 71 72 74 20 | 33 29 20 32 29 20 28 34 |nc-sqrt |3) 2) (4|
|00003f80| 35 20 2f 20 28 63 61 6c | 63 46 75 6e 63 2d 73 71 |5 / (cal|cFunc-sq|
|00003f90| 72 74 20 28 2b 20 32 20 | 28 63 61 6c 63 46 75 6e |rt (+ 2 |(calcFun|
|00003fa0| 63 2d 73 71 72 74 20 32 | 29 29 29 20 32 29 20 28 |c-sqrt 2|))) 2) (|
|00003fb0| 34 38 20 2a 20 28 5e 20 | 28 2f 20 31 20 32 29 20 |48 * (^ |(/ 1 2) |
|00003fc0| 28 2f 20 33 20 32 29 29 | 20 28 63 61 6c 63 46 75 |(/ 3 2))| (calcFu|
|00003fd0| 6e 63 2d 73 71 72 74 20 | 28 2b 20 35 20 28 63 61 |nc-sqrt |(+ 5 (ca|
|00003fe0| 6c 63 46 75 6e 63 2d 73 | 71 72 74 20 35 29 29 29 |lcFunc-s|qrt 5)))|
|00003ff0| 29 20 28 35 30 20 2f 20 | 28 63 61 6c 63 46 75 6e |) (50 / |(calcFun|
|00004000| 63 2d 73 71 72 74 20 28 | 2b 20 32 20 28 63 61 6c |c-sqrt (|+ 2 (cal|
|00004010| 63 46 75 6e 63 2d 73 71 | 72 74 20 33 29 29 29 20 |cFunc-sq|rt 3))) |
|00004020| 32 29 20 28 36 30 20 2e | 20 31 29 29 20 6d 61 74 |2) (60 .| 1)) mat|
|00004030| 68 2d 6e 6f 72 6d 61 6c | 69 7a 65 20 63 61 6c 63 |h-normal|ize calc|
|00004040| 46 75 6e 63 2d 73 69 6e | 20 63 61 6c 63 46 75 6e |Func-sin| calcFun|
|00004050| 63 2d 63 6f 73 5d 20 31 | 33 29 29 0a 0a 28 6d 61 |c-cos] 1|3))..(ma|
|00004060| 74 68 2d 64 65 66 73 69 | 6d 70 6c 69 66 79 20 63 |th-defsi|mplify c|
|00004070| 61 6c 63 46 75 6e 63 2d | 74 61 6e 20 28 6f 72 20 |alcFunc-|tan (or |
|00004080| 28 61 6e 64 20 28 65 71 | 20 28 63 61 72 2d 73 61 |(and (eq| (car-sa|
|00004090| 66 65 20 28 6e 74 68 20 | 31 20 65 78 70 72 29 29 |fe (nth |1 expr))|
|000040a0| 20 28 71 75 6f 74 65 20 | 63 61 6c 63 46 75 6e 63 | (quote |calcFunc|
|000040b0| 2d 61 72 63 74 61 6e 29 | 29 20 28 6e 74 68 20 31 |-arctan)|) (nth 1|
|000040c0| 20 28 6e 74 68 20 31 20 | 65 78 70 72 29 29 29 20 | (nth 1 |expr))) |
|000040d0| 28 61 6e 64 20 28 6d 61 | 74 68 2d 6c 6f 6f 6b 73 |(and (ma|th-looks|
|000040e0| 2d 6e 65 67 70 20 28 6e | 74 68 20 31 20 65 78 70 |-negp (n|th 1 exp|
|000040f0| 72 29 29 20 28 6d 61 74 | 68 2d 6e 65 67 20 28 6c |r)) (mat|h-neg (l|
|00004100| 69 73 74 20 28 71 75 6f | 74 65 20 63 61 6c 63 46 |ist (quo|te calcF|
|00004110| 75 6e 63 2d 74 61 6e 29 | 20 28 6d 61 74 68 2d 6e |unc-tan)| (math-n|
|00004120| 65 67 20 28 6e 74 68 20 | 31 20 65 78 70 72 29 29 |eg (nth |1 expr))|
|00004130| 29 29 29 20 28 61 6e 64 | 20 28 65 71 20 63 61 6c |))) (and| (eq cal|
|00004140| 63 2d 61 6e 67 6c 65 2d | 6d 6f 64 65 20 28 71 75 |c-angle-|mode (qu|
|00004150| 6f 74 65 20 72 61 64 29 | 29 20 28 6c 65 74 20 28 |ote rad)|) (let (|
|00004160| 28 6e 20 28 6d 61 74 68 | 2d 6c 69 6e 65 61 72 2d |(n (math|-linear-|
|00004170| 69 6e 20 28 6e 74 68 20 | 31 20 65 78 70 72 29 20 |in (nth |1 expr) |
|00004180| 28 71 75 6f 74 65 20 28 | 76 61 72 20 70 69 20 76 |(quote (|var pi v|
|00004190| 61 72 2d 70 69 29 29 29 | 29 29 20 28 61 6e 64 20 |ar-pi)))|)) (and |
|000041a0| 6e 20 28 6d 61 74 68 2d | 6b 6e 6f 77 6e 2d 74 61 |n (math-|known-ta|
|000041b0| 6e 20 28 63 61 72 20 6e | 29 20 28 6e 74 68 20 31 |n (car n|) (nth 1|
|000041c0| 20 6e 29 20 31 32 30 29 | 29 29 29 20 28 61 6e 64 | n) 120)|))) (and|
|000041d0| 20 28 65 71 20 63 61 6c | 63 2d 61 6e 67 6c 65 2d | (eq cal|c-angle-|
|000041e0| 6d 6f 64 65 20 28 71 75 | 6f 74 65 20 64 65 67 29 |mode (qu|ote deg)|
|000041f0| 29 20 28 6c 65 74 20 28 | 28 6e 20 28 6d 61 74 68 |) (let (|(n (math|
|00004200| 2d 69 6e 74 65 67 65 72 | 2d 70 6c 75 73 20 28 6e |-integer|-plus (n|
|00004210| 74 68 20 31 20 65 78 70 | 72 29 29 29 29 20 28 61 |th 1 exp|r)))) (a|
|00004220| 6e 64 20 6e 20 28 6d 61 | 74 68 2d 6b 6e 6f 77 6e |nd n (ma|th-known|
|00004230| 2d 74 61 6e 20 28 63 61 | 72 20 6e 29 20 28 6e 74 |-tan (ca|r n) (nt|
|00004240| 68 20 31 20 6e 29 20 28 | 71 75 6f 74 65 20 28 66 |h 1 n) (|quote (f|
|00004250| 72 61 63 20 32 20 33 29 | 29 29 29 29 29 20 28 61 |rac 2 3)|))))) (a|
|00004260| 6e 64 20 28 65 71 20 28 | 63 61 72 2d 73 61 66 65 |nd (eq (|car-safe|
|00004270| 20 28 6e 74 68 20 31 20 | 65 78 70 72 29 29 20 28 | (nth 1 |expr)) (|
|00004280| 71 75 6f 74 65 20 63 61 | 6c 63 46 75 6e 63 2d 61 |quote ca|lcFunc-a|
|00004290| 72 63 73 69 6e 29 29 20 | 28 6d 61 74 68 2d 64 69 |rcsin)) |(math-di|
|000042a0| 76 20 28 6e 74 68 20 31 | 20 28 6e 74 68 20 31 20 |v (nth 1| (nth 1 |
|000042b0| 65 78 70 72 29 29 20 28 | 6c 69 73 74 20 28 71 75 |expr)) (|list (qu|
|000042c0| 6f 74 65 20 63 61 6c 63 | 46 75 6e 63 2d 73 71 72 |ote calc|Func-sqr|
|000042d0| 74 29 20 28 6d 61 74 68 | 2d 73 75 62 20 31 20 28 |t) (math|-sub 1 (|
|000042e0| 6d 61 74 68 2d 73 71 72 | 20 28 6e 74 68 20 31 20 |math-sqr| (nth 1 |
|000042f0| 28 6e 74 68 20 31 20 65 | 78 70 72 29 29 29 29 29 |(nth 1 e|xpr)))))|
|00004300| 29 29 20 28 61 6e 64 20 | 28 65 71 20 28 63 61 72 |)) (and |(eq (car|
|00004310| 2d 73 61 66 65 20 28 6e | 74 68 20 31 20 65 78 70 |-safe (n|th 1 exp|
|00004320| 72 29 29 20 28 71 75 6f | 74 65 20 63 61 6c 63 46 |r)) (quo|te calcF|
|00004330| 75 6e 63 2d 61 72 63 63 | 6f 73 29 29 20 28 6d 61 |unc-arcc|os)) (ma|
|00004340| 74 68 2d 64 69 76 20 28 | 6c 69 73 74 20 28 71 75 |th-div (|list (qu|
|00004350| 6f 74 65 20 63 61 6c 63 | 46 75 6e 63 2d 73 71 72 |ote calc|Func-sqr|
|00004360| 74 29 20 28 6d 61 74 68 | 2d 73 75 62 20 31 20 28 |t) (math|-sub 1 (|
|00004370| 6d 61 74 68 2d 73 71 72 | 20 28 6e 74 68 20 31 20 |math-sqr| (nth 1 |
|00004380| 28 6e 74 68 20 31 20 65 | 78 70 72 29 29 29 29 29 |(nth 1 e|xpr)))))|
|00004390| 20 28 6e 74 68 20 31 20 | 28 6e 74 68 20 31 20 65 | (nth 1 |(nth 1 e|
|000043a0| 78 70 72 29 29 29 29 20 | 28 6c 65 74 20 28 28 6d |xpr)))) |(let ((m|
|000043b0| 20 28 6d 61 74 68 2d 73 | 68 6f 75 6c 64 2d 65 78 | (math-s|hould-ex|
|000043c0| 70 61 6e 64 2d 74 72 69 | 67 20 28 6e 74 68 20 31 |pand-tri|g (nth 1|
|000043d0| 20 65 78 70 72 29 29 29 | 29 20 28 61 6e 64 20 6d | expr)))|) (and m|
|000043e0| 20 28 69 66 20 28 65 71 | 75 61 6c 20 28 63 61 72 | (if (eq|ual (car|
|000043f0| 20 6d 29 20 28 71 75 6f | 74 65 20 28 66 72 61 63 | m) (quo|te (frac|
|00004400| 20 31 20 32 29 29 29 20 | 28 6d 61 74 68 2d 64 69 | 1 2))) |(math-di|
|00004410| 76 20 28 6d 61 74 68 2d | 73 75 62 20 31 20 28 6c |v (math-|sub 1 (l|
|00004420| 69 73 74 20 28 71 75 6f | 74 65 20 63 61 6c 63 46 |ist (quo|te calcF|
|00004430| 75 6e 63 2d 63 6f 73 29 | 20 28 6e 74 68 20 31 20 |unc-cos)| (nth 1 |
|00004440| 6d 29 29 29 20 28 6c 69 | 73 74 20 28 71 75 6f 74 |m))) (li|st (quot|
|00004450| 65 20 63 61 6c 63 46 75 | 6e 63 2d 73 69 6e 29 20 |e calcFu|nc-sin) |
|00004460| 28 6e 74 68 20 31 20 6d | 29 29 29 20 28 6d 61 74 |(nth 1 m|))) (mat|
|00004470| 68 2d 64 69 76 20 28 6c | 69 73 74 20 28 71 75 6f |h-div (l|ist (quo|
|00004480| 74 65 20 63 61 6c 63 46 | 75 6e 63 2d 73 69 6e 29 |te calcF|unc-sin)|
|00004490| 20 28 6e 74 68 20 31 20 | 65 78 70 72 29 29 20 28 | (nth 1 |expr)) (|
|000044a0| 6c 69 73 74 20 28 71 75 | 6f 74 65 20 63 61 6c 63 |list (qu|ote calc|
|000044b0| 46 75 6e 63 2d 63 6f 73 | 29 20 28 6e 74 68 20 31 |Func-cos|) (nth 1|
|000044c0| 20 65 78 70 72 29 29 29 | 29 29 29 29 29 0a 0a 28 | expr)))|)))))..(|
|000044d0| 64 65 66 75 6e 20 6d 61 | 74 68 2d 6b 6e 6f 77 6e |defun ma|th-known|
|000044e0| 2d 74 61 6e 20 28 70 6c | 75 73 20 6e 20 6d 75 6c |-tan (pl|us n mul|
|000044f0| 29 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 c6 08 |) (byte-|code "..|
|00004500| 09 5c 22 89 10 88 c7 08 | 21 85 68 00 c8 c9 08 21 |.\".....|!.h....!|
|00004510| ca 5c 22 89 10 85 68 00 | 08 cb 56 83 30 00 cc 0a |.\"...h.|..V.0...|
|00004520| ca 08 5a cd 23 89 10 85 | 2d 00 ce 08 21 82 68 00 |..Z.#...|-...!.h.|
|00004530| cf 0a 21 83 48 00 0b 86 | 3d 00 08 d0 3e 85 45 00 |..!.H...|=...>.E.|
|00004540| d1 08 d2 5c 22 41 82 68 | 00 08 d3 3d 83 56 00 d4 |...\"A.h|...=.V..|
|00004550| d5 0a 44 21 82 68 00 08 | cb 3d 83 67 00 d4 d6 d7 |..D!.h..|.=.g....|
|00004560| d5 0a 44 45 21 82 68 00 | c5 87 22 20 5b 6e 20 6d |..DE!.h.|.." [n m|
|00004570| 75 6c 20 70 6c 75 73 20 | 63 61 6c 63 2d 73 79 6d |ul plus |calc-sym|
|00004580| 62 6f 6c 69 63 2d 6d 6f | 64 65 20 74 20 6e 69 6c |bolic-mo|de t nil|
|00004590| 20 6d 61 74 68 2d 6d 75 | 6c 20 6d 61 74 68 2d 6e | math-mu|l math-n|
|000045a0| 75 6d 2d 69 6e 74 65 67 | 65 72 70 20 6d 61 74 68 |um-integ|erp math|
|000045b0| 2d 6d 6f 64 20 6d 61 74 | 68 2d 74 72 75 6e 63 20 |-mod mat|h-trunc |
|000045c0| 31 32 30 20 36 30 20 6d | 61 74 68 2d 6b 6e 6f 77 |120 60 m|ath-know|
|000045d0| 6e 2d 74 61 6e 20 31 20 | 6d 61 74 68 2d 6e 65 67 |n-tan 1 |math-neg|
|000045e0| 20 6d 61 74 68 2d 7a 65 | 72 6f 70 20 28 30 20 33 | math-ze|rop (0 3|
|000045f0| 30 20 36 30 29 20 61 73 | 73 71 20 28 28 30 20 2e |0 60) as|sq ((0 .|
|00004600| 20 30 29 20 28 31 30 20 | 2d 20 32 20 28 63 61 6c | 0) (10 |- 2 (cal|
|00004610| 63 46 75 6e 63 2d 73 71 | 72 74 20 33 29 29 20 28 |cFunc-sq|rt 3)) (|
|00004620| 31 32 20 63 61 6c 63 46 | 75 6e 63 2d 73 71 72 74 |12 calcF|unc-sqrt|
|00004630| 20 28 2d 20 31 20 28 2a | 20 28 2f 20 32 20 35 29 | (- 1 (*| (/ 2 5)|
|00004640| 20 28 63 61 6c 63 46 75 | 6e 63 2d 73 71 72 74 20 | (calcFu|nc-sqrt |
|00004650| 35 29 29 29 29 20 28 31 | 35 20 2d 20 28 63 61 6c |5)))) (1|5 - (cal|
|00004660| 63 46 75 6e 63 2d 73 71 | 72 74 20 32 29 20 31 29 |cFunc-sq|rt 2) 1)|
|00004670| 20 28 32 30 20 2f 20 28 | 63 61 6c 63 46 75 6e 63 | (20 / (|calcFunc|
|00004680| 2d 73 71 72 74 20 33 29 | 20 33 29 20 28 32 34 20 |-sqrt 3)| 3) (24 |
|00004690| 63 61 6c 63 46 75 6e 63 | 2d 73 71 72 74 20 28 2d |calcFunc|-sqrt (-|
|000046a0| 20 35 20 28 2a 20 32 20 | 28 63 61 6c 63 46 75 6e | 5 (* 2 |(calcFun|
|000046b0| 63 2d 73 71 72 74 20 35 | 29 29 29 29 20 28 33 30 |c-sqrt 5|)))) (30|
|000046c0| 20 2e 20 31 29 20 28 33 | 36 20 63 61 6c 63 46 75 | . 1) (3|6 calcFu|
|000046d0| 6e 63 2d 73 71 72 74 20 | 28 2b 20 31 20 28 2a 20 |nc-sqrt |(+ 1 (* |
|000046e0| 28 2f 20 32 20 35 29 20 | 28 63 61 6c 63 46 75 6e |(/ 2 5) |(calcFun|
|000046f0| 63 2d 73 71 72 74 20 35 | 29 29 29 29 20 28 34 30 |c-sqrt 5|)))) (40|
|00004700| 20 63 61 6c 63 46 75 6e | 63 2d 73 71 72 74 20 33 | calcFun|c-sqrt 3|
|00004710| 29 20 28 34 35 20 2b 20 | 28 63 61 6c 63 46 75 6e |) (45 + |(calcFun|
|00004720| 63 2d 73 71 72 74 20 32 | 29 20 31 29 20 28 34 38 |c-sqrt 2|) 1) (48|
|00004730| 20 63 61 6c 63 46 75 6e | 63 2d 73 71 72 74 20 28 | calcFun|c-sqrt (|
|00004740| 2b 20 35 20 28 2a 20 32 | 20 28 63 61 6c 63 46 75 |+ 5 (* 2| (calcFu|
|00004750| 6e 63 2d 73 71 72 74 20 | 35 29 29 29 29 20 28 35 |nc-sqrt |5)))) (5|
|00004760| 30 20 2b 20 32 20 28 63 | 61 6c 63 46 75 6e 63 2d |0 + 2 (c|alcFunc-|
|00004770| 73 71 72 74 20 33 29 29 | 20 28 36 30 20 76 61 72 |sqrt 3))| (60 var|
|00004780| 20 75 69 6e 66 20 76 61 | 72 2d 75 69 6e 66 29 29 | uinf va|r-uinf))|
|00004790| 20 30 20 6d 61 74 68 2d | 6e 6f 72 6d 61 6c 69 7a | 0 math-|normaliz|
|000047a0| 65 20 63 61 6c 63 46 75 | 6e 63 2d 74 61 6e 20 2f |e calcFu|nc-tan /|
|000047b0| 20 2d 31 5d 20 31 34 29 | 29 0a 0a 28 6d 61 74 68 | -1] 14)|)..(math|
|000047c0| 2d 64 65 66 73 69 6d 70 | 6c 69 66 79 20 63 61 6c |-defsimp|lify cal|
|000047d0| 63 46 75 6e 63 2d 73 69 | 6e 68 20 28 6f 72 20 28 |cFunc-si|nh (or (|
|000047e0| 61 6e 64 20 28 65 71 20 | 28 63 61 72 2d 73 61 66 |and (eq |(car-saf|
|000047f0| 65 20 28 6e 74 68 20 31 | 20 65 78 70 72 29 29 20 |e (nth 1| expr)) |
|00004800| 28 71 75 6f 74 65 20 63 | 61 6c 63 46 75 6e 63 2d |(quote c|alcFunc-|
|00004810| 61 72 63 73 69 6e 68 29 | 29 20 28 6e 74 68 20 31 |arcsinh)|) (nth 1|
|00004820| 20 28 6e 74 68 20 31 20 | 65 78 70 72 29 29 29 20 | (nth 1 |expr))) |
|00004830| 28 61 6e 64 20 28 6d 61 | 74 68 2d 6c 6f 6f 6b 73 |(and (ma|th-looks|
|00004840| 2d 6e 65 67 70 20 28 6e | 74 68 20 31 20 65 78 70 |-negp (n|th 1 exp|
|00004850| 72 29 29 20 28 6d 61 74 | 68 2d 6e 65 67 20 28 6c |r)) (mat|h-neg (l|
|00004860| 69 73 74 20 28 71 75 6f | 74 65 20 63 61 6c 63 46 |ist (quo|te calcF|
|00004870| 75 6e 63 2d 73 69 6e 68 | 29 20 28 6d 61 74 68 2d |unc-sinh|) (math-|
|00004880| 6e 65 67 20 28 6e 74 68 | 20 31 20 65 78 70 72 29 |neg (nth| 1 expr)|
|00004890| 29 29 29 29 20 28 61 6e | 64 20 28 65 71 20 28 63 |)))) (an|d (eq (c|
|000048a0| 61 72 2d 73 61 66 65 20 | 28 6e 74 68 20 31 20 65 |ar-safe |(nth 1 e|
|000048b0| 78 70 72 29 29 20 28 71 | 75 6f 74 65 20 63 61 6c |xpr)) (q|uote cal|
|000048c0| 63 46 75 6e 63 2d 61 72 | 63 63 6f 73 68 29 29 20 |cFunc-ar|ccosh)) |
|000048d0| 6d 61 74 68 2d 6c 69 76 | 69 6e 67 2d 64 61 6e 67 |math-liv|ing-dang|
|000048e0| 65 72 6f 75 73 6c 79 20 | 28 6c 69 73 74 20 28 71 |erously |(list (q|
|000048f0| 75 6f 74 65 20 63 61 6c | 63 46 75 6e 63 2d 73 71 |uote cal|cFunc-sq|
|00004900| 72 74 29 20 28 6d 61 74 | 68 2d 73 75 62 20 28 6d |rt) (mat|h-sub (m|
|00004910| 61 74 68 2d 73 71 72 20 | 28 6e 74 68 20 31 20 28 |ath-sqr |(nth 1 (|
|00004920| 6e 74 68 20 31 20 65 78 | 70 72 29 29 29 20 31 29 |nth 1 ex|pr))) 1)|
|00004930| 29 29 20 28 61 6e 64 20 | 28 65 71 20 28 63 61 72 |)) (and |(eq (car|
|00004940| 2d 73 61 66 65 20 28 6e | 74 68 20 31 20 65 78 70 |-safe (n|th 1 exp|
|00004950| 72 29 29 20 28 71 75 6f | 74 65 20 63 61 6c 63 46 |r)) (quo|te calcF|
|00004960| 75 6e 63 2d 61 72 63 74 | 61 6e 68 29 29 20 6d 61 |unc-arct|anh)) ma|
|00004970| 74 68 2d 6c 69 76 69 6e | 67 2d 64 61 6e 67 65 72 |th-livin|g-danger|
|00004980| 6f 75 73 6c 79 20 28 6d | 61 74 68 2d 64 69 76 20 |ously (m|ath-div |
|00004990| 28 6e 74 68 20 31 20 28 | 6e 74 68 20 31 20 65 78 |(nth 1 (|nth 1 ex|
|000049a0| 70 72 29 29 20 28 6c 69 | 73 74 20 28 71 75 6f 74 |pr)) (li|st (quot|
|000049b0| 65 20 63 61 6c 63 46 75 | 6e 63 2d 73 71 72 74 29 |e calcFu|nc-sqrt)|
|000049c0| 20 28 6d 61 74 68 2d 73 | 75 62 20 31 20 28 6d 61 | (math-s|ub 1 (ma|
|000049d0| 74 68 2d 73 71 72 20 28 | 6e 74 68 20 31 20 28 6e |th-sqr (|nth 1 (n|
|000049e0| 74 68 20 31 20 65 78 70 | 72 29 29 29 29 29 29 29 |th 1 exp|r)))))))|
|000049f0| 20 28 6c 65 74 20 28 28 | 6d 20 28 6d 61 74 68 2d | (let ((|m (math-|
|00004a00| 73 68 6f 75 6c 64 2d 65 | 78 70 61 6e 64 2d 74 72 |should-e|xpand-tr|
|00004a10| 69 67 20 28 6e 74 68 20 | 31 20 65 78 70 72 29 20 |ig (nth |1 expr) |
|00004a20| 74 29 29 29 20 28 61 6e | 64 20 6d 20 28 69 6e 74 |t))) (an|d m (int|
|00004a30| 65 67 65 72 70 20 28 63 | 61 72 20 6d 29 29 20 28 |egerp (c|ar m)) (|
|00004a40| 6c 65 74 20 28 28 6e 20 | 28 63 61 72 20 6d 29 29 |let ((n |(car m))|
|00004a50| 20 28 61 20 28 6e 74 68 | 20 31 20 6d 29 29 29 20 | (a (nth| 1 m))) |
|00004a60| 28 69 66 20 28 3e 20 6e | 20 31 29 20 28 6c 69 73 |(if (> n| 1) (lis|
|00004a70| 74 20 28 71 75 6f 74 65 | 20 2b 29 20 28 6c 69 73 |t (quote| +) (lis|
|00004a80| 74 20 28 71 75 6f 74 65 | 20 2a 29 20 28 6c 69 73 |t (quote| *) (lis|
|00004a90| 74 20 28 71 75 6f 74 65 | 20 63 61 6c 63 46 75 6e |t (quote| calcFun|
|00004aa0| 63 2d 73 69 6e 68 29 20 | 28 6c 69 73 74 20 28 71 |c-sinh) |(list (q|
|00004ab0| 75 6f 74 65 20 2a 29 20 | 28 31 2d 20 6e 29 20 61 |uote *) |(1- n) a|
|00004ac0| 29 29 20 28 6c 69 73 74 | 20 28 71 75 6f 74 65 20 |)) (list| (quote |
|00004ad0| 63 61 6c 63 46 75 6e 63 | 2d 63 6f 73 68 29 20 61 |calcFunc|-cosh) a|
|00004ae0| 29 29 20 28 6c 69 73 74 | 20 28 71 75 6f 74 65 20 |)) (list| (quote |
|00004af0| 2a 29 20 28 6c 69 73 74 | 20 28 71 75 6f 74 65 20 |*) (list| (quote |
|00004b00| 63 61 6c 63 46 75 6e 63 | 2d 63 6f 73 68 29 20 28 |calcFunc|-cosh) (|
|00004b10| 6c 69 73 74 20 28 71 75 | 6f 74 65 20 2a 29 20 28 |list (qu|ote *) (|
|00004b20| 31 2d 20 6e 29 20 61 29 | 29 20 28 6c 69 73 74 20 |1- n) a)|) (list |
|00004b30| 28 71 75 6f 74 65 20 63 | 61 6c 63 46 75 6e 63 2d |(quote c|alcFunc-|
|00004b40| 73 69 6e 68 29 20 61 29 | 29 29 29 29 29 29 29 29 |sinh) a)|))))))))|
|00004b50| 0a 0a 28 6d 61 74 68 2d | 64 65 66 73 69 6d 70 6c |..(math-|defsimpl|
|00004b60| 69 66 79 20 63 61 6c 63 | 46 75 6e 63 2d 63 6f 73 |ify calc|Func-cos|
|00004b70| 68 20 28 6f 72 20 28 61 | 6e 64 20 28 65 71 20 28 |h (or (a|nd (eq (|
|00004b80| 63 61 72 2d 73 61 66 65 | 20 28 6e 74 68 20 31 20 |car-safe| (nth 1 |
|00004b90| 65 78 70 72 29 29 20 28 | 71 75 6f 74 65 20 63 61 |expr)) (|quote ca|
|00004ba0| 6c 63 46 75 6e 63 2d 61 | 72 63 63 6f 73 68 29 29 |lcFunc-a|rccosh))|
|00004bb0| 20 28 6e 74 68 20 31 20 | 28 6e 74 68 20 31 20 65 | (nth 1 |(nth 1 e|
|00004bc0| 78 70 72 29 29 29 20 28 | 61 6e 64 20 28 6d 61 74 |xpr))) (|and (mat|
|00004bd0| 68 2d 6c 6f 6f 6b 73 2d | 6e 65 67 70 20 28 6e 74 |h-looks-|negp (nt|
|00004be0| 68 20 31 20 65 78 70 72 | 29 29 20 28 6c 69 73 74 |h 1 expr|)) (list|
|00004bf0| 20 28 71 75 6f 74 65 20 | 63 61 6c 63 46 75 6e 63 | (quote |calcFunc|
|00004c00| 2d 63 6f 73 68 29 20 28 | 6d 61 74 68 2d 6e 65 67 |-cosh) (|math-neg|
|00004c10| 20 28 6e 74 68 20 31 20 | 65 78 70 72 29 29 29 29 | (nth 1 |expr))))|
|00004c20| 20 28 61 6e 64 20 28 65 | 71 20 28 63 61 72 2d 73 | (and (e|q (car-s|
|00004c30| 61 66 65 20 28 6e 74 68 | 20 31 20 65 78 70 72 29 |afe (nth| 1 expr)|
|00004c40| 29 20 28 71 75 6f 74 65 | 20 63 61 6c 63 46 75 6e |) (quote| calcFun|
|00004c50| 63 2d 61 72 63 73 69 6e | 68 29 29 20 6d 61 74 68 |c-arcsin|h)) math|
|00004c60| 2d 6c 69 76 69 6e 67 2d | 64 61 6e 67 65 72 6f 75 |-living-|dangerou|
|00004c70| 73 6c 79 20 28 6c 69 73 | 74 20 28 71 75 6f 74 65 |sly (lis|t (quote|
|00004c80| 20 63 61 6c 63 46 75 6e | 63 2d 73 71 72 74 29 20 | calcFun|c-sqrt) |
|00004c90| 28 6d 61 74 68 2d 61 64 | 64 20 28 6d 61 74 68 2d |(math-ad|d (math-|
|00004ca0| 73 71 72 20 28 6e 74 68 | 20 31 20 28 6e 74 68 20 |sqr (nth| 1 (nth |
|00004cb0| 31 20 65 78 70 72 29 29 | 29 20 31 29 29 29 20 28 |1 expr))|) 1))) (|
|00004cc0| 61 6e 64 20 28 65 71 20 | 28 63 61 72 2d 73 61 66 |and (eq |(car-saf|
|00004cd0| 65 20 28 6e 74 68 20 31 | 20 65 78 70 72 29 29 20 |e (nth 1| expr)) |
|00004ce0| 28 71 75 6f 74 65 20 63 | 61 6c 63 46 75 6e 63 2d |(quote c|alcFunc-|
|00004cf0| 61 72 63 74 61 6e 68 29 | 29 20 6d 61 74 68 2d 6c |arctanh)|) math-l|
|00004d00| 69 76 69 6e 67 2d 64 61 | 6e 67 65 72 6f 75 73 6c |iving-da|ngerousl|
|00004d10| 79 20 28 6d 61 74 68 2d | 64 69 76 20 31 20 28 6c |y (math-|div 1 (l|
|00004d20| 69 73 74 20 28 71 75 6f | 74 65 20 63 61 6c 63 46 |ist (quo|te calcF|
|00004d30| 75 6e 63 2d 73 71 72 74 | 29 20 28 6d 61 74 68 2d |unc-sqrt|) (math-|
|00004d40| 73 75 62 20 31 20 28 6d | 61 74 68 2d 73 71 72 20 |sub 1 (m|ath-sqr |
|00004d50| 28 6e 74 68 20 31 20 28 | 6e 74 68 20 31 20 65 78 |(nth 1 (|nth 1 ex|
|00004d60| 70 72 29 29 29 29 29 29 | 29 20 28 6c 65 74 20 28 |pr))))))|) (let (|
|00004d70| 28 6d 20 28 6d 61 74 68 | 2d 73 68 6f 75 6c 64 2d |(m (math|-should-|
|00004d80| 65 78 70 61 6e 64 2d 74 | 72 69 67 20 28 6e 74 68 |expand-t|rig (nth|
|00004d90| 20 31 20 65 78 70 72 29 | 20 74 29 29 29 20 28 61 | 1 expr)| t))) (a|
|00004da0| 6e 64 20 6d 20 28 69 6e | 74 65 67 65 72 70 20 28 |nd m (in|tegerp (|
|00004db0| 63 61 72 20 6d 29 29 20 | 28 6c 65 74 20 28 28 6e |car m)) |(let ((n|
|00004dc0| 20 28 63 61 72 20 6d 29 | 29 20 28 61 20 28 6e 74 | (car m)|) (a (nt|
|00004dd0| 68 20 31 20 6d 29 29 29 | 20 28 69 66 20 28 3e 20 |h 1 m)))| (if (> |
|00004de0| 6e 20 31 29 20 28 6c 69 | 73 74 20 28 71 75 6f 74 |n 1) (li|st (quot|
|00004df0| 65 20 2b 29 20 28 6c 69 | 73 74 20 28 71 75 6f 74 |e +) (li|st (quot|
|00004e00| 65 20 2a 29 20 28 6c 69 | 73 74 20 28 71 75 6f 74 |e *) (li|st (quot|
|00004e10| 65 20 63 61 6c 63 46 75 | 6e 63 2d 63 6f 73 68 29 |e calcFu|nc-cosh)|
|00004e20| 20 28 6c 69 73 74 20 28 | 71 75 6f 74 65 20 2a 29 | (list (|quote *)|
|00004e30| 20 28 31 2d 20 6e 29 20 | 61 29 29 20 28 6c 69 73 | (1- n) |a)) (lis|
|00004e40| 74 20 28 71 75 6f 74 65 | 20 63 61 6c 63 46 75 6e |t (quote| calcFun|
|00004e50| 63 2d 63 6f 73 68 29 20 | 61 29 29 20 28 6c 69 73 |c-cosh) |a)) (lis|
|00004e60| 74 20 28 71 75 6f 74 65 | 20 2a 29 20 28 6c 69 73 |t (quote| *) (lis|
|00004e70| 74 20 28 71 75 6f 74 65 | 20 63 61 6c 63 46 75 6e |t (quote| calcFun|
|00004e80| 63 2d 73 69 6e 68 29 20 | 28 6c 69 73 74 20 28 71 |c-sinh) |(list (q|
|00004e90| 75 6f 74 65 20 2a 29 20 | 28 31 2d 20 6e 29 20 61 |uote *) |(1- n) a|
|00004ea0| 29 29 20 28 6c 69 73 74 | 20 28 71 75 6f 74 65 20 |)) (list| (quote |
|00004eb0| 63 61 6c 63 46 75 6e 63 | 2d 73 69 6e 68 29 20 61 |calcFunc|-sinh) a|
|00004ec0| 29 29 29 29 29 29 29 29 | 29 0a 0a 28 6d 61 74 68 |))))))))|)..(math|
|00004ed0| 2d 64 65 66 73 69 6d 70 | 6c 69 66 79 20 63 61 6c |-defsimp|lify cal|
|00004ee0| 63 46 75 6e 63 2d 74 61 | 6e 68 20 28 6f 72 20 28 |cFunc-ta|nh (or (|
|00004ef0| 61 6e 64 20 28 65 71 20 | 28 63 61 72 2d 73 61 66 |and (eq |(car-saf|
|00004f00| 65 20 28 6e 74 68 20 31 | 20 65 78 70 72 29 29 20 |e (nth 1| expr)) |
|00004f10| 28 71 75 6f 74 65 20 63 | 61 6c 63 46 75 6e 63 2d |(quote c|alcFunc-|
|00004f20| 61 72 63 74 61 6e 68 29 | 29 20 28 6e 74 68 20 31 |arctanh)|) (nth 1|
|00004f30| 20 28 6e 74 68 20 31 20 | 65 78 70 72 29 29 29 20 | (nth 1 |expr))) |
|00004f40| 28 61 6e 64 20 28 6d 61 | 74 68 2d 6c 6f 6f 6b 73 |(and (ma|th-looks|
|00004f50| 2d 6e 65 67 70 20 28 6e | 74 68 20 31 20 65 78 70 |-negp (n|th 1 exp|
|00004f60| 72 29 29 20 28 6d 61 74 | 68 2d 6e 65 67 20 28 6c |r)) (mat|h-neg (l|
|00004f70| 69 73 74 20 28 71 75 6f | 74 65 20 63 61 6c 63 46 |ist (quo|te calcF|
|00004f80| 75 6e 63 2d 74 61 6e 68 | 29 20 28 6d 61 74 68 2d |unc-tanh|) (math-|
|00004f90| 6e 65 67 20 28 6e 74 68 | 20 31 20 65 78 70 72 29 |neg (nth| 1 expr)|
|00004fa0| 29 29 29 29 20 28 61 6e | 64 20 28 65 71 20 28 63 |)))) (an|d (eq (c|
|00004fb0| 61 72 2d 73 61 66 65 20 | 28 6e 74 68 20 31 20 65 |ar-safe |(nth 1 e|
|00004fc0| 78 70 72 29 29 20 28 71 | 75 6f 74 65 20 63 61 6c |xpr)) (q|uote cal|
|00004fd0| 63 46 75 6e 63 2d 61 72 | 63 73 69 6e 68 29 29 20 |cFunc-ar|csinh)) |
|00004fe0| 6d 61 74 68 2d 6c 69 76 | 69 6e 67 2d 64 61 6e 67 |math-liv|ing-dang|
|00004ff0| 65 72 6f 75 73 6c 79 20 | 28 6d 61 74 68 2d 64 69 |erously |(math-di|
|00005000| 76 20 28 6e 74 68 20 31 | 20 28 6e 74 68 20 31 20 |v (nth 1| (nth 1 |
|00005010| 65 78 70 72 29 29 20 28 | 6c 69 73 74 20 28 71 75 |expr)) (|list (qu|
|00005020| 6f 74 65 20 63 61 6c 63 | 46 75 6e 63 2d 73 71 72 |ote calc|Func-sqr|
|00005030| 74 29 20 28 6d 61 74 68 | 2d 61 64 64 20 28 6d 61 |t) (math|-add (ma|
|00005040| 74 68 2d 73 71 72 20 28 | 6e 74 68 20 31 20 28 6e |th-sqr (|nth 1 (n|
|00005050| 74 68 20 31 20 65 78 70 | 72 29 29 29 20 31 29 29 |th 1 exp|r))) 1))|
|00005060| 29 29 20 28 61 6e 64 20 | 28 65 71 20 28 63 61 72 |)) (and |(eq (car|
|00005070| 2d 73 61 66 65 20 28 6e | 74 68 20 31 20 65 78 70 |-safe (n|th 1 exp|
|00005080| 72 29 29 20 28 71 75 6f | 74 65 20 63 61 6c 63 46 |r)) (quo|te calcF|
|00005090| 75 6e 63 2d 61 72 63 63 | 6f 73 68 29 29 20 6d 61 |unc-arcc|osh)) ma|
|000050a0| 74 68 2d 6c 69 76 69 6e | 67 2d 64 61 6e 67 65 72 |th-livin|g-danger|
|000050b0| 6f 75 73 6c 79 20 28 6d | 61 74 68 2d 64 69 76 20 |ously (m|ath-div |
|000050c0| 28 6c 69 73 74 20 28 71 | 75 6f 74 65 20 63 61 6c |(list (q|uote cal|
|000050d0| 63 46 75 6e 63 2d 73 71 | 72 74 29 20 28 6d 61 74 |cFunc-sq|rt) (mat|
|000050e0| 68 2d 73 75 62 20 28 6d | 61 74 68 2d 73 71 72 20 |h-sub (m|ath-sqr |
|000050f0| 28 6e 74 68 20 31 20 28 | 6e 74 68 20 31 20 65 78 |(nth 1 (|nth 1 ex|
|00005100| 70 72 29 29 29 20 31 29 | 29 20 28 6e 74 68 20 31 |pr))) 1)|) (nth 1|
|00005110| 20 28 6e 74 68 20 31 20 | 65 78 70 72 29 29 29 29 | (nth 1 |expr))))|
|00005120| 20 28 6c 65 74 20 28 28 | 6d 20 28 6d 61 74 68 2d | (let ((|m (math-|
|00005130| 73 68 6f 75 6c 64 2d 65 | 78 70 61 6e 64 2d 74 72 |should-e|xpand-tr|
|00005140| 69 67 20 28 6e 74 68 20 | 31 20 65 78 70 72 29 20 |ig (nth |1 expr) |
|00005150| 74 29 29 29 20 28 61 6e | 64 20 6d 20 28 69 66 20 |t))) (an|d m (if |
|00005160| 28 65 71 75 61 6c 20 28 | 63 61 72 20 6d 29 20 28 |(equal (|car m) (|
|00005170| 71 75 6f 74 65 20 28 66 | 72 61 63 20 31 20 32 29 |quote (f|rac 1 2)|
|00005180| 29 29 20 28 6d 61 74 68 | 2d 64 69 76 20 28 6d 61 |)) (math|-div (ma|
|00005190| 74 68 2d 73 75 62 20 28 | 6c 69 73 74 20 28 71 75 |th-sub (|list (qu|
|000051a0| 6f 74 65 20 63 61 6c 63 | 46 75 6e 63 2d 63 6f 73 |ote calc|Func-cos|
|000051b0| 68 29 20 28 6e 74 68 20 | 31 20 6d 29 29 20 31 29 |h) (nth |1 m)) 1)|
|000051c0| 20 28 6c 69 73 74 20 28 | 71 75 6f 74 65 20 63 61 | (list (|quote ca|
|000051d0| 6c 63 46 75 6e 63 2d 73 | 69 6e 68 29 20 28 6e 74 |lcFunc-s|inh) (nt|
|000051e0| 68 20 31 20 6d 29 29 29 | 20 28 6d 61 74 68 2d 64 |h 1 m)))| (math-d|
|000051f0| 69 76 20 28 6c 69 73 74 | 20 28 71 75 6f 74 65 20 |iv (list| (quote |
|00005200| 63 61 6c 63 46 75 6e 63 | 2d 73 69 6e 68 29 20 28 |calcFunc|-sinh) (|
|00005210| 6e 74 68 20 31 20 65 78 | 70 72 29 29 20 28 6c 69 |nth 1 ex|pr)) (li|
|00005220| 73 74 20 28 71 75 6f 74 | 65 20 63 61 6c 63 46 75 |st (quot|e calcFu|
|00005230| 6e 63 2d 63 6f 73 68 29 | 20 28 6e 74 68 20 31 20 |nc-cosh)| (nth 1 |
|00005240| 65 78 70 72 29 29 29 29 | 29 29 29 29 0a 0a 28 6d |expr))))|))))..(m|
|00005250| 61 74 68 2d 64 65 66 73 | 69 6d 70 6c 69 66 79 20 |ath-defs|implify |
|00005260| 63 61 6c 63 46 75 6e 63 | 2d 61 72 63 73 69 6e 20 |calcFunc|-arcsin |
|00005270| 28 6f 72 20 28 61 6e 64 | 20 28 6d 61 74 68 2d 6c |(or (and| (math-l|
|00005280| 6f 6f 6b 73 2d 6e 65 67 | 70 20 28 6e 74 68 20 31 |ooks-neg|p (nth 1|
|00005290| 20 65 78 70 72 29 29 20 | 28 6d 61 74 68 2d 6e 65 | expr)) |(math-ne|
|000052a0| 67 20 28 6c 69 73 74 20 | 28 71 75 6f 74 65 20 63 |g (list |(quote c|
|000052b0| 61 6c 63 46 75 6e 63 2d | 61 72 63 73 69 6e 29 20 |alcFunc-|arcsin) |
|000052c0| 28 6d 61 74 68 2d 6e 65 | 67 20 28 6e 74 68 20 31 |(math-ne|g (nth 1|
|000052d0| 20 65 78 70 72 29 29 29 | 29 29 20 28 61 6e 64 20 | expr)))|)) (and |
|000052e0| 28 65 71 20 28 6e 74 68 | 20 31 20 65 78 70 72 29 |(eq (nth| 1 expr)|
|000052f0| 20 31 29 20 28 6d 61 74 | 68 2d 71 75 61 72 74 65 | 1) (mat|h-quarte|
|00005300| 72 2d 63 69 72 63 6c 65 | 20 74 29 29 20 28 61 6e |r-circle| t)) (an|
|00005310| 64 20 28 65 71 75 61 6c | 20 28 6e 74 68 20 31 20 |d (equal| (nth 1 |
|00005320| 65 78 70 72 29 20 28 71 | 75 6f 74 65 20 28 66 72 |expr) (q|uote (fr|
|00005330| 61 63 20 31 20 32 29 29 | 29 20 28 6d 61 74 68 2d |ac 1 2))|) (math-|
|00005340| 64 69 76 20 28 6d 61 74 | 68 2d 68 61 6c 66 2d 63 |div (mat|h-half-c|
|00005350| 69 72 63 6c 65 20 74 29 | 20 36 29 29 20 28 61 6e |ircle t)| 6)) (an|
|00005360| 64 20 6d 61 74 68 2d 6c | 69 76 69 6e 67 2d 64 61 |d math-l|iving-da|
|00005370| 6e 67 65 72 6f 75 73 6c | 79 20 28 65 71 20 28 63 |ngerousl|y (eq (c|
|00005380| 61 72 2d 73 61 66 65 20 | 28 6e 74 68 20 31 20 65 |ar-safe |(nth 1 e|
|00005390| 78 70 72 29 29 20 28 71 | 75 6f 74 65 20 63 61 6c |xpr)) (q|uote cal|
|000053a0| 63 46 75 6e 63 2d 73 69 | 6e 29 29 20 28 6e 74 68 |cFunc-si|n)) (nth|
|000053b0| 20 31 20 28 6e 74 68 20 | 31 20 65 78 70 72 29 29 | 1 (nth |1 expr))|
|000053c0| 29 20 28 61 6e 64 20 6d | 61 74 68 2d 6c 69 76 69 |) (and m|ath-livi|
|000053d0| 6e 67 2d 64 61 6e 67 65 | 72 6f 75 73 6c 79 20 28 |ng-dange|rously (|
|000053e0| 65 71 20 28 63 61 72 2d | 73 61 66 65 20 28 6e 74 |eq (car-|safe (nt|
|000053f0| 68 20 31 20 65 78 70 72 | 29 29 20 28 71 75 6f 74 |h 1 expr|)) (quot|
|00005400| 65 20 63 61 6c 63 46 75 | 6e 63 2d 63 6f 73 29 29 |e calcFu|nc-cos))|
|00005410| 20 28 6d 61 74 68 2d 73 | 75 62 20 28 6d 61 74 68 | (math-s|ub (math|
|00005420| 2d 71 75 61 72 74 65 72 | 2d 63 69 72 63 6c 65 20 |-quarter|-circle |
|00005430| 74 29 20 28 6e 74 68 20 | 31 20 28 6e 74 68 20 31 |t) (nth |1 (nth 1|
|00005440| 20 65 78 70 72 29 29 29 | 29 29 29 0a 0a 28 6d 61 | expr)))|)))..(ma|
|00005450| 74 68 2d 64 65 66 73 69 | 6d 70 6c 69 66 79 20 63 |th-defsi|mplify c|
|00005460| 61 6c 63 46 75 6e 63 2d | 61 72 63 63 6f 73 20 28 |alcFunc-|arccos (|
|00005470| 6f 72 20 28 61 6e 64 20 | 28 65 71 20 28 6e 74 68 |or (and |(eq (nth|
|00005480| 20 31 20 65 78 70 72 29 | 20 30 29 20 28 6d 61 74 | 1 expr)| 0) (mat|
|00005490| 68 2d 71 75 61 72 74 65 | 72 2d 63 69 72 63 6c 65 |h-quarte|r-circle|
|000054a0| 20 74 29 29 20 28 61 6e | 64 20 28 65 71 20 28 6e | t)) (an|d (eq (n|
|000054b0| 74 68 20 31 20 65 78 70 | 72 29 20 2d 31 29 20 28 |th 1 exp|r) -1) (|
|000054c0| 6d 61 74 68 2d 68 61 6c | 66 2d 63 69 72 63 6c 65 |math-hal|f-circle|
|000054d0| 20 74 29 29 20 28 61 6e | 64 20 28 65 71 75 61 6c | t)) (an|d (equal|
|000054e0| 20 28 6e 74 68 20 31 20 | 65 78 70 72 29 20 28 71 | (nth 1 |expr) (q|
|000054f0| 75 6f 74 65 20 28 66 72 | 61 63 20 31 20 32 29 29 |uote (fr|ac 1 2))|
|00005500| 29 20 28 6d 61 74 68 2d | 64 69 76 20 28 6d 61 74 |) (math-|div (mat|
|00005510| 68 2d 68 61 6c 66 2d 63 | 69 72 63 6c 65 20 74 29 |h-half-c|ircle t)|
|00005520| 20 33 29 29 20 28 61 6e | 64 20 28 65 71 75 61 6c | 3)) (an|d (equal|
|00005530| 20 28 6e 74 68 20 31 20 | 65 78 70 72 29 20 28 71 | (nth 1 |expr) (q|
|00005540| 75 6f 74 65 20 28 66 72 | 61 63 20 2d 31 20 32 29 |uote (fr|ac -1 2)|
|00005550| 29 29 20 28 6d 61 74 68 | 2d 64 69 76 20 28 6d 61 |)) (math|-div (ma|
|00005560| 74 68 2d 6d 75 6c 20 28 | 6d 61 74 68 2d 68 61 6c |th-mul (|math-hal|
|00005570| 66 2d 63 69 72 63 6c 65 | 20 74 29 20 32 29 20 33 |f-circle| t) 2) 3|
|00005580| 29 29 20 28 61 6e 64 20 | 6d 61 74 68 2d 6c 69 76 |)) (and |math-liv|
|00005590| 69 6e 67 2d 64 61 6e 67 | 65 72 6f 75 73 6c 79 20 |ing-dang|erously |
|000055a0| 28 65 71 20 28 63 61 72 | 2d 73 61 66 65 20 28 6e |(eq (car|-safe (n|
|000055b0| 74 68 20 31 20 65 78 70 | 72 29 29 20 28 71 75 6f |th 1 exp|r)) (quo|
|000055c0| 74 65 20 63 61 6c 63 46 | 75 6e 63 2d 63 6f 73 29 |te calcF|unc-cos)|
|000055d0| 29 20 28 6e 74 68 20 31 | 20 28 6e 74 68 20 31 20 |) (nth 1| (nth 1 |
|000055e0| 65 78 70 72 29 29 29 20 | 28 61 6e 64 20 6d 61 74 |expr))) |(and mat|
|000055f0| 68 2d 6c 69 76 69 6e 67 | 2d 64 61 6e 67 65 72 6f |h-living|-dangero|
|00005600| 75 73 6c 79 20 28 65 71 | 20 28 63 61 72 2d 73 61 |usly (eq| (car-sa|
|00005610| 66 65 20 28 6e 74 68 20 | 31 20 65 78 70 72 29 29 |fe (nth |1 expr))|
|00005620| 20 28 71 75 6f 74 65 20 | 63 61 6c 63 46 75 6e 63 | (quote |calcFunc|
|00005630| 2d 73 69 6e 29 29 20 28 | 6d 61 74 68 2d 73 75 62 |-sin)) (|math-sub|
|00005640| 20 28 6d 61 74 68 2d 71 | 75 61 72 74 65 72 2d 63 | (math-q|uarter-c|
|00005650| 69 72 63 6c 65 20 74 29 | 20 28 6e 74 68 20 31 20 |ircle t)| (nth 1 |
|00005660| 28 6e 74 68 20 31 20 65 | 78 70 72 29 29 29 29 29 |(nth 1 e|xpr)))))|
|00005670| 29 0a 0a 28 6d 61 74 68 | 2d 64 65 66 73 69 6d 70 |)..(math|-defsimp|
|00005680| 6c 69 66 79 20 63 61 6c | 63 46 75 6e 63 2d 61 72 |lify cal|cFunc-ar|
|00005690| 63 74 61 6e 20 28 6f 72 | 20 28 61 6e 64 20 28 6d |ctan (or| (and (m|
|000056a0| 61 74 68 2d 6c 6f 6f 6b | 73 2d 6e 65 67 70 20 28 |ath-look|s-negp (|
|000056b0| 6e 74 68 20 31 20 65 78 | 70 72 29 29 20 28 6d 61 |nth 1 ex|pr)) (ma|
|000056c0| 74 68 2d 6e 65 67 20 28 | 6c 69 73 74 20 28 71 75 |th-neg (|list (qu|
|000056d0| 6f 74 65 20 63 61 6c 63 | 46 75 6e 63 2d 61 72 63 |ote calc|Func-arc|
|000056e0| 74 61 6e 29 20 28 6d 61 | 74 68 2d 6e 65 67 20 28 |tan) (ma|th-neg (|
|000056f0| 6e 74 68 20 31 20 65 78 | 70 72 29 29 29 29 29 20 |nth 1 ex|pr))))) |
|00005700| 28 61 6e 64 20 28 65 71 | 20 28 6e 74 68 20 31 20 |(and (eq| (nth 1 |
|00005710| 65 78 70 72 29 20 31 29 | 20 28 6d 61 74 68 2d 64 |expr) 1)| (math-d|
|00005720| 69 76 20 28 6d 61 74 68 | 2d 68 61 6c 66 2d 63 69 |iv (math|-half-ci|
|00005730| 72 63 6c 65 20 74 29 20 | 34 29 29 20 28 61 6e 64 |rcle t) |4)) (and|
|00005740| 20 6d 61 74 68 2d 6c 69 | 76 69 6e 67 2d 64 61 6e | math-li|ving-dan|
|00005750| 67 65 72 6f 75 73 6c 79 | 20 28 65 71 20 28 63 61 |gerously| (eq (ca|
|00005760| 72 2d 73 61 66 65 20 28 | 6e 74 68 20 31 20 65 78 |r-safe (|nth 1 ex|
|00005770| 70 72 29 29 20 28 71 75 | 6f 74 65 20 63 61 6c 63 |pr)) (qu|ote calc|
|00005780| 46 75 6e 63 2d 74 61 6e | 29 29 20 28 6e 74 68 20 |Func-tan|)) (nth |
|00005790| 31 20 28 6e 74 68 20 31 | 20 65 78 70 72 29 29 29 |1 (nth 1| expr)))|
|000057a0| 29 29 0a 0a 28 6d 61 74 | 68 2d 64 65 66 73 69 6d |))..(mat|h-defsim|
|000057b0| 70 6c 69 66 79 20 63 61 | 6c 63 46 75 6e 63 2d 61 |plify ca|lcFunc-a|
|000057c0| 72 63 73 69 6e 68 20 28 | 6f 72 20 28 61 6e 64 20 |rcsinh (|or (and |
|000057d0| 28 6d 61 74 68 2d 6c 6f | 6f 6b 73 2d 6e 65 67 70 |(math-lo|oks-negp|
|000057e0| 20 28 6e 74 68 20 31 20 | 65 78 70 72 29 29 20 28 | (nth 1 |expr)) (|
|000057f0| 6d 61 74 68 2d 6e 65 67 | 20 28 6c 69 73 74 20 28 |math-neg| (list (|
|00005800| 71 75 6f 74 65 20 63 61 | 6c 63 46 75 6e 63 2d 61 |quote ca|lcFunc-a|
|00005810| 72 63 73 69 6e 68 29 20 | 28 6d 61 74 68 2d 6e 65 |rcsinh) |(math-ne|
|00005820| 67 20 28 6e 74 68 20 31 | 20 65 78 70 72 29 29 29 |g (nth 1| expr)))|
|00005830| 29 29 20 28 61 6e 64 20 | 28 65 71 20 28 63 61 72 |)) (and |(eq (car|
|00005840| 2d 73 61 66 65 20 28 6e | 74 68 20 31 20 65 78 70 |-safe (n|th 1 exp|
|00005850| 72 29 29 20 28 71 75 6f | 74 65 20 63 61 6c 63 46 |r)) (quo|te calcF|
|00005860| 75 6e 63 2d 73 69 6e 68 | 29 29 20 28 6f 72 20 6d |unc-sinh|)) (or m|
|00005870| 61 74 68 2d 6c 69 76 69 | 6e 67 2d 64 61 6e 67 65 |ath-livi|ng-dange|
|00005880| 72 6f 75 73 6c 79 20 28 | 6d 61 74 68 2d 6b 6e 6f |rously (|math-kno|
|00005890| 77 6e 2d 72 65 61 6c 70 | 20 28 6e 74 68 20 31 20 |wn-realp| (nth 1 |
|000058a0| 28 6e 74 68 20 31 20 65 | 78 70 72 29 29 29 29 20 |(nth 1 e|xpr)))) |
|000058b0| 28 6e 74 68 20 31 20 28 | 6e 74 68 20 31 20 65 78 |(nth 1 (|nth 1 ex|
|000058c0| 70 72 29 29 29 29 29 0a | 0a 28 6d 61 74 68 2d 64 |pr))))).|.(math-d|
|000058d0| 65 66 73 69 6d 70 6c 69 | 66 79 20 63 61 6c 63 46 |efsimpli|fy calcF|
|000058e0| 75 6e 63 2d 61 72 63 63 | 6f 73 68 20 28 61 6e 64 |unc-arcc|osh (and|
|000058f0| 20 28 65 71 20 28 63 61 | 72 2d 73 61 66 65 20 28 | (eq (ca|r-safe (|
|00005900| 6e 74 68 20 31 20 65 78 | 70 72 29 29 20 28 71 75 |nth 1 ex|pr)) (qu|
|00005910| 6f 74 65 20 63 61 6c 63 | 46 75 6e 63 2d 63 6f 73 |ote calc|Func-cos|
|00005920| 68 29 29 20 28 6f 72 20 | 6d 61 74 68 2d 6c 69 76 |h)) (or |math-liv|
|00005930| 69 6e 67 2d 64 61 6e 67 | 65 72 6f 75 73 6c 79 20 |ing-dang|erously |
|00005940| 28 6d 61 74 68 2d 6b 6e | 6f 77 6e 2d 72 65 61 6c |(math-kn|own-real|
|00005950| 70 20 28 6e 74 68 20 31 | 20 28 6e 74 68 20 31 20 |p (nth 1| (nth 1 |
|00005960| 65 78 70 72 29 29 29 29 | 20 28 6e 74 68 20 31 20 |expr))))| (nth 1 |
|00005970| 28 6e 74 68 20 31 20 65 | 78 70 72 29 29 29 29 0a |(nth 1 e|xpr)))).|
|00005980| 0a 28 6d 61 74 68 2d 64 | 65 66 73 69 6d 70 6c 69 |.(math-d|efsimpli|
|00005990| 66 79 20 63 61 6c 63 46 | 75 6e 63 2d 61 72 63 74 |fy calcF|unc-arct|
|000059a0| 61 6e 68 20 28 6f 72 20 | 28 61 6e 64 20 28 6d 61 |anh (or |(and (ma|
|000059b0| 74 68 2d 6c 6f 6f 6b 73 | 2d 6e 65 67 70 20 28 6e |th-looks|-negp (n|
|000059c0| 74 68 20 31 20 65 78 70 | 72 29 29 20 28 6d 61 74 |th 1 exp|r)) (mat|
|000059d0| 68 2d 6e 65 67 20 28 6c | 69 73 74 20 28 71 75 6f |h-neg (l|ist (quo|
|000059e0| 74 65 20 63 61 6c 63 46 | 75 6e 63 2d 61 72 63 74 |te calcF|unc-arct|
|000059f0| 61 6e 68 29 20 28 6d 61 | 74 68 2d 6e 65 67 20 28 |anh) (ma|th-neg (|
|00005a00| 6e 74 68 20 31 20 65 78 | 70 72 29 29 29 29 29 20 |nth 1 ex|pr))))) |
|00005a10| 28 61 6e 64 20 28 65 71 | 20 28 63 61 72 2d 73 61 |(and (eq| (car-sa|
|00005a20| 66 65 20 28 6e 74 68 20 | 31 20 65 78 70 72 29 29 |fe (nth |1 expr))|
|00005a30| 20 28 71 75 6f 74 65 20 | 63 61 6c 63 46 75 6e 63 | (quote |calcFunc|
|00005a40| 2d 74 61 6e 68 29 29 20 | 28 6f 72 20 6d 61 74 68 |-tanh)) |(or math|
|00005a50| 2d 6c 69 76 69 6e 67 2d | 64 61 6e 67 65 72 6f 75 |-living-|dangerou|
|00005a60| 73 6c 79 20 28 6d 61 74 | 68 2d 6b 6e 6f 77 6e 2d |sly (mat|h-known-|
|00005a70| 72 65 61 6c 70 20 28 6e | 74 68 20 31 20 28 6e 74 |realp (n|th 1 (nt|
|00005a80| 68 20 31 20 65 78 70 72 | 29 29 29 29 20 28 6e 74 |h 1 expr|)))) (nt|
|00005a90| 68 20 31 20 28 6e 74 68 | 20 31 20 65 78 70 72 29 |h 1 (nth| 1 expr)|
|00005aa0| 29 29 29 29 0a 0a 28 6d | 61 74 68 2d 64 65 66 73 |))))..(m|ath-defs|
|00005ab0| 69 6d 70 6c 69 66 79 20 | 63 61 6c 63 46 75 6e 63 |implify |calcFunc|
|00005ac0| 2d 73 71 72 74 20 28 6d | 61 74 68 2d 73 69 6d 70 |-sqrt (m|ath-simp|
|00005ad0| 6c 69 66 79 2d 73 71 72 | 74 29 29 0a 0a 28 64 65 |lify-sqr|t))..(de|
|00005ae0| 66 75 6e 20 6d 61 74 68 | 2d 73 69 6d 70 6c 69 66 |fun math|-simplif|
|00005af0| 79 2d 73 71 72 74 20 6e | 69 6c 20 28 62 79 74 65 |y-sqrt n|il (byte|
|00005b00| 2d 63 6f 64 65 20 22 ca | cb 08 38 21 cc 3d 85 1f |-code ".|..8!.=..|
|00005b10| 00 cd ce cf cb cb 08 38 | 38 d0 cb 08 38 38 5c 22 |.......8|8...88\"|
|00005b20| 44 d0 cb 08 38 38 5c 22 | 86 83 02 d1 cb 08 38 21 |D...88\"|......8!|
|00005b30| 83 32 00 d2 cb 08 38 21 | 82 37 00 d3 cb 08 38 21 |.2....8!|.7....8!|
|00005b40| 19 09 85 54 00 09 cb 3d | 3f 85 54 00 cf d4 ce 09 |...T...=|?.T.....|
|00005b50| 44 21 d4 ce d5 cb 08 38 | 09 5c 22 44 21 5c 22 29 |D!.....8|.\"D!\")|
|00005b60| 86 83 02 0a 85 83 02 ca | cb 08 38 21 d6 3d 85 bf |........|..8!.=..|
|00005b70| 00 d7 cb cb 08 38 38 cb | 5c 22 85 bf 00 ca d0 cb |.....88.|\"......|
|00005b80| 08 38 38 21 d8 3d 85 bf | 00 d7 d0 d0 cb 08 38 38 |.88!.=..|......88|
|00005b90| 38 d0 5c 22 85 bf 00 ca | cb d0 cb 08 38 38 38 21 |8.\"....|....888!|
|00005ba0| d9 3d 85 a3 00 da cb cb | d0 cb 08 38 38 38 38 44 |.=......|...8888D|
|00005bb0| 86 bf 00 ca cb d0 cb 08 | 38 38 38 21 da 3d 85 bf |........|888!.=..|
|00005bc0| 00 d9 cb cb d0 cb 08 38 | 38 38 38 44 86 83 02 ca |.......8|888D....|
|00005bd0| cb 08 38 21 d6 3d 85 09 | 01 d7 d0 cb 08 38 38 cb |..8!.=..|.....88.|
|00005be0| 5c 22 85 09 01 ca cb cb | 08 38 38 21 d8 3d 85 09 |\"......|.88!.=..|
|00005bf0| 01 d7 d0 cb cb 08 38 38 | 38 d0 5c 22 85 09 01 ca |......88|8.\"....|
|00005c00| cb cb cb 08 38 38 38 21 | db 3d 85 09 01 dc cb cb |....888!|.=......|
|00005c10| cb cb 08 38 38 38 38 44 | 86 83 02 ca cb 08 38 21 |...8888D|......8!|
|00005c20| dd 3d 85 76 01 cb cb 08 | 38 38 d0 cb 08 38 38 1c |.=.v....|88...88.|
|00005c30| 1b d7 0b cb 5c 22 85 32 | 01 0c 13 cb cb 08 38 38 |....\".2|......88|
|00005c40| 89 14 86 39 01 d7 0c cb | 5c 22 85 75 01 ca 0b 21 |...9....|\".u...!|
|00005c50| d8 3d 85 75 01 d7 d0 0b | 38 d0 5c 22 85 75 01 ca |.=.u....|8.\".u..|
|00005c60| cb 0b 38 21 dc 3d 85 5e | 01 db cb cb 0b 38 38 44 |..8!.=.^|.....88D|
|00005c70| 86 75 01 ca cb 0b 38 21 | de 3d 85 75 01 df cb da |.u....8!|.=.u....|
|00005c80| cb cb 0b 38 38 44 45 2a | 86 83 02 ca cb 08 38 21 |...88DE*|......8!|
|00005c90| d8 3d 85 92 01 d8 cb cb | 08 38 38 cd d0 cb 08 38 |.=......|.88....8|
|00005ca0| 38 d0 5c 22 45 86 83 02 | ca cb 08 38 21 ce 3d 85 |8.\"E...|...8!.=.|
|00005cb0| aa 01 d8 cb cb 08 38 38 | cd cb e0 5c 22 45 86 83 |......88|...\"E..|
|00005cc0| 02 ca cb 08 38 21 e1 3e | 85 ca 01 cb 08 38 40 ce |....8!.>|.....8@.|
|00005cd0| cb cb 08 38 38 44 ce d0 | cb 08 38 38 44 45 86 83 |...88D..|..88DE..|
|00005ce0| 02 ca cb 08 38 21 e2 3e | 85 83 02 e3 cb 08 38 21 |....8!.>|......8!|
|00005cf0| 3f 85 83 02 e4 e5 cb 08 | 38 21 21 1d e6 0d 21 85 |?.......|8!!...!.|
|00005d00| 82 02 0d 47 d0 56 86 fc | 01 d0 cb 0d 38 38 cb 56 |...G.V..|....88.V|
|00005d10| 85 82 02 cb cb cb e7 e7 | 1e 09 19 1e 08 1e 07 1e |........|........|
|00005d20| 06 0d 41 89 15 85 65 02 | cb 0d 40 38 11 d0 0d 40 |..A...e.|..@8...@|
|00005d30| 38 89 16 09 88 0e 09 cb | 56 85 3e 02 cf 0e 06 e8 |8.......|V.>.....|
|00005d40| 09 df 0e 09 d0 5c 22 5c | 22 5c 22 16 06 e9 0e 09 |.....\"\|"\".....|
|00005d50| d0 5c 22 89 16 09 88 0e | 09 ea 56 85 61 02 ca 09 |.\".....|..V.a...|
|00005d60| 21 eb 3e 83 59 02 ec 0e | 08 09 5c 22 89 16 08 82 |!.>.Y...|..\"....|
|00005d70| 61 02 cf 0e 07 09 5c 22 | 89 16 07 88 82 0d 02 88 |a.....\"|........|
|00005d80| 0e 06 cb 3d 85 71 02 0e | 07 ed 3e 3f 85 81 02 cf |...=.q..|..>?....|
|00005d90| 0e 06 ce cf 0e 08 0e 07 | 5c 22 44 5c 22 2d 29 87 |........|\"D\"-).|
|00005da0| 22 20 5b 65 78 70 72 20 | 66 61 63 20 6d 61 74 68 |" [expr |fac math|
|00005db0| 2d 6c 69 76 69 6e 67 2d | 64 61 6e 67 65 72 6f 75 |-living-|dangerou|
|00005dc0| 73 6c 79 20 61 20 62 20 | 66 20 6f 75 74 20 72 65 |sly a b |f out re|
|00005dd0| 73 74 20 73 75 6d 73 20 | 70 6f 77 20 63 61 72 2d |st sums |pow car-|
|00005de0| 73 61 66 65 20 31 20 66 | 72 61 63 20 6d 61 74 68 |safe 1 f|rac math|
|00005df0| 2d 64 69 76 20 63 61 6c | 63 46 75 6e 63 2d 73 71 |-div cal|cFunc-sq|
|00005e00| 72 74 20 6d 61 74 68 2d | 6d 75 6c 20 32 20 6d 61 |rt math-|mul 2 ma|
|00005e10| 74 68 2d 6f 62 6a 65 63 | 74 70 20 6d 61 74 68 2d |th-objec|tp math-|
|00005e20| 73 71 75 61 72 65 64 2d | 66 61 63 74 6f 72 20 6d |squared-|factor m|
|00005e30| 61 74 68 2d 63 6f 6d 6d | 6f 6e 2d 63 6f 6e 73 74 |ath-comm|on-const|
|00005e40| 61 6e 74 2d 66 61 63 74 | 6f 72 20 6d 61 74 68 2d |ant-fact|or math-|
|00005e50| 6e 6f 72 6d 61 6c 69 7a | 65 20 6d 61 74 68 2d 63 |normaliz|e math-c|
|00005e60| 61 6e 63 65 6c 2d 63 6f | 6d 6d 6f 6e 2d 66 61 63 |ancel-co|mmon-fac|
|00005e70| 74 6f 72 20 2d 20 6d 61 | 74 68 2d 65 71 75 61 6c |tor - ma|th-equal|
|00005e80| 2d 69 6e 74 20 5e 20 63 | 61 6c 63 46 75 6e 63 2d |-int ^ c|alcFunc-|
|00005e90| 73 69 6e 20 63 61 6c 63 | 46 75 6e 63 2d 63 6f 73 |sin calc|Func-cos|
|00005ea0| 20 63 61 6c 63 46 75 6e | 63 2d 63 6f 73 68 20 63 | calcFun|c-cosh c|
|00005eb0| 61 6c 63 46 75 6e 63 2d | 73 69 6e 68 20 2b 20 63 |alcFunc-|sinh + c|
|00005ec0| 61 6c 63 46 75 6e 63 2d | 74 61 6e 20 2f 20 34 20 |alcFunc-|tan / 4 |
|00005ed0| 28 2a 20 2f 29 20 28 2b | 20 2d 29 20 6d 61 74 68 |(* /) (+| -) math|
|00005ee0| 2d 61 6e 79 2d 66 6c 6f | 61 74 73 20 63 61 6c 63 |-any-flo|ats calc|
|00005ef0| 46 75 6e 63 2d 66 61 63 | 74 6f 72 73 20 63 61 6c |Func-fac|tors cal|
|00005f00| 63 46 75 6e 63 2d 65 78 | 70 61 6e 64 20 6d 61 74 |cFunc-ex|pand mat|
|00005f10| 68 2d 76 65 63 74 6f 72 | 70 20 6e 69 6c 20 6d 61 |h-vector|p nil ma|
|00005f20| 74 68 2d 70 6f 77 20 25 | 20 30 20 28 2b 20 2d 29 |th-pow %| 0 (+ -)|
|00005f30| 20 6d 61 74 68 2d 6d 75 | 6c 2d 74 68 72 75 20 28 | math-mu|l-thru (|
|00005f40| 31 20 2d 31 29 5d 20 35 | 31 29 29 0a 0a 28 64 65 |1 -1)] 5|1))..(de|
|00005f50| 66 75 6e 20 6d 61 74 68 | 2d 73 71 75 61 72 65 64 |fun math|-squared|
|00005f60| 2d 66 61 63 74 6f 72 20 | 28 78 29 20 28 62 79 74 |-factor |(x) (byt|
|00005f70| 65 2d 63 6f 64 65 20 22 | 08 3a 3f 86 0a 00 08 40 |e-code "|.:?....@|
|00005f80| c4 3e 85 3c 00 c5 c6 c7 | 1b 1a 19 09 85 39 00 c8 |.>.<....|.....9..|
|00005f90| 08 09 40 5c 22 89 13 41 | c9 3d 83 31 00 0b 40 10 |..@\"..A|.=.1..@.|
|00005fa0| ca 0a 09 40 5c 22 89 12 | 82 35 00 09 41 89 11 88 |...@\"..|.5..A...|
|00005fb0| 82 13 00 88 0a 2b 87 22 | 20 5b 78 20 70 72 73 71 |.....+."| [x prsq|
|00005fc0| 72 20 66 61 63 20 72 65 | 73 20 28 62 69 67 70 6f |r fac re|s (bigpo|
|00005fd0| 73 20 62 69 67 6e 65 67 | 29 20 28 34 20 39 20 32 |s bigneg|) (4 9 2|
|00005fe0| 35 20 34 39 20 31 32 31 | 20 31 36 39 20 32 38 39 |5 49 121| 169 289|
|00005ff0| 20 33 36 31 20 35 32 39 | 20 38 34 31 29 20 31 20 | 361 529| 841) 1 |
|00006000| 6e 69 6c 20 6d 61 74 68 | 2d 69 64 69 76 6d 6f 64 |nil math|-idivmod|
|00006010| 20 30 20 6d 61 74 68 2d | 6d 75 6c 5d 20 35 29 29 | 0 math-|mul] 5))|
|00006020| 0a 0a 28 6d 61 74 68 2d | 64 65 66 73 69 6d 70 6c |..(math-|defsimpl|
|00006030| 69 66 79 20 63 61 6c 63 | 46 75 6e 63 2d 65 78 70 |ify calc|Func-exp|
|00006040| 20 28 6d 61 74 68 2d 73 | 69 6d 70 6c 69 66 79 2d | (math-s|implify-|
|00006050| 65 78 70 20 28 6e 74 68 | 20 31 20 65 78 70 72 29 |exp (nth| 1 expr)|
|00006060| 29 29 0a 0a 28 64 65 66 | 75 6e 20 6d 61 74 68 2d |))..(def|un math-|
|00006070| 73 69 6d 70 6c 69 66 79 | 2d 65 78 70 20 28 78 29 |simplify|-exp (x)|
|00006080| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c8 08 21 | (byte-c|ode "..!|
|00006090| c9 3d 85 0b 00 ca 08 38 | 86 c5 00 09 85 7d 00 c8 |.=.....8|.....}..|
|000060a0| 08 21 cb 3d 85 29 00 cc | ca 08 38 cd cc ce ca 08 |.!.=.)..|..8.....|
|000060b0| 38 21 ca 5c 22 44 5c 22 | 86 7d 00 c8 08 21 cf 3d |8!.\"D\"|.}...!.=|
|000060c0| 85 43 00 cc ca 08 38 cd | d0 ce ca 08 38 21 ca 5c |.C....8.|....8!.\|
|000060d0| 22 44 5c 22 86 7d 00 c8 | 08 21 d1 3d 85 60 00 d2 |"D\".}..|.!.=.`..|
|000060e0| cd cc ca ca 08 38 5c 22 | 44 cd d0 ca ca 08 38 5c |.....8\"|D.....8\|
|000060f0| 22 44 5c 22 86 7d 00 d3 | 08 d4 5c 22 1a 0a 85 7c |"D\".}..|..\"...||
|00006100| 00 d5 0a 40 21 85 7c 00 | d6 d7 ca 0a 38 44 0a 40 |...@!.|.|....8D.@|
|00006110| 45 29 86 c5 00 0b 85 c5 | 00 d8 08 21 85 c5 00 d9 |E)......|...!....|
|00006120| 08 21 1c da 0c db 5c 22 | 1d dc 1e 06 dc 1e 07 0d |.!....\"|........|
|00006130| 85 c4 00 dd 0d 40 ca 0d | 38 de df 24 89 16 06 85 |.....@..|8..$....|
|00006140| c4 00 dd 0d 40 ca 0d 38 | de e0 24 89 16 07 85 c4 |....@..8|..$.....|
|00006150| 00 e1 0e 07 e2 0e 06 e3 | 45 45 2c 87 22 20 5b 78 |........|EE,." [x|
|00006160| 20 6d 61 74 68 2d 6c 69 | 76 69 6e 67 2d 64 61 6e | math-li|ving-dan|
|00006170| 67 65 72 6f 75 73 6c 79 | 20 6d 20 63 61 6c 63 2d |gerously| m calc-|
|00006180| 73 79 6d 62 6f 6c 69 63 | 2d 6d 6f 64 65 20 69 70 |symbolic|-mode ip|
|00006190| 20 6e 20 73 20 63 20 63 | 61 72 2d 73 61 66 65 20 | n s c c|ar-safe |
|000061a0| 63 61 6c 63 46 75 6e 63 | 2d 6c 6e 20 31 20 63 61 |calcFunc|-ln 1 ca|
|000061b0| 6c 63 46 75 6e 63 2d 61 | 72 63 73 69 6e 68 20 6d |lcFunc-a|rcsinh m|
|000061c0| 61 74 68 2d 61 64 64 20 | 63 61 6c 63 46 75 6e 63 |ath-add |calcFunc|
|000061d0| 2d 73 71 72 74 20 6d 61 | 74 68 2d 73 71 72 20 63 |-sqrt ma|th-sqr c|
|000061e0| 61 6c 63 46 75 6e 63 2d | 61 72 63 63 6f 73 68 20 |alcFunc-|arccosh |
|000061f0| 6d 61 74 68 2d 73 75 62 | 20 63 61 6c 63 46 75 6e |math-sub| calcFun|
|00006200| 63 2d 61 72 63 74 61 6e | 68 20 6d 61 74 68 2d 64 |c-arctan|h math-d|
|00006210| 69 76 20 6d 61 74 68 2d | 73 68 6f 75 6c 64 2d 65 |iv math-|should-e|
|00006220| 78 70 61 6e 64 2d 74 72 | 69 67 20 65 78 70 20 69 |xpand-tr|ig exp i|
|00006230| 6e 74 65 67 65 72 70 20 | 5e 20 63 61 6c 63 46 75 |ntegerp |^ calcFu|
|00006240| 6e 63 2d 65 78 70 20 6d | 61 74 68 2d 6b 6e 6f 77 |nc-exp m|ath-know|
|00006250| 6e 2d 69 6d 61 67 70 20 | 63 61 6c 63 46 75 6e 63 |n-imagp |calcFunc|
|00006260| 2d 69 6d 20 6d 61 74 68 | 2d 6c 69 6e 65 61 72 2d |-im math|-linear-|
|00006270| 69 6e 20 28 76 61 72 20 | 70 69 20 76 61 72 2d 70 |in (var |pi var-p|
|00006280| 69 29 20 6e 69 6c 20 6d | 61 74 68 2d 6b 6e 6f 77 |i) nil m|ath-know|
|00006290| 6e 2d 73 69 6e 20 31 32 | 30 20 30 20 33 30 30 20 |n-sin 12|0 0 300 |
|000062a0| 2b 20 2a 20 28 76 61 72 | 20 69 20 76 61 72 2d 69 |+ * (var| i var-i|
|000062b0| 29 5d 20 32 35 29 29 0a | 0a 28 6d 61 74 68 2d 64 |)] 25)).|.(math-d|
|000062c0| 65 66 73 69 6d 70 6c 69 | 66 79 20 63 61 6c 63 46 |efsimpli|fy calcF|
|000062d0| 75 6e 63 2d 6c 6e 20 28 | 6f 72 20 28 61 6e 64 20 |unc-ln (|or (and |
|000062e0| 28 65 71 20 28 63 61 72 | 2d 73 61 66 65 20 28 6e |(eq (car|-safe (n|
|000062f0| 74 68 20 31 20 65 78 70 | 72 29 29 20 28 71 75 6f |th 1 exp|r)) (quo|
|00006300| 74 65 20 63 61 6c 63 46 | 75 6e 63 2d 65 78 70 29 |te calcF|unc-exp)|
|00006310| 29 20 28 6f 72 20 6d 61 | 74 68 2d 6c 69 76 69 6e |) (or ma|th-livin|
|00006320| 67 2d 64 61 6e 67 65 72 | 6f 75 73 6c 79 20 28 6d |g-danger|ously (m|
|00006330| 61 74 68 2d 6b 6e 6f 77 | 6e 2d 72 65 61 6c 70 20 |ath-know|n-realp |
|00006340| 28 6e 74 68 20 31 20 28 | 6e 74 68 20 31 20 65 78 |(nth 1 (|nth 1 ex|
|00006350| 70 72 29 29 29 29 20 28 | 6e 74 68 20 31 20 28 6e |pr)))) (|nth 1 (n|
|00006360| 74 68 20 31 20 65 78 70 | 72 29 29 29 20 28 61 6e |th 1 exp|r))) (an|
|00006370| 64 20 28 65 71 20 28 63 | 61 72 2d 73 61 66 65 20 |d (eq (c|ar-safe |
|00006380| 28 6e 74 68 20 31 20 65 | 78 70 72 29 29 20 28 71 |(nth 1 e|xpr)) (q|
|00006390| 75 6f 74 65 20 5e 29 29 | 20 28 65 71 75 61 6c 20 |uote ^))| (equal |
|000063a0| 28 6e 74 68 20 31 20 28 | 6e 74 68 20 31 20 65 78 |(nth 1 (|nth 1 ex|
|000063b0| 70 72 29 29 20 28 71 75 | 6f 74 65 20 28 76 61 72 |pr)) (qu|ote (var|
|000063c0| 20 65 20 76 61 72 2d 65 | 29 29 29 20 28 6f 72 20 | e var-e|))) (or |
|000063d0| 6d 61 74 68 2d 6c 69 76 | 69 6e 67 2d 64 61 6e 67 |math-liv|ing-dang|
|000063e0| 65 72 6f 75 73 6c 79 20 | 28 6d 61 74 68 2d 6b 6e |erously |(math-kn|
|000063f0| 6f 77 6e 2d 72 65 61 6c | 70 20 28 6e 74 68 20 32 |own-real|p (nth 2|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.