This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's TI-BASIC subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. TI-Basic Brain Teasers => TI-BASIC
Author Message
kbyoyoa


Newbie


Joined: 21 Apr 2007
Posts: 41

Posted: 08 May 2007 07:40:29 pm    Post subject:

Hey... Can I post a challenge?
Back to top
baorder54
Elite


Active Member


Joined: 25 Nov 2006
Posts: 748

Posted: 08 May 2007 08:07:52 pm    Post subject:

It better be good... Cool
Back to top
Xphoenix


Elite


Joined: 04 Apr 2007
Posts: 756

Posted: 08 May 2007 08:12:53 pm    Post subject:

If you have a challenge, fire away, though I'll have no chance of solving it.
Back to top
Harrierfalcon
The Raptor of Calcs


Super Elite (Last Title)


Joined: 25 Oct 2006
Posts: 2535

Posted: 08 May 2007 08:25:46 pm    Post subject:

No. In no way, under any circumstances are you allowed to post any challenge at all.

[/sarcasm]
Back to top
kbyoyoa


Newbie


Joined: 21 Apr 2007
Posts: 41

Posted: 08 May 2007 09:07:36 pm    Post subject:

OK here it is...

make a program that calculates the first 100 digits of pi and displays them on the screen.
You can't at all use the character for pi

Make the smallest program that does this... Extra points for the best algorithm to calculate pi.


Last edited by Guest on 08 May 2007 09:08:05 pm; edited 1 time in total
Back to top
Weregoose
Authentic INTJ


Super Elite (Last Title)


Joined: 25 Nov 2004
Posts: 3976

Posted: 08 May 2007 10:14:46 pm    Post subject:

Am I to assume that you've done this yourself?
Back to top
baorder54
Elite


Active Member


Joined: 25 Nov 2006
Posts: 748

Posted: 08 May 2007 10:23:27 pm    Post subject:

There was a couple of posts somewhere about how to get pi without using pi. Can't find them atm. Sad
Back to top
Xphoenix


Elite


Joined: 04 Apr 2007
Posts: 756

Posted: 08 May 2007 10:54:00 pm    Post subject:

Have hands, will Wiki.
http://en.wikipedia.org/wiki/Computing_%CF%80
Back to top
thornahawk
μολών λαβέ


Active Member


Joined: 27 Mar 2005
Posts: 569

Posted: 09 May 2007 06:16:11 am    Post subject:

Hundred digits, huh? You'll have to manipulate the digits as lists, then, 'cause TI calculators can only retain 14 decimal places tops. :P

AGM's the best I've seen one can use to calculate the constant to many places. ;)

Anyway... doesn't anyone want to attempt the challenge I posted earlier? It's easier. ;)

thornahawk
Back to top
kbyoyoa


Newbie


Joined: 21 Apr 2007
Posts: 41

Posted: 09 May 2007 04:28:08 pm    Post subject:

I figured ouot how to calculate the digits i just can figure out how to make it show all 100 and not just 3.141592653 and cut off...

EDIT: since the pi button will only give you 10 digits I will let you use it.


EDIT: I think I figured out how to do it...


Last edited by Guest on 09 May 2007 04:33:28 pm; edited 1 time in total
Back to top
thornahawk
μολών λαβέ


Active Member


Joined: 27 Mar 2005
Posts: 569

Posted: 09 May 2007 07:00:14 pm    Post subject:

"...since the pi button will only give you 10 digits I will let you use it."

Um, the built-in constant has 14 decimal places stored. You'll see the other digits if you subtract out the first few digits. ;)

"...I think I figured out how to do it..."

In TI-BASIC? :o

++++++++++++++++

Anyway... can the takers of the Kronecker product challenge please post what they have so far? ;)

thornahawk
Back to top
kbyoyoa


Newbie


Joined: 21 Apr 2007
Posts: 41

Posted: 09 May 2007 08:07:07 pm    Post subject:

kbyoyoa wrote:
I figured ouot how to calculate the digits i just can figure out how to make it show all 100 and not just 3.141592653 and cut off...

EDIT: since the pi button will only give you 10 digits I will let you use it.


EDIT: I think I figured out how to do it...
[post="103504"]<{POST_SNAPBACK}>[/post]


Yes, in TI-BASIC...
Using a few different formulas.
I made the program, but im working out a few bugs.
Back to top
Weregoose
Authentic INTJ


Super Elite (Last Title)


Joined: 25 Nov 2004
Posts: 3976

Posted: 17 May 2007 06:45:02 pm    Post subject:

Meanwhile...
kbyoyoa wrote:
make a program that calculates the first 100 digits of pi and displays them on the screen.
Based on an article (PDF) I found, I wrote:
    [font="courier new;font-size:9pt;line-height:100%;color:darkblue"]2binomcdf(Ans,0→X
    Repeat 0
    10LX→X
    For(X,dim(Ans),2,‾1
    2X-1→Y
    Ans‾ยนLX(X→Z
    X-1
    LX(Ans)+Ansint(Y→LX(Ans
    round(YfPart(Z),0→LX(X
    End
    .1LX(1
    Disp int(Ans
    10fPart(Ans→LX(1
    End
The larger the value in [font="courier new;font-size:9pt;line-height:100%;color:darkblue"]Ans
, the longer the list of twos in the setup ⇒ the more digits that are returned accurately. I was hoping that this would meet the challenge when I started writing it, but it does fail in that regard. As of now, this is only proof-of-concept, and by no means practical. (Virtual TI shows that a list length of 99 is just barely enough to get 15 correct digits after the decimal point, whereas a length of 999 doesn't improve the results at all.) It's also painfully slow even for a small amount of good digits, so the only advantage that this carries is its smallish size of 112 bytes. My calculator will have about that much extra room back once I submit this post. Razz

Last edited by Guest on 15 Jun 2007 02:48:30 am; edited 1 time in total
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement