![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Expert Programmer
|
How do you make a variable unknown in TI-83+ Basic?
|
|
|
|
|
|
#12 | |
|
Programmer
Join Date: Feb 2005
Posts: 62
Rep Power: 4
![]() |
Quote:
|
|
|
|
|
|
|
#13 |
|
Expert Programmer
|
Sorry i should have specified. What i meant was in my program i want it to go to a different equation if the variable is unknown. How can i do that?
Last edited by crawforddavid2006; Apr 6th, 2005 at 3:24 PM. Reason: Typo |
|
|
|
|
|
#14 | |
|
Programmer
Join Date: Feb 2005
Posts: 62
Rep Power: 4
![]() |
Quote:
so, as far as i know (and i used 83+ basic a LOT back in the day) there is no way to determine if a variable is unknown using basic. if you were trying to make a program that would solve for a given variable in the equation like "x + y = z" ... prompt x,y,z have the user enter something conspicuous that a user would probably never actually type the entire length of like sin(69) or pi for the value of the unknown variable. then you can just check to see which variable equals sin(69) or pi and go from there. it's not the most intuitive and userfriendly solution, but it would get the job done. Last edited by chepfaust; Apr 6th, 2005 at 3:41 PM. |
|
|
|
|
|
|
#15 |
|
Expert Programmer
|
that did not work so i tried something else which helped here is an example
[begining of code] Disp "UNKOWN=X" Disp "ENTER A" Input A Disp "Enter B" Input B Disp "Enter C" Input C If C=X √(A² + B²)→C If B=X √(C²-A²)→B If A=X √(C²-B²)→A Disp “Answer Is” Disp “A” Disp A Disp “B” Disp B Disp “C” Disp C Last edited by crawforddavid2006; Apr 6th, 2005 at 5:41 PM. Reason: i have no idea why it did smilies |
|
|
|
|
|
#16 |
|
Expert Programmer
|
This is for one of my programs could you please help
i am trying to solve for “T” could u help? P = Principal R = Rate in decimal N = Number of times compounded a year T = Number of Year Compounded A = Finishing Amount A = P(1 + (R/N))NT And after that could u help me solve for “N” |
|
|
|
|
|
#17 | |
|
Programmer
Join Date: Feb 2005
Posts: 62
Rep Power: 4
![]() |
Quote:
if what i suggested didn't work, then you probably didn't implement it correctly. try this: replace all instances of "x" with pi. not just 3.14, i'm talking about the pi variable you get when you push 2nd ^. this way, in order to throw the program off the user would physically have to type 3.141592654 (assuming you're in float mode, where decimals don't get rounded). so the first line would be disp "UNKNOWN=<pi character>" and your if statements would be if A=<pi character> then / if B=<pi character> then / etc. Last edited by chepfaust; Apr 6th, 2005 at 9:37 PM. |
|
|
|
|
|
|
#18 | |
|
Programmer
Join Date: Feb 2005
Posts: 62
Rep Power: 4
![]() |
Quote:
![]() you do know the 83/83+ has a built-in equation solver that is much more powerful than anything one can write in basic? if you can rearrange the variables to make the equation equal to 0, you can put the equation in the solver and let the calculator handle the rest. it will only solve for "x" but "x" is equivalent to "t" in your case. furthermore, if you have the pc-to-calc link cable, i'm pretty sure either TI themselves or a third party at ticalc.org has released a full-blown equation solver that you can flash onto the calc. you might want to look into that. i'm -seriously- retarded when it comes to figuring out anything more complex than simple addition and subtraction, so sorry i can't help you with this particular situation ![]() |
|
|
|
|
|
|
#19 |
|
Expert Programmer
|
Thanks anyways
David |
|
|
|
|
|
#20 |
|
Programming Guru
![]() |
Umm...
A = P(1 + R)^(NT)
__________________
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|