Matlab function with inf in end points
Show older comments
hi
I have a function define in an range [ a, b ] the function is ιnf at end point F(a)=inf F(b)=inf
there a method to eliminate this singular point?
thank
George
2 Comments
You can rewrite F to give whatever alternative value you wish at a and b, e.g,
tand(89)
tand(90)
F(89)
F(90)
function f=F(x)
f=tand(x);
if isinf(f), f=0; end
end
but whether that will solve your ultimate problem, we've no way of knowing, without more context.
george veropoulos
on 4 Sep 2022
Moved: Matt J
on 4 Sep 2022
Accepted Answer
More Answers (0)
Categories
Find more on Number Theory 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!