Mercurial > hg > octave-terminal
changeset 7394:872b263b7e62
[project @ 2008-01-17 10:16:15 by dbateman]
author | dbateman |
---|---|
date | Thu, 17 Jan 2008 10:16:15 +0000 |
parents | a2e8cfe2fd17 |
children | 097a2637ef1b |
files | src/ChangeLog src/ov-fcn-inline.cc |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-01-17 David Bateman <dbateman@free.fr> + + * ov-fcn-inline.cc: Add tests for Finline. + 2008-01-17 Ben Abbott <bpabbott@mac.com> * load-path.cc (F__pathorig__): Rename from Fpathdef.
--- a/src/ov-fcn-inline.cc +++ b/src/ov-fcn-inline.cc @@ -744,6 +744,13 @@ return retval; } +/* +%!shared fn +%! fn = inline ("x.^2 + 1","x"); +%!assert (feval (fn, 6), 37) +%!assert (fn (6), 37) +*/ + DEFUN (formula, args, , "-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} formula (@var{fun})\n\