### Author Topic: CWick Contest #4: The Tau Problem  (Read 3556 times)

0 Members and 1 Guest are viewing this topic.

#### p2

• CodeWalrus Staff
• Super User
• Moderator
• CodeWalrus Supporter
• Join Date: Aug 2016
• Location: Germany
• Posts: 2302
• Post Rating Ratio: +10/-0
• *Wubba lubba dub dub*
• Gender:
##### Re: CWick Contest #4: The Tau Problem
« Reply #15 on: March 03, 2017, 11:51:22 am »
hehe force the tau beliefers to use a pi formula
• Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

#### kotu

• -< \'V/,,,
• Super User
• Join Date: Aug 2016
• Location: don't panic
• Posts: 1160
• Post Rating Ratio: +8/-11
• woah
• Gender:
##### Re: CWick Contest #4: The Tau Problem
« Reply #16 on: March 03, 2017, 12:01:03 pm »

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

the ultimate solution!!
• Calculators owned: TI 84+CE-T
• Consoles, mobile devices and vintage computers owned: Sega Master System, Sony PlayStation 3
SUBSCRIBE TO THE FUTURERAVE.UK MAILING LIST
http://futurerave.uk

#### JWinslow23

• Should my fans be called "Elephants", "Cookie Clickers", or "Descenders"?
• Super User
• CW 4x3 challenge - 2nd place
• Join Date: May 2015
• Location: Somewhere between 13 and 2↑↑↑6
• Posts: 787
• Post Rating Ratio: +13/-1
• 99.999...% of mathematicians agree, tau > pi.
• Gender:
##### Re: CWick Contest #4: The Tau Problem
« Reply #17 on: March 03, 2017, 12:15:21 pm »

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.
• Calculators owned: TI-84+, TI-84+ CSE, TI-84+ CE

#### kotu

• -< \'V/,,,
• Super User
• Join Date: Aug 2016
• Location: don't panic
• Posts: 1160
• Post Rating Ratio: +8/-11
• woah
• Gender:
##### Re: CWick Contest #4: The Tau Problem
« Reply #18 on: March 03, 2017, 12:23:27 pm »
er, no      lol
• Calculators owned: TI 84+CE-T
• Consoles, mobile devices and vintage computers owned: Sega Master System, Sony PlayStation 3
SUBSCRIBE TO THE FUTURERAVE.UK MAILING LIST
http://futurerave.uk

#### p2

• CodeWalrus Staff
• Super User
• Moderator
• CodeWalrus Supporter
• Join Date: Aug 2016
• Location: Germany
• Posts: 2302
• Post Rating Ratio: +10/-0
• *Wubba lubba dub dub*
• Gender:
##### Re: CWick Contest #4: The Tau Problem
« Reply #19 on: March 03, 2017, 12:24:59 pm »
why isn't there nyone backing ETA as the one true constant...?
• Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

#### kotu

• -< \'V/,,,
• Super User
• Join Date: Aug 2016
• Location: don't panic
• Posts: 1160
• Post Rating Ratio: +8/-11
• woah
• Gender:
##### Re: CWick Contest #4: The Tau Problem
« Reply #20 on: March 03, 2017, 12:26:39 pm »
Lance Henriksen
• Calculators owned: TI 84+CE-T
• Consoles, mobile devices and vintage computers owned: Sega Master System, Sony PlayStation 3
SUBSCRIBE TO THE FUTURERAVE.UK MAILING LIST
http://futurerave.uk

#### JWinslow23

• Should my fans be called "Elephants", "Cookie Clickers", or "Descenders"?
• Super User
• CW 4x3 challenge - 2nd place
• Join Date: May 2015
• Location: Somewhere between 13 and 2↑↑↑6
• Posts: 787
• Post Rating Ratio: +13/-1
• 99.999...% of mathematicians agree, tau > pi.
• Gender:
##### Re: CWick Contest #4: The Tau Problem
« Reply #21 on: March 03, 2017, 12:35:15 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.
• Calculators owned: TI-84+, TI-84+ CSE, TI-84+ CE

#### Juju

• aka Yuki Kagayaki aka J̵̭͕͇ù̞̭̝̯̦j̴̭̙̗͖͡ù͏͓̲̕
• CodeWalrus Staff
• Super User
• Server Maintenance
• Moderator
• Forum Maintenance
• Original 5
• CodeWalrus Supporter
• Join Date: Nov 2014
• Location: Inside a walrus
• Posts: 3184
• Post Rating Ratio: +36/-2
• Couch potato
• Gender:
• WalriiPoints: 99999
##### Re: CWick Contest #4: The Tau Problem
« Reply #22 on: 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 »
• Consoles, mobile devices and vintage computers owned: A lot
On semi-hiatus until who knows when. CODEWALRUS 2.0 COMING SOON
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader --Snektron

if you wanna throw money at me and/or CodeWalrus monthly it's here

#### xlibman

• Omni founder & CW co-founder
• CodeWalrus Staff
• Super User
• Forum Maintenance
• Original 5
• CodeWalrus Supporter
• Join Date: Nov 2014
• Posts: 18985
• Post Rating Ratio: +100/-5
• Gender:
##### Re: CWick Contest #4: The Tau Problem
« Reply #23 on: April 04, 2017, 10:50:09 pm »
Were the results ever posted @Juju ?
• Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
• Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

#### Juju

• aka Yuki Kagayaki aka J̵̭͕͇ù̞̭̝̯̦j̴̭̙̗͖͡ù͏͓̲̕
• CodeWalrus Staff
• Super User
• Server Maintenance
• Moderator
• Forum Maintenance
• Original 5
• CodeWalrus Supporter
• Join Date: Nov 2014
• Location: Inside a walrus
• Posts: 3184
• Post Rating Ratio: +36/-2
• Couch potato
• Gender:
• WalriiPoints: 99999
##### Re: CWick Contest #4: The Tau Problem
« Reply #24 on: 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 »
• Consoles, mobile devices and vintage computers owned: A lot
On semi-hiatus until who knows when. CODEWALRUS 2.0 COMING SOON
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader --Snektron

if you wanna throw money at me and/or CodeWalrus monthly it's here

#### JWinslow23

• Should my fans be called "Elephants", "Cookie Clickers", or "Descenders"?
• Super User
• CW 4x3 challenge - 2nd place
• Join Date: May 2015
• Location: Somewhere between 13 and 2↑↑↑6
• Posts: 787
• Post Rating Ratio: +13/-1
• 99.999...% of mathematicians agree, tau > pi.
• Gender:
##### Re: CWick Contest #4: The Tau Problem
« Reply #25 on: 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!
• Calculators owned: TI-84+, TI-84+ CSE, TI-84+ CE

#### xlibman

• Omni founder & CW co-founder
• CodeWalrus Staff
• Super User
• Forum Maintenance
• Original 5
• CodeWalrus Supporter
• Join Date: Nov 2014
• Posts: 18985
• Post Rating Ratio: +100/-5
• Gender:
##### Re: CWick Contest #4: The Tau Problem
« Reply #26 on: June 05, 2017, 04:34:31 pm »
Congrats!
• Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
• Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

#### kotu

• -< \'V/,,,
• Super User
• Join Date: Aug 2016
• Location: don't panic
• Posts: 1160
• Post Rating Ratio: +8/-11
• woah
• Gender:
##### Re: CWick Contest #4: The Tau Problem
« Reply #27 on: June 05, 2017, 04:40:27 pm »
teach him how to program in a professional environment why don't ya!!

go @Juju !!! well done!
• Calculators owned: TI 84+CE-T
• Consoles, mobile devices and vintage computers owned: Sega Master System, Sony PlayStation 3
SUBSCRIBE TO THE FUTURERAVE.UK MAILING LIST
http://futurerave.uk

#### E37

• Full User
• Join Date: Jul 2016
• Location: Lihilzard Empire
• Posts: 233
• Post Rating Ratio: +10/-0
• I own 2 game consoles, a ti-83 and a ti-84!
##### Re: CWick Contest #4: The Tau Problem
« Reply #28 on: 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
• Consoles, mobile devices and vintage computers owned: Ti83,Ti84!
I've never finished a project, there is always a way to improve!
What's my calc's name? Convert \$37 to decimal. Look up that element in the periodic table. Then take the abbreviation of that element and you have it!
Look! A slime!    <(^.^)>

#### gameblabla

• Super User
• Join Date: May 2015
• Location:
• Posts: 754
• Post Rating Ratio: +15/-7
• TI-nspire porter
##### Re: CWick Contest #4: The Tau Problem
« Reply #29 on: June 09, 2017, 10:38:13 pm »
I did not know that deliberately obfuscating the code was a feature.
Richard Stallman told me otherwise
• Calculators owned: TI Nspire CX, TI-89

You can also use the following HTML or bulletin board code to share it on your page or forum signature!

Also do not forget to check our affiliates below.