This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: eCos math problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]