Login [Register]
Don't have an account? Register now to chat, post, use our tools, and much more.
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


Joined: 13 Oct 2007
Posts: 181

Posted: 18 May 2008 08:29:47 pm    Post subject:

I recently was working in class, and we started doing non-right triangles and how to solve them and all. I got bored in class, and decided to start working on a solver of the angles of a triangle given the three sides. After a while, I came up with a program. Yesterday, I got the idea of how to shorten it down.

Now the teaser for all of you: Given inputs of a, b, and c, output A, B, and C in their respective orders. The input has to be in the program.

I got it down to 104 bytes:

:Prompt A,B,C
:Disp cos‾(((A(θ≠1))+(B(θ≠2))+(C(θ≠3))-expr(sub("ABC",θ,1)))/(2expr(sub("BAA",θ,1)+sub("CCB",θ,1

Back to top
ceci n'est pas une |

Super Elite (Last Title)

Joined: 04 Nov 2003
Posts: 8328

Posted: 18 May 2008 08:48:00 pm    Post subject:

We're repeating ourselves: http://www.unitedti.org/index.php?showtopi...indpost&p=94058

Anyways, for the teaser at hand:

Prompt A,B,C

(39 bytes)

Last edited by Guest on 18 May 2008 08:52:45 pm; edited 1 time in total
Back to top


Joined: 13 Oct 2007
Posts: 181

Posted: 18 May 2008 09:01:02 pm    Post subject:

Aww crap. I didn't see it at all. When I looked at the forum the first time, I didn't see anything like it...
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 GMT - 5 Hours