▲ | measurablefunc 2 days ago | ||||||||||||||||
That's incorrect, you have to choose the proper inverse branch if you want the answer to be 9. | |||||||||||||||||
▲ | madars 2 days ago | parent | next [-] | ||||||||||||||||
There is no choice here - each inverse is uniquely determined. That's similar to how 3 and -3 are both square roots of 9 (i.e., solutions to x^2=9), but sqrt(9)=3 as it denotes the principal square root, which by convention is always the non-negative value. Of course, in a different context we might design functions to have multi-valued properties, like atan2(x,y) != atan(y/x) in general (atan2 takes quadrant in account and returns full range [-pi, pi], atan only returns principal values in [-pi/2, pi/2]) as practical applications benefit from preserving quadrant beyond just the principal inverse (or not failing when x=0!) | |||||||||||||||||
| |||||||||||||||||
▲ | deruta 2 days ago | parent | prev | next [-] | ||||||||||||||||
I was with you until I remembered the default unit for angles in calculators is degrees, not radians. | |||||||||||||||||
| |||||||||||||||||
▲ | saagarjha 2 days ago | parent | prev [-] | ||||||||||||||||
Yes, that's what those functions do. |