Math.CoTan returns Tangens on i386
Original Reporter info from Mantis: Michalis @michaliskambi
-
Reporter name: Michalis Kamburelis
Original Reporter info from Mantis: Michalis @michaliskambi
- Reporter name: Michalis Kamburelis
Description:
Run the attached program, result is
$ fpc cotan.pas
$ ./cotan
tan: 1.55741
cotan: 1.55741
tan: 0.41421
cotan: 0.41421
Looks like for whatever argument, CoTan returns the same thing as Tan. Tan is right in this case, but CoTan should of course output reversed values. The problem didn't occur with 2.0.4, with FPC 2.0.4 we see correct results:
$ fpc cotan.pas
$ ./cotan
tan: 1.55741
cotan: 0.64209
tan: 0.41421
cotan: 2.41421
Mantis conversion info:
- Mantis ID: 9944
- OS: Debian GNU/Linux
- Platform: i386
- Version: 2.2.0
- Fixed in version: 2.2.2
- Fixed in revision: 8917 (#c2ce5d91)