Free Republic
Browse · Search
News/Activism
Topics · Post Article

To: John Jamieson
In LISP, "eq" tests for identical symbols. Nothing to do with equations. To test for identical value, especially numerical value and type, you could use eql, or equal, or equalp. Still, none of these has anything to do with an equation, i.e. the result could be "nil" indicating the arguments are not the same ("same" depending on which comparison operator you use).

Equations are things you can use algebra and calculus on to solve for a particular variable, and obtain a function that tell you the value of that variable based on other values. The vast majority of computer programs do no symbolic manipulation on equations. They calculate, they compare, they store, and they branch. In fact it is a key result of Wolfram's work that once a fairly low level of complexity is reached, a program (in the very very general sense of the word) is hopelessly specialized, and that only very simple combinations of rules result in unexpected and interesting outcomes.

73 posted on 06/10/2002 7:08:26 AM PDT by eno_
[ Post Reply | Private Reply | To 59 | View Replies ]


To: eno_
We covered "eq" and "setq" very well last night. I'd love to look at one of your programs with no equations in it. John
83 posted on 06/10/2002 10:56:42 AM PDT by John Jamieson
[ Post Reply | Private Reply | To 73 | View Replies ]

Free Republic
Browse · Search
News/Activism
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson