Tuesday, November 10, 2009

Start Writting Programme in LISP

Autolisp always starts with "(" and ends with ")"
it means if you enter "(" in your command The programming strarts automatically
+ (add)
(+ 2 3) returns 5
(+ 1 2 3 6.5) returns 12.5
(+ 1 2 3 8.0) returns 14.0

- (subtract)
(- 50 30) returns 20
(- 60 40.0) returns 20.0
(- 70 40.0 2.5) returns 27.5
(- 6) returns -6

1 comment: