why use limit function goes wrong
3 views (last 30 days)
Show older comments
warnerchang on 9 Apr 2022
Commented: Walter Roberson on 9 Apr 2022
Prompt：Inconsistent limit direction.
however，I tried to transform the f and used limit function to get the limit. It has a result.
% y = 1 - 2 / pi * atan( x ); % transformation，x -> ∞ ，y -> 0
% x = tan( pi/2 - pi/2 * y ); % equation
f = ( 1 - y ) .^ ( tan( pi/2 - pi/2 * y ) )
limit( f, y, 0 )
Asking for the "right" limit means that you want the limit from above. As you are asking for the limit at infinity, that would be asking for the limit from "above" infinity. However, MATLAB does not have any support for transfinite numbers.
MATLAB does not identify 2/pi (numeric double precision) as being the same as 1/(π/2) (the symbolic limit)
More Answers (0)
Find more on Logical 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!