Re: A83: help with math


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

Re: A83: help with math




An approximate solution for tan(b) is -56/(b-90). It's not very good because
it can vary from 0.1 to 1 with tan(b), but if you use entire numbers, it's a
good solution.
You can modify -56 to have a better solution for what you wants, but it's
not perfect and you can't have a good approximate solution for all numbers
between 0 and 90.

Ti-83

Visit my website :
http://www.ifrance.com/ti-83
ti-83@libertysurf.fr


----- Original Message -----
From: Richard Harper Maddox <gte172i@prism.gatech.edu>
To: <assembly-83@lists.ticalc.org>
Sent: Monday, June 12, 2000 8:48 AM
Subject: Re: A83: help with math


>
>
> try to think of an approximate solution to the problem that does not use
> trigonometric functions.
> or use a table.
>
> fp is too slow.
>
> -Harper
>
> On Sun, 11 Jun 2000, John Wyrwas wrote:
>
> >
> > I've been having trouble figuring out how to do the
> > following 2 problems without a whole lot of code
> >
> > a/tan(b degrees)
> > a*tan(b degrees)
> >
> > a is -16 to 16    b is 0-90
> > (note: could someone explain this to me: i thought it
> > wasn't possible to have negative integers in the
> > registers but a bunch of stuff i've seen appears
> > otherwise, since there also is a "neg" opcode to find
> > the negative of a. How is the negative sign stored in
> > a 8 bit number???)
> >
> > Would constructing a table be the only way?  I don't
> > really want to use up that much space if there is an
> > approximate i can use, other than using floating point
> > numbers (would that be terribly slow???).
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Photos -- now, 100 FREE prints!
> > http://photos.yahoo.com
> >
> >
>
>




References: