From octave-sources-request at bevo dot che dot wisc dot edu Fri Nov 22 10:51:57 2002 Subject: Re: a couple of simple functions for Matlab compatibility From: Paul Kienzle To: Rafael Laboissiere Cc: schraudo at inf dot ethz dot ch, octave-sources@bevo.che.wisc.edu Date: Fri, 22 Nov 2002 11:51:48 -0500 Nicol, Lambert W is available from the matlab symbolic toolbox under the name lambertw. http://www.mathworks.com/access/helpdesk/help/toolbox/symbolic/lambertw.shtml My attitude is that if a function exists somewhere in Matlab then we should try to support the matlab interface. Do you mind renaming it to lambertw? Everything in octave-forge must be available under an open source license http://www.opensource.org/docs/definition.php or placed in the public domain. GPL or BSD are preferred but there are others http://www.opensource.org/licenses/index.html Rafael, assuming Nicol doesn't object, would you care to add the missing functions to the appropriate places in octave-forge? Thanks, Paul Kienzle pkienzle at users dot sf dot net On Fri, Nov 22, 2002 at 09:45:53AM -0600, Rafael Laboissiere wrote: > * schraudo at inf dot ethz dot ch [2002-11-22 06:24]: > > > while I'm at it, I also wrote a number of trivial to simple functions that > > improve octave's compatibility with Matlab. These were created without > > reference to the corresponding Matlab code, so there should be no copyright > > issues. Feel free to include them in future releases of octave. > > Besides betaln, besselh1, ans, besselh2, lbeta, and ndims, the functions > that you implemented exist already in octave-forge (or even in octave 2.1, > as for besselh, lower, and upper): > > $ tar tfvz /var/tmp/compat.tgz | perl -ne íf(m{/([^/]*)\.m}){print "which > $1\n"}'| octave > besselh is the dynamically-linked function from the file > /usr/lib/octave/2.1.36/oct/i386-pc-linux-gnu/besselh.oct > which: `betaln' is undefined > factor is the user-defined function from the file > /usr/share/octave/2.1.36/site/m/octave-forge/specfun/factor.m > isequal is the user-defined function from the file > /usr/share/octave/2.1.36/site/m/octave-forge/general/isequal.m > isfinite is a built-in mapper function > isprime is the user-defined function from the file > /usr/share/octave/2.1.36/site/m/octave-forge/specfun/isprime.m > isreal is a built-in function > primes is the user-defined function from the file > /usr/share/octave/2.1.36/site/m/octave-forge/specfun/primes.m > repmat is the user-defined function from the file > /usr/share/octave/2.1.36/site/m/octave-forge/general/repmat.m > which: `besselh1' is undefined > which: `ans' is undefined > which: `besselh2' is undefined > gammaln is a built-in mapper function > which: `lbeta' is undefined > lower is the user-defined function from the file > /usr/share/octave/2.1.36/m/strings/lower.m > nchoosek is the user-defined function from the file > /usr/share/octave/2.1.36/site/m/octave-forge/specfun/nchoosek.m > which: `ndims' is undefined > upper is the user-defined function from the file > /usr/share/octave/2.1.36/m/strings/upper.m > > > You might be interested in merging/donating your code to the octave-forge > project. > > -- > Rafael Laboissiere >