Info
此问题已关闭。 请重新打开它进行编辑或回答。
find all minima present in a user defined one variable function
1 次查看(过去 30 天)
显示 更早的评论
hi, I want find all the minima of a one variable function defined by me f(x) = @(x)... inside the interval [x_l, x_r].
I searched on the net but I can't find any built in function.
Any help is appreciated.
Regards, Gianluca
2 个评论
Andrew Newell
2011-6-10
There is no general solution to this problem, but there are solutions for certain kinds of problems. If you provide more detail, we might be able to help. Do you have the Symbolic Toolbox?
回答(1 个)
Walter Roberson
2011-6-10
It can be demonstrated without much difficulty that there is no general way to do that in any system that uses a finite representation for numbers.
sin(x*2*pi*K)) has a frequency of K cycles per integer; let K be more than the 2 to the power of the number of bits of precision used to store the numbers: by the Pigeon Hole principle more than one root will get "aliased" to the same finite number.
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!