Hi I need to write a code about vectors I hope someone could help me... Sincerely..
Assume I defined vectors in 3-D and I need to find magnitude of a vector, norm of a vector, distance (between two points), dot product, cross product.
Search found 2 matches
- Tue May 25, 2010 8:29 pm
- Forum: Common Lisp
- Topic: Vector Calculations...
- Replies: 1
- Views: 2622
- Tue Apr 20, 2010 7:52 pm
- Forum: Common Lisp
- Topic: How to remove nested parentheses in LISP
- Replies: 1
- Views: 3885
How to remove nested parentheses in LISP
I need to write a recursive function which will "collapse" a list, that is, remove all nested parentheses so that the atoms are all at the top level. (collapse '(a b c (d e) ((f) g))) => (a b c d e f g) (collapse '(a b)) => (a b) (collapse '(() ((((a)))) ())) => (a) Thanks