Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Now available on Stack Overflow for Teams! AI features where you work: search, IDE, and chat.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
SaveSaved a whopping 1616 17 bytes thanks to Jonathan Allan!!!
lambda n:round(1.06449445**0644944**(n-31),2)
Try it online!
Port of my C answer.Try it online!
Save a whopping 16 bytes thanks to Jonathan Allan!!!
lambda n:round(1.06449445**(n-31),2)
Port of my C answer.
Saved a whopping 16 17 bytes thanks to Jonathan Allan!!!
lambda n:round(1.0644944**(n-31),2)
lambda n:intround(math1.exp06449445**(-~n/16n-231)*100,2)/100 import math
Try it online!Try it online!
lambda n:int(math.exp(-~n/16-2)*100)/100 import math