Re: EE Student, Edit, Proposal Masters, Help (concepts of functional programming, symbolic programming and MATLAB)
From: Richard Fateman (fateman_at_cs.berkeley.edu)
Date: 03/09/05
- Next message: John Creighton: "Re: EE Student, Edit, Proposal Masters, Help (concepts of functional programming, symbolic programming and MATLAB)"
- Previous message: William Lovas: "Re: EE Student, Edit, Proposal Masters, Help (concepts of functional programming, symbolic programming and MATLAB)"
- In reply to: Robert Israel: "Re: EE Student, Edit, Proposal Masters, Help (concepts of functional programming, symbolic programming and MATLAB)"
- Next in thread: John Creighton: "Re: EE Student, Edit, Proposal Masters, Help (concepts of functional programming, symbolic programming and MATLAB)"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 09 Mar 2005 01:20:51 GMT
Robert Israel wrote:
...
>
>>Do you have a reference for this? I wonder if the definition of a list
>>is agreed upon in the context of computer science.
>
>
> I think we have a terminology problem here. Maple has a specific data
> type called a list, which is not the same as what computer science calls
> a list. In Maple, a list (at the user level) is an ordered sequence of
> expressions enclosed in square brackets.
>
Lisp presumably has precedence in computer science, in using the
word "list". In that context John Creighton is right.
In lisp there are atoms and lists. (I am somewhat simplifying this...)
A symbolic expression or s-exp is either nil, an atom, or
a pair (a CONS cell), e.g. (a . b)
The two components, here a, and b, can be any s-exp.
Lists are composed of cons cells. (a . nil) is also written (a)
(a . (b . (c . nil))) is written (a b c).
(a . ((r . nil) . (c . nil))) is written (a (r) c).
etc.
Maple's notion of list would be encoded in lisp something like this:
(<maple-special-number-for-list-thing> a b c d e )
Lisp's notion of list allows anything to be that first element.
There's lots of info on-line about lisp. There is relatively
little about Maple's debt to lisp, at least that I'm aware of.
- Next message: John Creighton: "Re: EE Student, Edit, Proposal Masters, Help (concepts of functional programming, symbolic programming and MATLAB)"
- Previous message: William Lovas: "Re: EE Student, Edit, Proposal Masters, Help (concepts of functional programming, symbolic programming and MATLAB)"
- In reply to: Robert Israel: "Re: EE Student, Edit, Proposal Masters, Help (concepts of functional programming, symbolic programming and MATLAB)"
- Next in thread: John Creighton: "Re: EE Student, Edit, Proposal Masters, Help (concepts of functional programming, symbolic programming and MATLAB)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|