#6398: Transcendental Functions return 0 instead of an error if result is out of range -------------------------------------+-------------------------------------- Reporter: jscipione | Owner: stippi Type: bug | Status: new Priority: normal | Milestone: R1 Component: Applications/DeskCalc | Version: R1/Development Keywords: | Blocked By: Has a Patch: 0 | Platform: All Blocking: | -------------------------------------+-------------------------------------- The transcendental functions acos(), asin(), ln(), log(), and sqrt() all return 0 when the result is out of range. For instance acos(-2) returns 0 as does ln(-1) and sqrt(-5). I have included a patch that throws an "out of domain" exception for these functions rather than returning 0. This fixes the immediate bug. However, a nice enhancement would be to gracefully handle infinite and irrational results rather than just erroring. -- Ticket URL: <http://dev.haiku-os.org/ticket/6398> Haiku <http://dev.haiku-os.org> Haiku - the operating system.