(defun x (a b c)
(let (square (sqrt (- (* b b) (* (* 4 a) c)))) (list square))
This code always produces (NIL) as output. Can't figure out why....
(defun x (a b c)
(sqrt (- (* b b) (* (* 4 a) c))))
This code returns ,with 1 2 3 as input, this strange looking output: #C(0 2.828427)
Search found 7 matches
- Thu Mar 18, 2010 9:03 am
- Forum: Common Lisp
- Topic: C# in front of aritmethic operation + let issue
- Replies: 1
- Views: 2897
- Thu Mar 18, 2010 8:53 am
- Forum: Common Lisp
- Topic: Compiling to binary
- Replies: 10
- Views: 13629
Re: Compiling to binary
Thanks for the tips! 

- Tue Mar 16, 2010 1:18 am
- Forum: Common Lisp
- Topic: Compiling to binary
- Replies: 10
- Views: 13629
Re: Compiling to binary
Ok, thank you for clarifying. From this, my conclusion is that the lisp programs most of the time are runned from inside the lisp enviroment/repl and that if i don't have any very specific reason to create a standalone executable it's not worth doing/no need. I guess i just have to start coding away...
- Mon Mar 15, 2010 3:16 am
- Forum: Common Lisp
- Topic: Compiling to binary
- Replies: 10
- Views: 13629
Re: Compiling to binary
(lisp-implementation-type) = "CLISP" (lisp-implementation-version) = "2.33 (2004-03-17) (built on winsteingoldlap [10.0.19.22])" What i mean by 'lispbox' is 'lisp-in-a-box' running on XP. Also refered to as SLIME i belivie. I get a feeling that compiling into binaries are not ver...
- Fri Mar 12, 2010 9:25 am
- Forum: Common Lisp
- Topic: Compiling to binary
- Replies: 10
- Views: 13629
Compiling to binary
Hi,
When using Windows, is it possible to compile my lisp programs into binaries so i could run the outside the 'lispbox'?
When using Windows, is it possible to compile my lisp programs into binaries so i could run the outside the 'lispbox'?
- Thu Feb 25, 2010 3:04 am
- Forum: Common Lisp
- Topic: Saving my work ,effectively, in lisp-in-a-box?
- Replies: 5
- Views: 15743
Re: Saving my work ,effectively, in lisp-in-a-box?
Sorry about posting in incorrect forum and many thanks for the answers!
- Wed Feb 24, 2010 1:24 pm
- Forum: Common Lisp
- Topic: Saving my work ,effectively, in lisp-in-a-box?
- Replies: 5
- Views: 15743
Saving my work ,effectively, in lisp-in-a-box?
Hi,
I'm learning this brilliant language and i'm using lisp-in-a-box. One "problem" i have is when want to save what i write.
Do i really need to create a new file and write the code again in that file? Is there not a more effective way?
I'm learning this brilliant language and i'm using lisp-in-a-box. One "problem" i have is when want to save what i write.
Do i really need to create a new file and write the code again in that file? Is there not a more effective way?