clisp
How to define inner function in a function?
(defun div618 (p1 p2) \"golden split\" (let ((ratio \'(0. 0.191 0.236 0.382 0.5 0.618 0.809 1.)) (price (lambda (r) (if (<= p1 p2) (+ p1 (* (- p2 p1) r)) (- p1 (* (- p1 p2) r))))))[详细]
2023-04-04 18:55 分类:问答Can anyone give me some hints about this question(Family tree)?
It comes from my homework assignments. There is a family tree a+b /||\\ c+ud+ce+wf / | \\/ \\ m+xn+yopq r[详细]
2023-04-04 18:42 分类:问答Problems with Nth in common lisp
I\'m trying to write a function that can calculate GPA. Now I can do limited calculation(only 3 ),but I stuck on how to calculate more , without using loop or recursion (that\'s the requirement of sub[详细]
2023-04-03 21:10 分类:问答How to make the functions available in clisp REPL?
Usin开发者_如何转开发g ~/.guile, the functions in money.scm are available automatically in guile REPL.[详细]
2023-03-30 12:17 分类:问答common lisp - ch 02, code error?
I\'ve installed clisp on my fedora-13 machine. In the clisp interpreter, i\'ve en开发者_运维知识库tered the following:[详细]
2023-03-09 15:27 分类:问答adjacency matrix/Floyd/Warshall in lisp
Apparently my teacher believes that even if we don\'t have time to learn stuff (nor enough examples) we should move on, so I now need to know how to make Floyd-Warshall\'s and Warshall\'s algorithms i[详细]
2023-03-08 15:09 分类:问答Clisp REPL error output: how to find line number in file where error occurred?
I\'m working through Land of Lisp, using CLisp, writing the code in Vim with Slimv, then alt-tabbing to another terminal wi开发者_如何学Pythonndow and loading the file into the REPL with (load \'file.[详细]
2023-03-08 00:00 分类:问答In LISP is it possible to access a function's form?
Supp开发者_运维问答ose I define a function globally: (defun x (y) (1+ y)) ;; Edit: my first example was too complicated[详细]
2023-03-01 15:05 分类:问答Issues with ASDF on Clisp
I\'m trying to install s-xml (I\'m heading towards s-xml-rpc) on clisp 2.49 on os x. I think I\'ve got asdf install correctly. I can run:[详细]
2023-02-28 09:45 分类:问答Listing directories in CLISP
I\'ve been trying to see get a list of all files within a directo开发者_JS百科ry in CLISP, but I\'ve only been able to get all non-directory files within a directory.[详细]
2023-02-16 04:43 分类:问答
加载中,请稍侯......