Submission of FZERO for built-in status

129 views
Skip to first unread message

Philip

unread,
May 15, 2011, 7:56:51 PM5/15/11
to freema...@googlegroups.com
Matlab has a built-in function FZERO for finding an input that makes a given scalar-valued function of one variable return the value 0. So far FreeMat lacks this, so I offer the version in the attachment. I wrote it completely myself, from scratch, without ever once looking at the Matlab code. (I have looked at the Matlab documentation, though, to make sure that the calling sequence for this function is backward-compatible with Matlab's.) I have done a lot of testing, and I'm satisfied that the code works well. Now I would be gratified if other users would test it aggressively. I have also attached a script called SHOWTEST to help with testing. This code does not duplicate all the functionality of its Matlab counterpart, but at least you can call it in the same way, and the results should be usable in a great many cases. I am looking forward to hearing what people think.
fzero.m
showtest.m
Reply all
Reply to author
Forward
0 new messages