Timeline for Stay away from zero
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 4 at 22:12 | comment | added | Aiden Chow |
Yea, this 0^x+x trick is actually used to avoid log(0) situations when trying to count the digits of a number. floor(logn)+1 (where n is the number we are trying to get the digits of) works if n is positive, but the shortest way to cover the n=0 case seems to be floor(log(0^n+n))+1 .
|
|
Jan 4 at 19:40 | history | edited | DanTheMan | CC BY-SA 4.0 |
added 145 characters in body
|
Jan 4 at 19:38 | comment | added | DanTheMan | @AidenChow That's wild. Thanks for letting me know! | |
Dec 30, 2023 at 8:15 | comment | added | Aiden Chow |
10 bytes: f(x)=0^x+x . This works because 0^0 equals 1 in Desmos.
|
|
May 4, 2017 at 1:58 | history | edited | Leaky Nun | CC BY-SA 3.0 |
added 2 characters in body
|
May 4, 2017 at 1:58 | comment | added | Leaky Nun | Desmos tips: you can have lists of integers like this. | |
May 4, 2017 at 1:26 | history | answered | DanTheMan | CC BY-SA 3.0 |