Post Reply 
Little math problems July 2019
08-07-2019, 01:23 PM
Post: #9
RE: Little math problems July 2019
Brute-force program for the diagonal case, odd sizes only. Exact mode for symbolic results:

Code:

\<< \-> n
  \<< n DUP NEG SWAP
    FOR x n DUP NEG SWAP
      FOR y x SQ y SQ + \v/
      NEXT
    NEXT n 2 * 1 + SQ \->LIST \GSLIST EVAL 2 * EVAL
  \>>
\>>

First few results:

3: '8+8*√2' ~19.314
5: '24+24*√2+16*√5' ~93.718
7: '48+48*√2+(16+16*√2)*√5+16*√13' ~259.94
9: '160+80*√2+(48+16*√2)*√5+16*√13+16*√17' ~554.72


I will leave it to the "big brains" here to derive a general formula. Big Grin
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Little math problems July 2019 - pier4r - 07-28-2019, 07:28 PM
RE: Little math problems July 2019 - John Keith - 08-07-2019 01:23 PM



User(s) browsing this thread: 5 Guest(s)