Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SDRAW is not working in my computer

Tags:

lisp

i have installed clisp in my ubuntu machine. I am trying to use sdraw to display the cons structure. But this SDRAW is 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

like image 255
thetna Avatar asked Jan 09 '11 21:01

thetna


People also ask

Why is Draw feature in Word Not working?

Quick tip: If the "Draw" tab is greyed out so you can't click on it, select the "View" tab in the ribbon and choose "Print Layout." This should now allow you to use the Draw feature.

How do I fix onenote drawings?

The fix I found was restarting the setting that allowed for automatic switching. To do this go to File > Options > Advanced then from here scroll down to Pen options and check off "Automatically switch between inking, selecting, typing, and panning".

How do you Draw 2022 in Word?

Insert tab > Shapes > New Drawing Canvas.)Now, left-click anywhere on the word page to start drawing; hold the left mouse button and move your mouse to sketch out the shape/diagram you desire. The moment you release your hold over the left button, the drawing will be completed.


2 Answers

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
like image 131
thetna Avatar answered Sep 18 '22 02:09

thetna


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-generic

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

enter image description here

like image 42
azzamsa Avatar answered Sep 21 '22 02:09

azzamsa