[A83] Re: Equation solver


[Prev][Next][Index][Thread]

[A83] Re: Equation solver




Well, you should be able to use ThreeExec to invoke the solver.  Here's an
example:
    ld    hl,EquationVariableName    ; The expression to solve (the =0 will
be appended)
    rst    20h
    B_CALL    PushRealO1
    ld    hl,VariableToSolveName    ; The variable to solve for.
    rst    20h
    B_CALL    PushRealO1
    B_CALL    OP1Set0                 ; The guess value, you can pick
something else
    ld    a,tRoot                                ;Yeah, the solver op code
is tRoot.  Beats me.
    B_CALL    ThreeExec                ; Result will be on OP1, or an error
will occur.
...
EquationVariableName:
    db    ProgObj,"ABC",0            ;Uses program ABC as expression tos
olve
VariableToSolveName:
    db    RealObj,tX,0,0                ; Solve for variable X

Hope this helps,
-Dan Englender


----- Original Message -----
From: "TypeR unknown" <typerfuture@hotmail.com>
To: <assembly-83@lists.ticalc.org>
Sent: Monday, January 21, 2002 1:05 PM
Subject: [A83] Re: Equation solver


>
> I should have been more specific I guess :)
>
> I meant how I can use the equation solver in an actual ASM program, thus
how
> I can "steer" it, from within a ASM program
> Just like how you can use a Parser
> What it's romcall is etc.
>
>
> Sorry...
>
>
> >From: Gavin Olson <gtolson@snet.net>
> >Reply-To: assembly-83@lists.ticalc.org
> >To: assembly-83@lists.ticalc.org
> >Subject: [A83] Re: Equation solver
> >Date: Mon, 21 Jan 2002 12:51:52 -0500
> >
> >
> >At 02:45 AM 1/21/02 -0800, you wrote:
> >
> > >It can solve any equation with one unknowns, but for 2 and more degree
> > >polynomial equations, you need to use guesses. (Or use PolySmlt) The
> > >easiest way to use is to write the right part of the equation, then
> > >putting a minus and a paranthesis -( and write the left part of the
> > >equation. Then press enter go down. Now write a guess for the unknown
and
> > >press Alpha+Enter. There's solve in Alpha state of Enter button.
> > >  The bound limits the numbers that's tried in the solver.
> > >Also, you can use the solve( command in basic programs. You can find
the
> > >command in the Catalog. It works in the same way. Check the 83 Plus
> > >guidebook for more info. (Page 2-8)
> > >http://education.ti.com/product/pdf/gb/83p02eng.pdf
> >
> >This was on my 1.10 83-.  It didn't work so well, and I like the one on
my
> >89 better, but it was functional in a pinch (irritating that it made it
> >equal to zero instead of the right side of the equation, so you have to
set
> >to zero like you have ther) 89 is nice because you can list out any
number
> >of equations, then an equal number of variables, and it will solve, then
> >give the answer in fractional form. Does Symbolic so fractionals?
> >
> >
> >
>
>
>
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
>





References: