[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Octave coding standards
From: |
Fotios Kasolis |
Subject: |
Re: Octave coding standards |
Date: |
Sat, 6 Nov 2010 14:30:21 +0100 |
-----Original Message-----
From: John W. Eaton
Sent: Saturday, November 06, 2010 2:20 PM
To: Fotios Kasolis
Cc: address@hidden ; Rik
Subject: Re: Octave coding standards
On 6-Nov-2010, Fotios Kasolis wrote:
| I did not read carefully! The documentation refers to the parentheses and
| not to the end of block.
Yes, I finally found that just after sending my previous message. I
checked in a change to contrib.txi that I hope will help to clarify
that.
| Btw, should demos be after tests or the other way or I should not care?
I don't think the order matters.
Although demos are welcome for any function, I think they are most
useful for functions that can't be tested automatically (things like
plotting functions). For functions that perform calculations, it is
probably best to spend our time writing tests rather than demos.
jwe
Thx again John. I attach a copy of nestfun with Riks corrections + a
correction so that the function returns what was written in the
documentation (the initial nestfun returned a matrix with n columns while in
the doc I claimed it returns n+1 columns, now it returns n+1 as
Mathematica's function does) + documentation modifications + one more test +
demos. I changed the documentation so that it refers to functions instead of
dynamical systems, just to make it general.
PS. In that case I find demos beautiful since the resulting plots I put are
well known and they provide some correctness confirmation.
/Fotis
nestfun.m
Description: Binary data