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 General Open Topic 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. Open Topic & United-TI Talk => General Open Topic
Author Message
Galandros


Active Member


Joined: 29 Aug 2008
Posts: 565

Posted: 26 May 2009 02:48:30 pm    Post subject:

Weregoose wrote:
For what it's worth, I made a couple of modifications: the first one appears as an edit in my earlier post, and the second one prepends a negative sign whenever the terminal side is in the third or fourth quadrants. This is the program as it stands now:

Ans→X
sub("01√(√(1",4X[font="verdana"]²
+1,1
If X<0
"[font="arial"]-"+Ans
If fPart(2X
Ans+sub("023",4X[font="verdana"]²,1)+")
If fPart(X
Ans+"/2
Ans

I made an completely brute aproach to this...
It put X^2 into a list of the fraction. Then it had to rationalize (translation math correct?) and output the answer.

But works for sin(90) and doesn't thrown as many errors in bad input... Just presents a strange result.


Last edited by Guest on 11 Jul 2010 03:18:08 pm; edited 1 time in total
Back to top
Weregoose
Authentic INTJ


Super Elite (Last Title)


Joined: 25 Nov 2004
Posts: 3976

Posted: 26 May 2009 05:07:07 pm    Post subject:

panyan wrote:
thankyou for revised code, i have only found one fault (which is by no means a problem), when doing sin(90), the answer is 1, but when using your program it gives it as 1/2.
Unless fPart(sin(90[font="times new roman"]° does not equal zero on your calculator, you typed in the program wrong. Go back and try it again.

Last edited by Guest on 11 Jul 2010 03:17:40 pm; edited 1 time in total
Back to top
IAmACalculator
In a state of quasi-hiatus


Know-It-All


Joined: 21 Oct 2005
Posts: 1571

Posted: 26 May 2009 05:29:21 pm    Post subject:

panyan wrote:
IAmACalculator wrote:
Wow. I just figured out why it said that he was quoting Goose instead of Darkerline. That was quite the fake-out.


i have no idea what you are talking about, back on topic please
The two had swapped their avatars, thus leading to my confusion. Also, please don't jump down my throat like that. It was only a simple question, and your problem was mostly solved by that point (at this point it has been completely solved). I didn't feel like it would be at all destructive or derailing.
Back to top
panyan


Member


Joined: 29 Dec 2007
Posts: 142

Posted: 27 May 2009 06:43:08 am    Post subject:

IAmACalculator wrote:
panyan wrote:
IAmACalculator wrote:
Wow. I just figured out why it said that he was quoting Goose instead of Darkerline. That was quite the fake-out.


i have no idea what you are talking about, back on topic please
The two had swapped their avatars, thus leading to my confusion. Also, please don't jump down my throat like that. It was only a simple question, and your problem was mostly solved by that point (at this point it has been completely solved). I didn't feel like it would be at all destructive or derailing.


actually i thought you were criticizing something i had done which i hadnt known about - lets forget about 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
    » Goto page Previous  1, 2
» View previous topic :: View next topic  
Page 2 of 2 » All times are UTC - 5 Hours

 

Advertisement