diff options
author | dos-reis <gdr@axiomatics.org> | 2007-08-19 20:47:19 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2007-08-19 20:47:19 +0000 |
commit | 85858b85b1fcf9f115ab3286f6e3c9cbf06cbb3d (patch) | |
tree | 3c474dd5251d9d75b6e41b2816cca75f229cc0aa /src/interp/bootfuns.lisp.pamphlet | |
parent | 4fd69a22c915b6287fb7fc1dc6e8eb450bad0702 (diff) | |
download | open-axiom-85858b85b1fcf9f115ab3286f6e3c9cbf06cbb3d.tar.gz |
* boot-pkg.lisp: New.
* Makefile.pamphlet (${DEPSYS}): Depend on it
(parsing.$(FASLEXT)): Likewise.
(bookvol5.$(FASLEXT)): Likewise.
(nocompil.$(FASLEXT)): Likewise.
(bootfuns.$(FASLEXT)): Likewise.
(boot-pkg.$(FASLEXT)): New rule.
(boot-pkg.lisp): New rule; work around GCL+VPATH voodoo.
(VPATH): Clear.
* Makefile.in: Regenerate.
* bootfuns.lisp.pamphlet: Don't define package "BOOT" here.
Import "boot-pkg".
(|printLoadMessages|): Move to setvart.boot.pamphlet.
Move special functions to boot-pkg.lisp.
Move get-current-directory to daase.lisp.pamphlet.
* setvart.boot.pamphlet (printLoadMessages): Move from
bootfuns.lisp.pamphlet. Write as Boot code.
* daase.lisp.pamphlet (get-current-directory): Move from
bootfuns.lisp.pamphlet
Diffstat (limited to 'src/interp/bootfuns.lisp.pamphlet')
-rw-r--r-- | src/interp/bootfuns.lisp.pamphlet | 98 |
1 files changed, 1 insertions, 97 deletions
diff --git a/src/interp/bootfuns.lisp.pamphlet b/src/interp/bootfuns.lisp.pamphlet index ebf2d665..33b953e7 100644 --- a/src/interp/bootfuns.lisp.pamphlet +++ b/src/interp/bootfuns.lisp.pamphlet @@ -62,17 +62,7 @@ interpreter or algebra uses has to (cough, cough) appear here. <<*>>= <<license>> -;; This is a horrible hack to work around a horrible bug in GCL -;; as reported here: -;; http://lists.gnu.org/archive/html/gcl-devel/2007-08/msg00004.html -#+:gcl (in-package "VMLISP") -#+:gcl (in-package "AxiomCore") - -(IMPORT-MODULE "hash") -(defpackage "BOOT" - #+:common-lisp (:use "COMMON-LISP") - #-:common-lisp (:use "LISP") - (:use "VMLISP" "AxiomCore")) +(IMPORT-MODULE "boot-pkg") @ @@ -112,79 +102,6 @@ offer it as extensions. #+:clisp (import 'ext:compiler-let) @ -\subsection{Missing DFLOAT Transcendental functions} - -These functions should be defined for DoubleFloat inputs but are not. -These are cheap and easy definitions that work but should be rewritten. -<<Missing DFLOAT Transcendental functions>>= -(defun sec (x) (/ 1 (cos x))) -(defun csc (x) (/ 1 (sin x))) -(defun acsc (x) (asin (/ 1 x))) -(defun asec (x) (acos (/ 1 x))) -(defun csch (x) (/ 1 (sinh x))) -(defun coth (x) (* (cosh x) (csch x))) -(defun sech (x) (/ 1 (cosh x))) -(defun acsch (x) (asinh (/ 1 x))) -(defun acoth (x) (atanh (/ 1 x))) -(defun asech (x) (acosh (/ 1 x))) -@ - -\subsection{The manexp fix} - -Contributed by Juergen Weiss from a suggestion by Arthur Norman. -This is a Mantissa and Exponent function. -<<manexp>>= -#+(or :cmu :akcl :gcl) -(defun manexp (u) - (multiple-value-bind (f e s) - (decode-float u) - (cons (* s f) e))) - -@ - -\subsection{The arc cotangent function} - -Contributed by Juergen Weiss from Arthur Norman's CCL. -<<acot>>= -#+(or :cmu :akcl :gcl) -(defun acot (a) - (if (> a 0.0) - (if (> a 1.0) - (atan (/ 1.0 a)) - (- (/ pi 2.0) (atan a))) - (if (< a -1.0) - (- pi (atan (/ -1.0 a))) - (+ (/ pi 2.0) (atan (- a)))))) - -@ - -\subsection{The arc cotangent function} - -Contributed by Juergen Weiss from Arthur Norman's CCL. -<<cot>>= -#+(or :cmu :akcl :gcl) -(defun cot (a) - (if (or (> a 1000.0) (< a -1000.0)) - (/ (cos a) (sin a)) - (/ 1.0 (tan a)))) - -@ - -\subsection{The get-current-directory function} - -Contributed by Juergen Weiss. -<<getCD>>= -#+:cmu -(defun get-current-directory () - (namestring (extensions::default-directory))) - -#+(or :akcl :gcl) -(defun get-current-directory () - (namestring (truename ""))) - -@ - - <<*>>= ; NAME: Boot Package @@ -575,19 +492,6 @@ for primitive domains. Also used by putInLocalDomainReferences and optCal.") (def-boot-val |$inputPromptType| '|step| "checked in MKPROMPT") (def-boot-val |$IOindex| 0 "step counter") -(defun |printLoadMessages| (u) - (if (memq u '(|%display%| |%describe%|)) - (if |$printLoadMsgs| "on" "off") - (seq - (setq |$printLoadMsgs| (and (listp u) (equal (car u) '|on|))) -#+:CCL (verbos (if |$printLoadMsgs| 2 0)) -))) - -<<manexp>> -<<acot>> -<<cot>> -<<getCD>> -<<Missing DFLOAT Transcendental functions>> @ \eject \begin{thebibliography}{99} |