Discussion
If the result overflows, the function returns the value of the macro HUGE_VAL, carrying the same sign except for the_________ function as the correct value of the function.
Answer: D
Correct answer: tan
On overflow a maths function returns HUGE_VAL with the same sign as the true result - but tan is the exception. Its overflow happens at a pole, where the function runs to \(+\infty\) on one side and \(-\infty\) on the other, so an argument only slightly to one side or the other of \(\pi/2\) gives opposite signs. With the argument itself known only approximately, the sign cannot be relied on.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development