Came Posted March 6, 2009 Share Posted March 6, 2009 i am new to this this is problem Command: (+ .618 1) ; error: misplaced dot on input Command: (1/(+0.618 1)) ; error: bad function: 0.618 Command: (1/(+5 1)) ; error: bad function: 5 am trying to type that simple command and i cep getting error am learning basic Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted March 6, 2009 Share Posted March 6, 2009 My guess is that there is no spaces between the functions and the numbers. Quote Link to comment Share on other sites More sharing options...
lpseifert Posted March 6, 2009 Share Posted March 6, 2009 (+ 0.618 1) ;notice the zero in front of the dot (/ 1 (+ 0.618 1)); almost always a function after an opening parenthesis Quote Link to comment Share on other sites More sharing options...
Came Posted March 6, 2009 Author Share Posted March 6, 2009 thanks nervous i think it s first time, i will post in near future some similar question just started to reading and practicing i got Command: (/ 1 (+ 0.618 1)) 0.618047 Command: (+ 0.618 1) 1.618 i was in that problem about 30 min works Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted March 6, 2009 Share Posted March 6, 2009 No problem Came, I'm sure most of us have been there. 1 more point I would also stress is that when specifying the numbers, specify them as reals and not integers (particularly when doing division), as, otherwise you will get weird answers like say: (/ 1 4) = 0 Whereas (/ 1. 4.) = 0.25 and (/ 1.0 4.0) = 0.25 Hope this helps! Quote Link to comment Share on other sites More sharing options...
Came Posted March 6, 2009 Author Share Posted March 6, 2009 of course it does any advice or reply is worth of goold when start to understand this lisp then we will talk about gold Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted March 6, 2009 Share Posted March 6, 2009 of course it does any advice or reply is worth of goold Gold would be nice, thanks Quote Link to comment Share on other sites More sharing options...
lpseifert Posted March 6, 2009 Share Posted March 6, 2009 Gold would be nice, thanks Better than USD now... Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted March 6, 2009 Share Posted March 6, 2009 Better than USD now... Haha and GBP Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.