Oct-21-2020, 06:18 PM
You will get that trying to take the square root of a negative number. sin(5) is negative, cos(5) is positive. f2(5) returns a negative number and f3(5) crashes when it tries to calculate the square root.
You should probably add some code to catch that problem and provide a more meaningful error message.
You should probably add some code to catch that problem and provide a more meaningful error message.