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.

TI-Basic Brain Teasers => TI-BASIC
Author Message
angel14995

Member

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: Quote::Prompt A,B,C :For(θ,1,3 :Disp cos‾¹(((A(θ≠1))²+(B(θ≠2))²+(C(θ≠3))²-expr(sub("ABC",θ,1))²)/(2expr(sub("BAA",θ,1)+sub("CCB",θ,1 :End Anyone?
DarkerLine
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: Quote:Prompt A,B,C {A,B,C cos-1((.5sum(Ans2)Ans-Ans3)/prod(Ans (39 bytes)Last edited by Guest on 18 May 2008 08:52:45 pm; edited 1 time in total
angel14995

Member

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...
 Display posts from previous: All Posts Oldest FirstNewest First
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.

»
 Page 1 of 1 » All times are GMT - 5 Hours