Skip to main content

Timeline for Find your dog's age

Current License: CC BY-SA 4.0

12 events
when toggle format what by license comment
Dec 12, 2020 at 6:46 comment added Xcali Shorter yet: 27 bytes
Dec 12, 2020 at 6:38 comment added Xcali Why use the constant? exp(($_-31)/16) is actually shorter: Try it online!
Aug 3, 2020 at 10:58 comment added Jonathan Allan @KjetilS. Ah, I only tried the rounded value of 1.0644945 good spot.
Aug 3, 2020 at 8:04 history edited Kjetil S CC BY-SA 4.0
deleted 61 characters in body
Aug 3, 2020 at 8:02 comment added Kjetil S 1.0644944 = 2.7182818284**(1/16) = e^(1/16) = sqrt(sqrt(sqrt(sqrt(e))))
Aug 3, 2020 at 7:49 comment added Kjetil S Thanks to @Dingus also.
Aug 3, 2020 at 7:48 comment added Kjetil S @JonathanAllan Thanks, and I also see that for the range 0-125 then 1.06449445 can be shortened to 1.0644944 and still give the same results when rounding to 2 decimals.
Aug 3, 2020 at 7:47 history edited Kjetil S CC BY-SA 4.0
added 335 characters in body
Aug 3, 2020 at 3:22 comment added Dingus Do you need the \n? (You can only take one input at a time without it, but there's nothing wrong with that.)
Aug 2, 2020 at 17:06 history edited Kjetil S CC BY-SA 4.0
added 1 character in body
Aug 2, 2020 at 16:51 comment added Jonathan Allan printf"%.2f\n",1.06449445**($_-31) saves two.
Aug 2, 2020 at 13:02 history answered Kjetil S CC BY-SA 4.0