You can help CodeWalrus stay online by donating here. | New CodeWalrus | Old (dark mode) | Old (light) | Discord server

CWick Contest #4: The Tau Problem

b/Contests Started by Yuki, February 28, 2017, 05:03:02 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

u/p2 March 03, 2017, 11:51:22 AM
hehe force the tau beliefers to use a pi formula  :thumbsup:
u/kotu March 03, 2017, 12:01:03 PM
:trollface:

const double PI_DIV_2   = 1.5707963267948966192313216916398;
const double PI                = 3.1415926535897932384626433832795;
const double PI_MUL_2 = 6.283185307179586476925286766559;

the ultimate solution!!  ;)
u/JWinslow23 March 03, 2017, 12:15:21 PM
Quote from: kotu on March 03, 2017, 12:01:03 PM
:trollface:

const double PI_DIV_2   = 1.5707963267948966192313216916398;
const double PI                = 3.1415926535897932384626433832795;
const double PI_MUL_2 = 6.283185307179586476925286766559;

the ultimate solution!!  ;)
You mean ETA, PI, and TAU. ;)
u/kotu March 03, 2017, 12:23:27 PM
er, no   :banghead:   lol
u/p2 March 03, 2017, 12:24:59 PM
why isn't there nyone backing ETA as the one true constant...? ???
u/kotu March 03, 2017, 12:26:39 PM
Lance Henriksen  8)
u/JWinslow23 March 03, 2017, 12:35:15 PM
Quote from: p2 on March 03, 2017, 12:24:59 PM
why isn't there nyone backing ETA as the one true constant...? ???
There is...

...but these people are rare to find, and the idea of eta being the "true" circle constant largely hinges on the argument that the right angle should be the fundamental unit, instead of the area of a unit circle with pi, or the circumference of a unit circle with tau. Which, as you know, I think is silly.
u/Yuki March 14, 2017, 02:59:38 AM
Reminder that the contest ends tonight. I won't mind if anyone's late due to timezones or anything, but make sure your entry is submitted by email before I process the results. I'll show the results tomorrow on Pi (or Tau/2) Day live on YouTube or Twitch, stay tuned.
Last Edit: March 14, 2017, 03:02:15 AM by Juju
u/Dream of Omnimaga April 04, 2017, 10:50:09 PM
Were the results ever posted @Juju ?
u/Yuki June 05, 2017, 04:31:49 AM
@JWinslow23 wins, stay tuned for contest #5.

JWinslow23

- Code is mostly unreadable and obfuscated (+)
- Uses clever tricks with integers (+)
- Sometimes misses leading 0's (-)
- Program is less than 1K (+)
- 9/10

gameblabla

- Uses an obscure console (+)
- Tau fits on 2 screens (+)
- Tau is stored in variables, then compressed and finally uncompressed for seemingly no reason (-)
- Source code is very readable (-)
- 6/10
Last Edit: June 05, 2017, 04:50:12 AM by Juju
u/JWinslow23 June 05, 2017, 01:59:09 PM
Actually, the "sometimes missing leading 0's" is not a mistake. My program basically took numbers in base 100 and displayed them, and the numbers in question were digits of tau. Leading 0's on numbers seemed to be impossible to display, so I just trailed the previous numbers with 0 and then continued. All the digits are correct and in the right order.

For example:

8125724179
972560696
5068423413

If I'd have done that "optimally" and made 9725606965 the second line, the third line would have a leading 0 (which I couldn't figure out how to display).

Hope it makes sense now!
u/Dream of Omnimaga June 05, 2017, 04:34:31 PM
Congrats!
u/kotu June 05, 2017, 04:40:27 PM
teach him how to program in a professional environment why don't ya!!

go @Juju !!! well done!
u/E37 June 05, 2017, 08:31:53 PM
If no one looks at the source, you could just display the first ~15 digits and just print random numbers after that :trollface:
u/gameblabla June 09, 2017, 10:38:13 PM
I did not know that deliberately obfuscating the code was a feature.
Richard Stallman told me otherwise :(
Website statistics


MyCalcs | Ticalc.org | Cemetech | Omnimaga | TI-Basic Developer | MaxCoderz | TI-Story | Casiocalc.org | Casiopeia | The Museum of HP Calculators | HPCalc.org | CnCalc.org | Music 2000 Community | TI Education | Casio Education | HP Calcs | NumWorks | SwissMicros | Sharp Calculators
Powered by EzPortal