This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: eCos math problem
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Daniel Lidsten <Daniel dot Lidsten at combitechsystems dot com>
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: 23 Sep 2003 05:51:25 -0600
- Subject: Re: [ECOS] eCos math problem
- Organization: MLB Associates
- References: <004B1D7A5257174C9044A1B7BD0E60EDA65F04@ratatosk.combitechsystems.com>
On Tue, 2003-09-23 at 05:04, Daniel Lidsten wrote:
> Hi,
>
> I am having some trouble with the math library on my MPC823 board. Some
> functions works ok, like cos, sin, sqrt but when i try the exp() and
> pow() functions then they both return the wrong answer. Both exp(1) and
> exp(5) return the value <1.0726932e+009>. The same goes for pow(10,2)
> which returns <1.0653532e+009>. How can some of all math operations be
> ok while others are broken?
>
> Are the above functions a part of eCos or are they fetched from the
> compiler? When do i start the debugging?
These functions are in the eCos math library.
I can't locate the bug now, but I know we've seen inconsistent/wrong
results on this platform over the years. How consistent are your
failures? Have you run the tests many times? What version of the
tools (GCC, etc) are you using?
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss