How this is possible? "atan(x) function problem"
Show older comments
Hello Everyone!
I want to calculate the arctan function in MatLab.
But the result is a situation that I do not understand.
Normally, x = atan (1/0) is compleately NaN
Also, matlab says that x = arctan (1/0)
= 1.5708
How is that possible?
Sorry about this simple question but I could not find any information on the network.
Accepted Answer
More Answers (1)
What is the problem?
a = 1/0
a =
Inf
atan(a)
ans =
1.5708
fplot(@(x)atan(x),[-100 100],'-b','LineWidth',2)
looks like the Wiki-Entry for me:
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!