Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 108 users online: 8 members, 78 guests and 22 bots. Members: chickendude, critor, Piguy-3.14, Roshiras, samuelcoleman, Tari. Bots: VoilaBot (1), Magpie Crawler (3), Yahoo! Slurp (1), Googlebot (16), MSN/Bing (1).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
|
| Author |
Message |
|
ACagliano
Super-Expert

Joined: 08 Feb 2010 Posts: 922
|
Posted: 13 Jan 2012 10:18:20 am Post subject: |
|
|
Hmm. I remember reading that, to eliminate one variable, assume a=1, then solve for the others. Once you do that, you can multiply by the gcd to get the coefficients. Is that right?
Edit: Another question. What happens if you attempt to HIDE the program that you are currently executing? If you can without issue, how would you do so? Would you need to change its name in the VAT? _________________ -ACagliano
Current Projects
Legend of Zelda. "Ganon's Rage"
51% |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55736 Location: Earth, Sol, Milky Way
|
Posted: 13 Jan 2012 11:46:40 am Post subject: |
|
|
I would strongly recommend not doing that; almost every shell, including Doors CS, would probably get very confused. Also, by the Reduced Row-Echelon method, you don't need to eliminate equations if you have too many; conversely, I don't see how your suggested solution would yield anything sane. _________________
 |
|
| Back to top |
|
|
ACagliano
Super-Expert

Joined: 08 Feb 2010 Posts: 922
|
Posted: 13 Jan 2012 11:49:10 am Post subject: |
|
|
| KermMartian wrote: | | I would strongly recommend not doing that; almost every shell, including Doors CS, would probably get very confused. Also, by the Reduced Row-Echelon method, you don't need to eliminate equations if you have too many; conversely, I don't see how your suggested solution would yield anything sane. |
In my solution, my goal is to add one equation (a=1), not eliminate one. So that the number of equations=the number of variables. _________________ -ACagliano
Current Projects
Legend of Zelda. "Ganon's Rage"
51% |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55736 Location: Earth, Sol, Milky Way
|
Posted: 13 Jan 2012 11:50:18 am Post subject: |
|
|
Yeah, but you can't assume that a=1, and the values of all the other variables change if you assume instead that a=2 or a=3. _________________
 |
|
| Back to top |
|
|
ACagliano
Super-Expert

Joined: 08 Feb 2010 Posts: 922
|
Posted: 13 Jan 2012 12:16:22 pm Post subject: |
|
|
Yes, I know the values of the other variables change if you assume a to be other than 1, but don't they all change in a manner proportional to the change in a? According to the algorithm I read about, unless I misunderstood it, assuming a=1 allows you to solve the system, but may render non-integers for the other variables. Then, you can find the lowest number that makes all variables integers and multiply all the variables by it. Wouldn't that compensate for assuming a=1?
If not, is there another algorithm that can be used for balancing an equation? _________________ -ACagliano
Current Projects
Legend of Zelda. "Ganon's Rage"
51% |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55736 Location: Earth, Sol, Milky Way
|
Posted: 13 Jan 2012 12:55:07 pm Post subject: |
|
|
Well, a chemical equation is a special case wherein all variables must be integers, which I had forgotten until you pointed it out. More specifically, I forgot that that was the application you were targetting, in which case you can indeed make that assumption. _________________
 |
|
| Back to top |
|
|
ACagliano
Super-Expert

Joined: 08 Feb 2010 Posts: 922
|
Posted: 15 Jan 2012 12:39:49 pm Post subject: |
|
|
Would the following, in Op1, correctly represent the variable [A]?
Code:
MatrixAPtr:
.db MatObj,tVarMat,tMatA,0,0,0,0,0,0
_________________ -ACagliano
Current Projects
Legend of Zelda. "Ganon's Rage"
51% |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55736 Location: Earth, Sol, Milky Way
|
Posted: 15 Jan 2012 12:43:35 pm Post subject: |
|
|
It would indeed correctly represent matrix variable [A]/. _________________
 |
|
| Back to top |
|
|
ACagliano
Super-Expert

Joined: 08 Feb 2010 Posts: 922
|
Posted: 15 Jan 2012 12:51:48 pm Post subject: |
|
|
Wonderful. Now, ChkFindSyming that should return a pointer to the data in the matrix, correct? Now, I'm sorry if I'm missing it and its really obvious, but can I have a link to some documentation that describes the format of a matrix in memory? Thanks.
Edit: Also, is there a way to write a program (well, subroutine) in TI-Basic, then see what asm tokens it is made out of? For instance, here's what I want to write in TI-Basic, then use the bcall(_ParseInput) on.
Code:
rref([A])
dim([A])
Matr->List( [A] , Ans(2) , L1 )
lcd( L1 ) -> A
A*L1 -> L1
Return
_________________ -ACagliano
Current Projects
Legend of Zelda. "Ganon's Rage"
51% |
|
| Back to top |
|
|
ACagliano
Super-Expert

