Post Reply 
Perfect Parking
04-15-2024, 06:22 AM
Post: #5
RE: Perfect Parking
Here's what I came up with using your formula:
Code:
00 { 35-Byte Prgm }
01▸LBL "PARKING"
02 X<>Y
03 R↑
04 X↑2
05 X<>Y
06 R↑
07 +
08 X<>Y
09 LASTX
10 X↑2
11 -
12 SQRT
13 ENTER
14 +
15 R↑
16 X<>Y
17 R↑
18 -
19 ×
20 X<>Y
21 X↑2
22 +
23 SQRT
24 X<>Y
25 -
26 END

But alas, it takes 2 more bytes.

I also tried using local variables:
Code:
\<< \-> r l k w
  \<< l k + DUP SQ r SQ l SQ - \v/ DUP + w - w * + \v/ SWAP -
  \>>
\>>

Of course it takes more bytes than your solution.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Perfect Parking - Thomas Klemm - 03-27-2024, 01:11 AM
RE: Perfect Parking - SlideRule - 03-27-2024, 04:36 PM
RE: Perfect Parking - 0db - 04-14-2024, 06:11 PM
RE: Perfect Parking - Werner - 04-15-2024, 06:19 AM
RE: Perfect Parking - Thomas Klemm - 04-15-2024 06:22 AM
RE: Perfect Parking - toml_12953 - 04-16-2024, 11:04 AM



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