Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • FPC Source FPC Source
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 1,396
    • Issues 1,396
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 66
    • Merge requests 66
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FPC
  • FPCFPC
  • FPC SourceFPC Source
  • Issues
  • #9944
Closed
Open
Issue created Oct 15, 2007 by FPC Admin account@fpc_adminOwner

Math.CoTan returns Tangens on i386

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)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking