Just for fun:
I just got thinking about folding an 8*11 piece of paper: and when I do, what the 2d area and how many stacks of paper it would be:
I wanted to write a function so that I could plug in large numbers and see how small the piece of paper would theroticly be.
for page thickness p(f) in pages in terms of number of folds, f, I have: p(f) = 2^f
So, with 4 folds, I have p(4) = 2^4 = 16 pages
Now I need some help on the area: This is what I have so far.....
FOR ALL NUMBER OF FOLDS divisible by 2:
area(f) = (length*width)/(f)
So, say length = 11 and width = 8
Folding the paper 2 times would produce an area of (11*8)/(2)
Now how would I write this area function of mine without having it divisible by 2? (because for every 2 even folds) area = (currentlength*currentWidth)/2
How would I write the function expecting to put in folds = 15 etc.
EDIT: Hmmm... well I guess depending on what side I started folding first so for either H or W... 15 folds = 15-1
I just got thinking about folding an 8*11 piece of paper: and when I do, what the 2d area and how many stacks of paper it would be:
I wanted to write a function so that I could plug in large numbers and see how small the piece of paper would theroticly be.
for page thickness p(f) in pages in terms of number of folds, f, I have: p(f) = 2^f
So, with 4 folds, I have p(4) = 2^4 = 16 pages
Now I need some help on the area: This is what I have so far.....
FOR ALL NUMBER OF FOLDS divisible by 2:
area(f) = (length*width)/(f)
So, say length = 11 and width = 8
Folding the paper 2 times would produce an area of (11*8)/(2)
Now how would I write this area function of mine without having it divisible by 2? (because for every 2 even folds) area = (currentlength*currentWidth)/2
How would I write the function expecting to put in folds = 15 etc.
EDIT: Hmmm... well I guess depending on what side I started folding first so for either H or W... 15 folds = 15-1