[openbeos] Re: trigonometric functions
- From: "Andrew Bachmann" <andrewbachmann@xxxxxxxxxxxxx>
- To: openbeos@xxxxxxxxxxxxx
- Date: Wed, 18 May 2005 12:46:27 -0700 PDT
"Stephan Assmus" <superstippi@xxxxxx> wrote:
> It is embarassing, but I really don't have the slightest clue on how to
> fix this. I have gotten as far as confirming that sin() and cos() are
> broken in our libroot. Here are some tests:
>
> I'm thankful for any and all help. As you can guess, this problem is
> hold up for my demo app.
>
> Best regards and thanks in advance,
> -Stephan
I have added some math tests to: src/tests/kernel/libroot/posix/math
They currently just print a table of the values from our cos/sin
functions and the values from libbe. The results are the same as
Stephan reported. (these functions don't work properly)
sin and cos seem to be broken because their subfunctions are
broken. This includes at least copysign, and probably drem.
I may add some tests for these subfunctions specifically since
they are also supported by libbe.
Two side notes:
1. the tests should probably be moved from "kernel" to "system",
like the src subdirectory was a little while back.
2. the math test uses get_image_symbol to retrieve the libbe
function pointers for cos/sin, which is a technique that could
be useful for other tests as well.
Andrew
- Follow-Ups:
- [openbeos] Re: trigonometric functions
- From: Andrew Bachmann
- [openbeos] Re: trigonometric functions
- From: Axel Dörfler
- References:
- [openbeos] Re: trigonometric functions
- From: Stephan Assmus
Other related posts:
- » [openbeos] trigonometric functions
- » [openbeos] Re: trigonometric functions
- » [openbeos] Re: trigonometric functions
- » [openbeos] Re: trigonometric functions
- » [openbeos] Re: trigonometric functions
- » [openbeos] Re: trigonometric functions
- » [openbeos] Re: trigonometric functions
- » [openbeos] Re: trigonometric functions
- » [openbeos] Re: trigonometric functions
- » [openbeos] Re: trigonometric functions
- » [openbeos] Re: trigonometric functions
- [openbeos] Re: trigonometric functions
- From: Andrew Bachmann
- [openbeos] Re: trigonometric functions
- From: Axel Dörfler
- [openbeos] Re: trigonometric functions
- From: Stephan Assmus