Oops. You are right about the if, was a last minute change, my bad.
There are lot's of "modified" lines due to trailing spaces (I use a
trailing space killer on save). 
On the help message I meant:

The function handle "f" should be of the form Y = f(X). So it must
accept a vector X and return a vector Y of the same length and
orientation as X.

Then DX = deriv(f,X0), will return a vector DX with the derivatives of
'f' in the points X0 (a vector). By convention I use uppercase single
letters for vectors and matrixes and lowercases for scalars. Hope I
didn't messed it up too much :P

-- 
Joaquín Ignacio Aramendía <samsa...@gmail.com>

El mié, 02-11-2011 a las 02:37 +0000, Carnë Draug escribió:
> On 2 November 2011 02:31, Carnë Draug <carandraug+...@gmail.com> wrote:
> > On 1 November 2011 19:09, Joaquín Ignacio Aramendía <samsa...@gmail.com> 
> > wrote:
> >> A new patch for that function.
> >>
> >> - Corrected a logic error, added a compatibility f=str2funct(f) at the
> >> beggining of the file.
> >>
> >> - Changed function behavior to work with vectorized functions (improve
> >> speed on loops).
> >>
> >> - Added some documentation.
> >
> > In the help text you mention both a var @var{x} and @var{x0}. When you
> > mention @var{x},  you actually mean @var{x0}?
> >
> > Your patch pretty much changes every line of the actual derivation. It
> > seems that all it changes is the capitalization of the x0 variable. Is
> > this correct?
> 
> Plus, your patch didn't close the new if block with str2func (and so,
> the code was non-functional).
> 
> Carnë


------------------------------------------------------------------------------
RSA&#174; Conference 2012
Save $700 by Nov 18
Register now&#33;
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to