Joined: 08 Feb 2010 Posts: 922
|
Posted: 16 Jan 2012 09:54:56 pm Post subject: |
|
|
bump _________________ -ACagliano
Current Projects
Legend of Zelda. "Ganon's Rage"
51% |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55736 Location: Earth, Sol, Milky Way
|
Posted: 16 Jan 2012 11:07:29 pm Post subject: |
|
|
Nope, you need to use FindSym, not ChkFindSym. FindSym is only for programs, groups, and appvars. _________________
 |
|
| Back to top |
|
|
ACagliano
Super-Expert

Joined: 08 Feb 2010 Posts: 922
|
Posted: 16 Jan 2012 11:10:39 pm Post subject: |
|
|
| KermMartian wrote: | | Nope, you need to use FindSym, not ChkFindSym. FindSym is only for programs, groups, and appvars. |
You mean ChkFindSym is only for them?
What about the TI-Basic question? Is there a TI-Basic tokens list somewhere? _________________ -ACagliano
Current Projects
Legend of Zelda. "Ganon's Rage"
51% |
|
| Back to top |
|
|
souvik1997

Guru-in-Training

Joined: 19 Apr 2010 Posts: 2870
|
Posted: 16 Jan 2012 11:15:56 pm Post subject: |
|
|
Why not create that program on your calculator, and look at its data in Calcsys? I think ti83plus.inc has a list of tokens, but I'm not sure. There's also a list on TI|BD. _________________ CALCnet Tournament-38%
deviantArt
 |
|
| Back to top |
|
|
ACagliano
Super-Expert

Joined: 08 Feb 2010 Posts: 922
|
Posted: 16 Jan 2012 11:19:30 pm Post subject: |
|
|
Hmm. Didn't think of that *smacks self with shovel _________________ -ACagliano
Current Projects
Legend of Zelda. "Ganon's Rage"
51% |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55736 Location: Earth, Sol, Milky Way
|
Posted: 16 Jan 2012 11:19:39 pm Post subject: |
|
|
| ACagliano wrote: | | KermMartian wrote: | | Nope, you need to use FindSym, not ChkFindSym. FindSym is only for programs, groups, and appvars. |
You mean ChkFindSym is only for them? | Sorry, I'm in bed with the flu(ish); I derped. That is indeed what I meant. _________________
 |
|
| Back to top |
|
|
ACagliano
Super-Expert

Joined: 08 Feb 2010 Posts: 922
|
Posted: 17 Jan 2012 12:00:30 pm Post subject: |
|
|
Oh, thats not fun. Coincidentally, I'm under the weather myself.
Edit: Now I need to figure out how to do an input routine, specially designed for inputting a chemical equation. Do you recommend Direct Input, getCSC, or getKey for this? _________________ -ACagliano
Current Projects
Legend of Zelda. "Ganon's Rage"
51% |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55736 Location: Earth, Sol, Milky Way
|
Posted: 17 Jan 2012 02:41:59 pm Post subject: |
|
|
Of course, I'd always recommend a single-line text input box from Doors CS, with the only caveat that you'd have to wait for the user to submit the field before rejecting it for being malformed. Then again, it would be relatively challenging to detect a malformed equation on-the-fly anyway. _________________
 |
|
| Back to top |
|
|
ACagliano
Super-Expert

Joined: 08 Feb 2010 Posts: 922
|
Posted: 17 Jan 2012 06:12:16 pm Post subject: |
|
|
I think I like the DCS features for this, allowing me a dynamic editor, rather than a single line editor. In this way, I can have a GUI window that:
prompts for symbol
prompts for subscript
button for 'add element'
button for finish
*then I could have a routine check the input field against the Elements Lookup Table if you press one of the buttons, and render the word "Invalid" next to the input field if there is no match. That sound like a plan? _________________ -ACagliano
Current Projects
Legend of Zelda. "Ganon's Rage"
51% |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55736 Location: Earth, Sol, Milky Way
|
Posted: 17 Jan 2012 07:05:08 pm Post subject: |
|
|
Sounds like a good plan to me! Let me know if I can do anything to help this along as far as Doors CS tutoring.  _________________
 |
|
| Back to top |
|
|
ACagliano
Super-Expert

Joined: 08 Feb 2010 Posts: 922
|
Posted: 17 Jan 2012 07:49:25 pm Post subject: |
|
|
Does the bcall PutS wrap text? Do any of them? _________________ -ACagliano
Current Projects
Legend of Zelda. "Ganon's Rage"
51% |
|
| Back to top |
|
|
|
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
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.039704 seconds.
|