view CITATION @ 20242:abf85f8cbd6c

Expand type() to work on command-line entered functions (bug #40462). * symtab.h (find_cmdline_function): New function. * symtab.cc (__get_cmdline_fcn_txt__): New function. * pt-pr-code.cc (tree_print_code::visit_octave_user_function): Don't decrement indent level. * pt-pr-code.cc (tree_print_code::visit_no_op_command): Decrement indent level if end of fcn_or_script reached. * pt-pr-code.cc (tree_print_code::visit_statement): Just print newline. * type.m: Check for command-line function and print string from __get_cmdline_fcn_txt__() if it is not empty.
author John W. Eaton <jwe@octave.org>
date Wed, 20 May 2015 08:01:10 -0700
parents a6d13c62fccf
children f5d9e57d4380
line wrap: on
line source

To cite GNU Octave in publications use:

  John W. Eaton, David Bateman, Søren Hauberg, Rik Wehbring (2014).
  GNU Octave version 3.8.1 manual: a high-level interactive language for
  numerical computations.
  CreateSpace Independent Publishing Platform.  ISBN 1441413006,
  URL http://www.gnu.org/software/octave/doc/interpreter/

A BibTeX entry for LaTeX users is:

  @book{,
    author    = {John W. Eaton, David Bateman, S\oren Hauberg, and Rik Wehbring},
    title     = {{GNU Octave} version 3.8.1 manual: a high-level interactive language for numerical computations},
    publisher = {CreateSpace Independent Publishing Platform},
    year      = {2014},
    note      = {{ISBN} 1441413006},
    url       = {http://www.gnu.org/software/octave/doc/interpreter},
  }

We have invested a lot of time and effort in creating GNU Octave, please cite it
when using it.  See also `citation pkgname' for citing Octave packages.