Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!pitt!willett!ForthNet From: ForthNet@willett.pgh.pa.us (ForthNet articles from GEnie) Newsgroups: comp.lang.forth Subject: Mathematical routines Message-ID: <1988.UUL1.3#5129@willett.pgh.pa.us> Date: 18 Nov 90 16:26:00 GMT Organization: String, Scotch tape, and Paperclips. (in Pgh, PA) Lines: 27 To: RAY DUNCAN Refer#: 215 From: MICHAEL HAM Read: 11-15-90 (18:02) Subj: DOUBLE PRECISION * AND / Status: PUBLIC MESSAGE Conf: FORTH (58) Read Type: GENERAL (+) My knowledge of assembler is nil, and I would think that these would be assembler for speed. But I'll cheer like all get out if some other reader of the board contributes them. (In fact, Miller's approach of having a complete set of integer operators that run off a precision set by the user (programmer) is very attractive: you enter something like 4 EQU PRECISION and from then on these operators use four bytes of precision; 8 EQU PRECISION gives 8 bytes, and so on. So the usual (16-bit) operators are equivalent to 2 EQU PRECISION using the new operators. As I recall, the set included + - * / /MOD */ */MOD Just about all one could want. Current double precision operators in the LMI set are, I think, only + and - (that is, "native" double precision: operands and result all double-precision). If * and / are added, MOD and /MOD should be as well. (Presumably /MOD would be the primitive with MOD and / defined as that plus a DROP or NIP respectively. NET/Mail : LMI Forth Board, Los Angeles, CA (213) 306-3530 <<<>>> ----- This message came from GEnie via willett through a semi-automated process. Report problems to: dwp@willett.pgh.pa.us or uunet!willett!dwp