Transcendental Functions return 0 instead of an error when result is out of range
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.
Change History
(6)
Summary: 
Transcendental Functions return 0 instead of an error if result is out of range → Transcendental Functions return 0 instead of an error when result is out of range

Type: 
bug → enhancement

Status: 
new → inprogress

Resolution: 
→ fixed

Status: 
inprogress → closed

patch to error when result is out of range (input out of domain)