In order to avoid exiting the program, I am checking for Inf and setting 
the result to Nan manually for each trigonometric function.  I agree with 
John's comments and hope that something like this would become default 
behavior.
@Milan: Thanks for the link, it was a good one.

Reply via email to