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 Technology & Calculator 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. Math and Science => Technology & Calculator Open Topic
Author Message
Noob88


Member


Joined: 23 Nov 2005
Posts: 239

Posted: 09 Nov 2006 03:36:54 pm    Post subject:

I was sitting in my Pre-Cal class wondering if there was an easy way to solve equations ivolving Sin/Cos/Tan.
Ex: sin(C-Cos(C=0

Where C is equal to theta.

After getting to thinking, I figured I could probably make some sort of "guess and check" program if you will to solve certain equations, and this is what I tried first:


Code:
ClrHome
300->dim(L1
For(A,1,15
For(B,1,20
A(pi)/B->C
If sin(C)-cos(C)=0 //this can be replaced with any formula I suppose
C->L1(AB)
End
End
For(F,1,300
If L1(F)!=0 and L1(F)<2(pi)
Disp L1(F)/(pi)>Frac
End


This is very poorly written as I found out after testing it for a few reasons:

1) Storing the variable to "AB" causes many problems. A can be 1 and B can be 5, but A can be 5 and B can be 1... Then storing to that value would overwrite a previous (Maybe correct) answer to the equation.

2) There are problems with this when you have something like
sin(2C)=0
Or something along those lines. Then you come up with answers that for some reason cannot be found by my program, because of the way we learned to do it was:

sin(2C)=1
2C=sin-1(1)+2(pi)
C=sin-1(.5)+(pi)

Then solve and find the answers. My program doesn't have the write denominator for these problems because it doesn't divide by 2.

3) I am unable to do equations that involve Tangent, because of the times at which A and B together make up a value at which Tangent is undefined. Then I get an error and it stops the whole program. Is there a simple line of code I can use to help alleviate this problem also?

Thanks for the help with this... I've been stuck thinking about it for a few days so I finally decided to come here.

[EDIT] Changed the first part of my post so it says (C instead of ©


Last edited by Guest on 09 Nov 2006 03:37:39 pm; edited 1 time in total
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 09 Nov 2006 04:21:43 pm    Post subject:

You can use solve() to solve any equation at all. Then if you want the answer in the form "A*Pi/B" divide the answer by Pi and use >Frac.
Back to top
Noob88


Member


Joined: 23 Nov 2005
Posts: 239

Posted: 09 Nov 2006 04:45:15 pm    Post subject:

The problem with the solve( function is that it only gives one answer, when in reality there are many answers to some of the problems.
Back to top
Fallen Ghost


Elite


Joined: 15 Jun 2006
Posts: 955

Posted: 10 Nov 2006 03:19:57 pm    Post subject:

Just solve the equation for 1 variable, and in a loop for all of them and poof, there you go.
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