Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Logo > Re: Big numbers...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 1432 of 1605
Post > Topic >>

Re: Big numbers in MSWlogo?

by "John St. Clair" <jstclair@[EMAIL PROTECTED] > May 11, 2007 at 01:26 PM

The message below is being cross-posted from the LogoForum.  Please 
reply here at comp.lang.logo and it will be crossposted back to the 
LogoForum.  The original author of this message is "Daniel Ajoy" 
<da.ajoy@[EMAIL PROTECTED]
>.


On 25 Apr 2007 at 10:52, LogoForum@[EMAIL PROTECTED]
 wrote:

> Now, to get to the point. Is their a way around it?
> Or is the software limited (not that I'm complaining though)?

yes.

change this line:

make "z :x + :y

to this:

make "z lsum :x :y

and use my lsum procedure:

to lsum :n1 :n2 [:rest 0] [:resp "||] [:parcial :rest + (last :n1) + 
last :n2]

if (and (not emptyp :resp) (:rest = 0) (:n1 = 0) (:n2 = 0)) [output 
:resp]

output (lsum
ifelse 1 < count :n1 [butlast :n1] [0]
ifelse 1 < count :n2 [butlast :n2] [0]
(count :parcial) - 1
word (last :parcial) :resp)
end

> Also do any math heads out there know if there are numbers that never
> become palindromes?

yes. wikipedia has the details.

Daniel

> Are these those numbers? (196 295 394 493 592 ... run from 1 to
> 600)
 




 1 Posts in Topic:
Re: Big numbers in MSWlogo?
"John St. Clair"  2007-05-11 13:26:37 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Oct 10 14:50:13 CDT 2008.