[TIB] Re: solver


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

[TIB] Re: solver



A quick way would be, check -inf, 0, +inf, then figure where it is out of
those three and take half of the domain value (isn't perfect infinity,
otherwise it wouldn't work), and work your way from there, much like the
algorithm everyone uses for Guess The Number.
----- Original Message ----- 
From: "Robert Mohr" <mohr.42@osu.edu>
To: <ti-basic@lists.ticalc.org>
Sent: Wednesday, June 11, 2003 4:59 PM
Subject: [TIB] Re: solver


> Well, I'm sure it goes through numbers like 1e-999, 1e-900, 1e-800,
> etc., and once it gets a sign change it checks the specified region.  So
> ASM does it fast, but they still need an efficient algorithm.
>
> Aaron Sarna wrote:
> > So its not really smart, its just running through numbers quickly until
> > something happens. If assembly can do it that way so quickly, I need to
> > learn asm.
> >
> > Robert Mohr wrote:
> >
> >> On the 86 I believe it searches arbitrary values for the variable and
> >> evaluates them on both sides of the equation.  Then it subtracts one
> >> from the other.  When this value changes sign, it attempts to find
> >> exactly where it changed signs, or where it was equal to zero.  And
> >> when the right side of the equation minus the left side equals zero,
> >> the equation is true.  It then displays the value of x (or whatever
> >> variable) it used to get the two sides equal.
> >>
> >> On the TI-89, I don't have a clue how it works.
> >>
> >> Aaron Sarna wrote:
> >>
> >>> I'm specifically thinking about the TI86, but I imagine that it can't
> >>> be too different on other calcs...can it?
> >>>
> >>> Robert Mohr wrote:
> >>>
> >>>> It depends on the calculator.
> >>>>
> >>>> Aaron Sarna wrote:
> >>>>
> >>>>> I know that this doesn't really belong on the Basic mailing list,
> >>>>> but just out of curiosity, does anyone know how Solver works? Does
> >>>>> it just do trial and error progressively getting farther from your
> >>>>> guess, or is there actually some math involved?
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >
> >
> >
> >
> >
> >
>
> -- 
> Robert Mohr
> mohr.42@osu.edu
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.488 / Virus Database: 287 - Release Date: 6/5/2003




Follow-Ups: References: