WP 34S minichallenge (B)  Printable Version + HP Forums (https://archived.hpcalc.org/museumforum) + Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum1.html) + Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum2.html) + Thread: WP 34S minichallenge (B) (/thread236551.html) 
WP 34S minichallenge (B)  Gerson W. Barbosa  12262012 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.90216058363where Phi = (sqrt(5) + 1)/2I have only a 10step solution: 001 LBL BGerson.
Edited: 27 Dec 2012, 12:09 a.m.
Re: WP 34S minichallenge (B)  Paul Dale  12272012 Saved one step immediately:
001: LBL B
Pauli
Re: WP 34S minichallenge (B)  Gerson W. Barbosa  12272012 Quote:D'oh, missed this obvious one!
Gerson.
Re: WP 34S minichallenge (B)  Paul Dale  12272012 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
Re: WP 34S minichallenge (B)  Gerson W. Barbosa  12272012 10 actual steps for 11 correct digits... this is really compact. #52 instead of #53 might be better.
Gerson.
Re: WP 34S minichallenge (B)  Paul Dale  12272012 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.
(deleted post)  deleted  12272012 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.
Re: WP 34S minichallenge (B)  Paul Dale  12272012 Another approach, it gets thirteen digits in 12 working steps.
001: LBL B  Pauli
Edited: 27 Dec 2012, 1:02 a.m.
Re: WP 34S minichallenge (B)  Walter B  12272012 Quote:Is there anything B is good for beyond pure math?
d:)
Re: WP 34S minichallenge (B)  Paul Dale  12272012 What does it matter? More is always better!
Re: WP 34S minichallenge (B)  Walter B  12272012 Quote:Thanks, that suffices as response  now I know ;) Quote:So you prefer 8.5 over 5.8 on the Richter scale?
([:)
(deleted post)  deleted  12272012 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.
Re: WP 34S minichallenge (B)  fhub  12272012 Quote:That's of course a serious reason to include it in the WP34s. ;) Go on Pauli ... :)
Franz
Re: WP 34S minichallenge (B)  Walter B  12272012 Oh yes  we won't take any lower grade challenges, will we? ;)
Re: WP 34S minichallenge (B)  Gerson W. Barbosa  12272012 Thank you very much for you interest, Paul.
Gerson
Re: WP 34S minichallenge (B)  Walter B  12272012 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:)
Re: WP 34S minichallenge (B)  Paul Dale  12272012 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
Re: WP 34S minichallenge (B)  Marcus von Cube, Germany  12272012 I hope you'll recover soon.
