WP 34S mini-challenge (B) « Next Oldest | Next Newest »

 ▼ Gerson W. Barbosa Posting Freak Posts: 2,761 Threads: 100 Joined: Jul 2005 12-26-2012, 11:59 PM Write a WP 34S program that displays (and keeps displaying) at least the first 10 correct digits of Brun's Constant, B = 1.902160583104 (the last two digits are uncertain). The maximum number of steps is 10, plus one for each additional digit, up to 12 steps (LBL and END included). Tip: the following approximation may be used: ```B ~ Sqrt(Phi*Sqrt(5.0005)) = 1.90216058363 ``` where ```Phi = (sqrt(5) + 1)/2 ``` I have only a 10-step solution: ```001 LBL B 002 003 004 005 006 007 008 009 010 END B --> 1.90216058363 ``` Gerson. Edited: 27 Dec 2012, 12:09 a.m. ▼ Paul Dale Posting Freak Posts: 3,229 Threads: 42 Joined: Jul 2006 12-27-2012, 12:13 AM Saved one step immediately: ```001: LBL B 002: 5 003: SDR 004 004: RCL+ L 005: [sqrt] 006: # [phi] 007: [times] 008: [sqrt] 009: RTN ``` Pauli ▼ Gerson W. Barbosa Posting Freak Posts: 2,761 Threads: 100 Joined: Jul 2005 12-27-2012, 12:19 AM Quote: 004: RCL+ L D'oh, missed this obvious one! Gerson. Paul Dale Posting Freak Posts: 3,229 Threads: 42 Joined: Jul 2006 12-27-2012, 12:21 AM And adding a correction term takes three more steps, giving 12 digits on the display although the last is off by a bit: ```001: LBL B 002: 5 003: SDR 004 004: RCL+ L 005: [sqrt] 006: # [phi] 007: [times] 008: [sqrt] 009: # 53 010: SDR 11 011: - 012: RTN ``` - Pauli ▼ Gerson W. Barbosa Posting Freak Posts: 2,761 Threads: 100 Joined: Jul 2005 12-27-2012, 12:29 AM 10 actual steps for 11 correct digits... this is really compact. #52 instead of #53 might be better. Gerson. ▼ Paul Dale Posting Freak Posts: 3,229 Threads: 42 Joined: Jul 2006 12-27-2012, 12:32 AM I didn't fiddle with the correction factor, just interested in the displayed value. Pity the correction value is >255 or an extra digit would have been available for free. I wouldn't be surprised if a shorter sequence were still possible. - Pauli ▼ deleted Senior Member Posts: 291 Threads: 63 Joined: Jan 1970 12-27-2012, 12:35 AM This Message was deleted. This empty message preserves the threading when a post with followup(s) is deleted. If all followups have been removed, the original poster may delete this post again to make this placeholder disappear. ▼ Walter B Posting Freak Posts: 4,587 Threads: 105 Joined: Jul 2005 12-27-2012, 02:31 AM Quote: If only B had made into the WP 34S :-) Is there anything B is good for beyond pure math? d:-) ▼ Paul Dale Posting Freak Posts: 3,229 Threads: 42 Joined: Jul 2006 12-27-2012, 03:09 AM What does it matter? More is always better! - Pauli ▼ Walter B Posting Freak Posts: 4,587 Threads: 105 Joined: Jul 2005 12-27-2012, 04:56 AM Quote: What does it matter? Thanks, that suffices as response - now I know ;-) Quote: More is always better! So you prefer 8.5 over 5.8 on the Richter scale? ([:-) deleted Senior Member Posts: 291 Threads: 63 Joined: Jan 1970 12-27-2012, 08:36 AM This Message was deleted. This empty message preserves the threading when a post with followup(s) is deleted. If all followups have been removed, the original poster may delete this post again to make this placeholder disappear. ▼ fhub Posting Freak Posts: 1,216 Threads: 75 Joined: Jun 2011 12-27-2012, 09:02 AM Quote: Well, in 1994 it played an important role in the discovery of the famous Pentium FDIV flaw: That's of course a serious reason to include it in the WP34s. ;-) Go on Pauli ... :-) Franz ▼ Walter B Posting Freak Posts: 4,587 Threads: 105 Joined: Jul 2005 12-27-2012, 09:31 AM Oh yes - we won't take any lower grade challenges, will we? ;-) Paul Dale Posting Freak Posts: 3,229 Threads: 42 Joined: Jul 2006 12-27-2012, 01:00 AM Another approach, it gets thirteen digits in 12 working steps. ```001: LBL B 002: # 216 003: SDR 005 004: #058 005: SDR 008 006: #031 007: SDR 10 008: 4 009: SDR 12 010: [cmplx]+ 011: + 012: # 019 013: SDR 001 014: + 015: RTN ``` - Pauli Edited: 27 Dec 2012, 1:02 a.m. ▼ Gerson W. Barbosa Posting Freak Posts: 2,761 Threads: 100 Joined: Jul 2005 12-27-2012, 11:07 AM Thank you very much for you interest, Paul. I am sorry if I may have offended someone else's intelligence by posing a "lower grade challenge". Anyway, this was meant to be a simple mini-challenge. Gerson ▼ Walter B Posting Freak Posts: 4,587 Threads: 105 Joined: Jul 2005 12-27-2012, 11:37 AM Oooh, Gerson, you may have got my message wrong :-? I was just referring to Franz' post and meant we won't introduce a mathematical constant for less reasons than unvealing Intel. d:-) Paul Dale Posting Freak Posts: 3,229 Threads: 42 Joined: Jul 2006 12-27-2012, 04:25 PM I thought the challenge was interesting and I'd still be surprised if a better/shorter solution didn't exist. At the very least it helped take my mind off of the pain of my recent tonsillectomy for a while which was a significant benefit personally. - Pauli ▼ Marcus von Cube, Germany Posting Freak Posts: 3,283 Threads: 104 Joined: Jul 2005 12-27-2012, 04:39 PM I hope you'll recover soon.

 Possibly Related Threads... Thread Author Replies Views Last Post [WP-34S] Unfortunate key damage with update to V3 :( svisvanatha 5 2,145 12-10-2013, 11:37 PM Last Post: Les Bell WP-34S (Emulator Program Load/Save) Barry Mead 1 1,210 12-09-2013, 05:29 PM Last Post: Marcus von Cube, Germany DIY HP 30b WP 34s serial flash/programming cable Richard Wahl 2 1,731 12-04-2013, 11:14 AM Last Post: Barry Mead WP 34S/43 ?'s Richard Berler 3 1,464 11-10-2013, 02:27 AM Last Post: Walter B My FrankenCulator (wp-34s) FORTIN Pascal 4 1,529 11-09-2013, 06:18 PM Last Post: FORTIN Pascal WP 34S Owner's Handbook Walter B 5 1,950 11-09-2013, 05:34 PM Last Post: Harald wp 34s overlay and programming. FORTIN Pascal 6 2,113 11-08-2013, 01:28 PM Last Post: Nick_S m.dy in display of WP-34S Harold A Climer 3 1,378 11-05-2013, 11:28 AM Last Post: Andrew Nikitin WP 34s : An old problem coming back Miguel Toro 2 1,234 11-05-2013, 03:00 AM Last Post: Marcus von Cube, Germany [WP 34s] Pressure Conversion Factors Timothy Roche 8 2,322 11-04-2013, 07:17 PM Last Post: Dave Shaffer (Arizona)

Forum Jump: