2 (allocate 'cons
(round (* 800 (/ 2048.0 si
::lisp-pagesize
))))
4 ;;there is no way this file will run in non common lisps...!!
5 (pushnew :cl
*features
*)
6 ;; no cursor positioning.
7 #+gcl
(push :nocp
*features
*)
9 (if (find-package "MAKE")
10 (sloop::sloop for v in-package
'make do
(unintern v
)))
11 #+gcl
(setq si
::*top-level-hook
* 'user
::run
)
14 (proclaim '(optimize (safety 0) (speed 3) (space 0)))
15 (defun maxima-path (dir file
)
16 (if (symbolp file
) (setq file
(stripdollar file
)))
17 (format nil
"~a~a/~a" maxima
::*maxima-directory
*
27 ;; the following is just a hack to make the c and d intern
28 ;; as small letters in maxima.
31 ;; make sure these are defined...
32 (defvar $plot_options
'((mlist)
36 ((mlist) $view_direction
1 1 1)
37 ((mlist) $colour_z nil
)
38 ((mlist) $transform_xy nil
)
39 ((mlist) $run_viewer t
)
40 ((mlist) $plot_format $openmath
)
44 (defun set-pathnames ()
45 ;; need to get one when were are.
47 (let* ((tem (getenv "MAXIMA_DIRECTORY"))
49 (setq *maxima-directory
* tem
)
51 (or (eql (aref tem
(- n
1)) #\
/)
52 (setq tem
(format nil
"~a/" tem
)))
53 (setq *maxima-directory
* tem
))
54 #+gcl
((si::set-dir
'*maxima-directory
* "-dir"))
60 (namestring (make-pathname :name nil
:defaults
64 (or (boundp '*INFO-PATHS
*) (setq *INFO-PATHS
* nil
) )
65 (push (maxima-path "info" "") *INFO-PATHS
*)
67 #+cmu
(c::backend-fasl-file-type c
::*target-backend
*)
70 (setq $file_search_lisp
72 (format nil
"./###.{~A,lsp,lisp}" ext
)
73 (maxima-path "{src,share1,sym}"
74 (concatenate 'string
"###." ext
))
75 (maxima-path "{src,share1,sym}"
76 (concatenate 'string
"###." ext
))
77 (maxima-path "{src,share}" "###.lisp")
78 (maxima-path "{sym}" "###.lsp"))))
79 (setq $file_search_maxima
82 (maxima-path "{mac,sym}" "###.mac")
83 (maxima-path "{share,share1,share2,tensor}" "###.mc")))
84 (setq $file_search_demo
(list '(mlist)
85 (maxima-path "{demo,share,share1,share2}"
86 "###.{dem,dm1,dm2,dm3,dmt}")))
87 (setq $file_search_usage
(list '(mlist)
88 (maxima-path "{demo,share,share1,share2}"
94 (maxima-path "sym" ""))
106 (with-simple-restart (macsyma-quit "Macsyma top-level")
107 (macsyma-top-level))))
110 (macsyma-top-level))))
113 ($setup_autoload
"eigen.mc" '$eigenvectors
'$eigenvalues
)
115 (defun $tkconnect
() (si::tkconnect
))
117 (format t
"~%Type (run) to restart~%")
120 (defvar $help
"type describe(topic) or example(topic);")
121 (defun $help
() $help
);
123 (load "init_max2.lisp")