Message Board


Message Board > Programming > subdividing a square

February 4, 2007, 23:05
DTM
Earthling!
821 posts

Say for subdivision numbers 0,1,2... I want to produce these squares

0 subdivisions
    . .
    . .
   
1 subdivision
    . . .
    . . .
    . . .

2 subdivisions
    . . . . .
    . . . . .
    . . . . .
    . . . . .
    . . . . .

etc... The new width being previous width x2-1

Given the subdivision number how can I find the width?

:S
____________
:o
#
February 4, 2007, 23:21
Sandman
F3n!x0r
1194 posts

Code:
s: 0 1 2 3 4
   ----------
w: 2 3 5 9 17
    1 2 4 8

w=2^s+1
____________
BennuWiki
Yes, my avatar has grey borders in IE (so get a decent browser)
ROOFLEZ ROOFLEZ
#
February 4, 2007, 23:41
DTM
Earthling!
821 posts

Aha. Thankyou :yay:
____________
:o
#
February 5, 2007, 09:28
Mezzmer
Square-theorist
792 posts

wonderful display Sandman, wonderful.

*claps politely*
____________
#
February 5, 2007, 14:09
Dennis
どこかにいる
2092 posts


____________
Kwakkel
#
February 5, 2007, 15:23
DTM
Earthling!
821 posts


____________
:o
#
February 5, 2007, 18:13
Sandman
F3n!x0r
1194 posts

* Sandman takes a bow
____________
BennuWiki
Yes, my avatar has grey borders in IE (so get a decent browser)
ROOFLEZ ROOFLEZ
#
February 5, 2007, 20:39
g105b
None
86 posts
TAAAAAAKE A BOW ----bow----bow----bow----bow----bow----bow----bow---bow----bow----bow----bow----bow----bow----bow---
bow-bow-bow-bow-bow-bow-bow-bow-bow-bow-bow-bow-bow-bow-bow-bow-bow-bow-bow-bow-bow-bow-bow-bow-bow-bow-bow-bow
____________
.g105b''
#
April 14, 2007, 11:16
Dennis
どこかにいる
2092 posts

how amusing
____________
Kwakkel
#

Message Board > Programming > subdividing a square

Quick reply


You must log in or register to post.
Copyright © 2005 Booleansoup.com
Questions? Comments? Bug reports? Contact us!