Can anyone help me to evaluate the trigonometric function below?
Please look that the picture for more details.
Here is the code to evaluate:
ArcTan[k] + ArcTan[1/k]
From trigonometry we know that tan−1(k)+tan−1(1k)=π2. However, when I put input that expression into Mathematica I get this:
ArcTan[1k]+ArcTan[k]
Can anyone help me to get the result of π2?
Answer
We know that FullSimplify[ArcTan[k] + ArcTan[1/k], k > 0]
does not do it. But by first converting to exponentials, now Mathematica does it
FullSimplify[ TrigToExp[ArcTan[k] + ArcTan[1/k]] , k > 0]
Gives as output π2
Comments
Post a Comment