开发者

SDRAW is not working in my computer

开发者 https://www.devze.com 2023-02-03 20:43 出处:网络
i have installed clisp in my ubuntu machine. I am trying to use sdraw to display the cons structure. But this SDRAW 开发者_如何学Pythonis not working in my computer.I tried to use the examples given i

i have installed clisp in my ubuntu machine. I am trying to use sdraw to display the cons structure. But this SDRAW 开发者_如何学Pythonis not working in my computer.I tried to use the examples given in the book A gentle indtroduction to symbolic computation. Can anybody tell me how can i enable it to work?

[edit]

i used following command

(sdraw ' (alpha (barvo) charlie))

i got following message

 *** - EVAL: undefined function SDRAW

Thanks


yes i finally got the answer. we need to load the file sdraw.generic and we can have to load the file using the command.

>(load "sdraw.generic")

then use the sdraw command to display the cons art.

>BreakBreak 40 [45]> (sdraw '(1 2 (10)))

            [*|*]--->[*|*]--->[*|*]--->NIL
             |        |        |
             v        v        v
             1        2       [*|*]--->NIL
                               |
                               v
                              10


You can run the generic version of sdraw as follow

CL-USER> (load "sdraw.generic")
CL-USER> (sdraw:sdraw '(a b c (d e) f))

That will produce output to terminal/REPL

SDRAW is not working in my computer

But if you want the fancier or GUI version, sdraw.gui

CL-USER> (ql:quickload :clx)
CL-USER> (load "sdraw.gui")
CL-USER> (sdraw:sdraw '(a b (c d (e) f)))

With fancy result

SDRAW is not working in my computer

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号