[openbeos] Re: trigonometric functions

"Stephan Assmus" <superstippi@xxxxxx> wrote:
> I've run into a strange problem. When running the Haiku app_server on 
> R5, Painter draws ellipses just fine. However, when running the real 
> thing, ellipses look really strange, though they look always the same 
> weird shape. At first I was completely puzzled, but now I'm 
> suspecting 
> that maybe one or more trigonometric functions might return bogus. 
> Any 
> ideas on how to track this down in an efficient way? I have not 
> digged 
> to deeply into AGG to see which ones it uses, but I'm hoping that 
> there 
> are some tests which I can run on stdlib, libroot or whatever 
> implements these.

AFAICT there are no unit tests for these yet. Feel free to write them, 
though :-)
All trigonometric functions can be converted to one another with more 
or less effort, and there is also fixed behaviour and terms (like a^2+b
^2=c^2) that you can use for testing.

Bye,
   Axel.


Other related posts: