Mercurial > octave-nkf
comparison src/pr-output.cc @ 9064:7c02ec148a3c
Check grammar on all .cc files
Same check as previously done on .m files
Attempt to enforce some conformity in documentation text for rules
such as two spaces after a period, commas around latin abbreviations, etc.
author | Rik <rdrider0-list@yahoo.com> |
---|---|
date | Sat, 28 Mar 2009 13:57:22 -0700 |
parents | 51dc9691f23f |
children | 52b4d82e5b4f |
comparison
equal
deleted
inserted
replaced
9063:a6cf0ad87eee | 9064:7c02ec148a3c |
---|---|
3183 @deftypefn {Built-in Function} {} rats (@var{x}, @var{len})\n\ | 3183 @deftypefn {Built-in Function} {} rats (@var{x}, @var{len})\n\ |
3184 Convert @var{x} into a rational approximation represented as a string.\n\ | 3184 Convert @var{x} into a rational approximation represented as a string.\n\ |
3185 You can convert the string back into a matrix as follows:\n\ | 3185 You can convert the string back into a matrix as follows:\n\ |
3186 \n\ | 3186 \n\ |
3187 @example\n\ | 3187 @example\n\ |
3188 @group\n\ | |
3188 r = rats(hilb(4));\n\ | 3189 r = rats(hilb(4));\n\ |
3189 x = str2num(r)\n\ | 3190 x = str2num(r)\n\ |
3191 @end group\n\ | |
3190 @end example\n\ | 3192 @end example\n\ |
3191 \n\ | 3193 \n\ |
3192 The optional second argument defines the maximum length of the string\n\ | 3194 The optional second argument defines the maximum length of the string\n\ |
3193 representing the elements of @var{x}. By default @var{len} is 9.\n\ | 3195 representing the elements of @var{x}. By default @var{len} is 9.\n\ |
3194 @seealso{format, rat}\n\ | 3196 @seealso{format, rat}\n\ |
3262 "-*- texinfo -*-\n\ | 3264 "-*- texinfo -*-\n\ |
3263 @deftypefn {Built-in Function} {} disp (@var{x})\n\ | 3265 @deftypefn {Built-in Function} {} disp (@var{x})\n\ |
3264 Display the value of @var{x}. For example,\n\ | 3266 Display the value of @var{x}. For example,\n\ |
3265 \n\ | 3267 \n\ |
3266 @example\n\ | 3268 @example\n\ |
3269 @group\n\ | |
3267 disp (\"The value of pi is:\"), disp (pi)\n\ | 3270 disp (\"The value of pi is:\"), disp (pi)\n\ |
3268 \n\ | 3271 \n\ |
3269 @print{} the value of pi is:\n\ | 3272 @print{} the value of pi is:\n\ |
3270 @print{} 3.1416\n\ | 3273 @print{} 3.1416\n\ |
3274 @end group\n\ | |
3271 @end example\n\ | 3275 @end example\n\ |
3272 \n\ | 3276 \n\ |
3273 @noindent\n\ | 3277 @noindent\n\ |
3274 Note that the output from @code{disp} always ends with a newline.\n\ | 3278 Note that the output from @code{disp} always ends with a newline.\n\ |
3275 \n\ | 3279 \n\ |
3304 "-*- texinfo -*-\n\ | 3308 "-*- texinfo -*-\n\ |
3305 @deftypefn {Built-in Function} {} fdisp (@var{fid}, @var{x})\n\ | 3309 @deftypefn {Built-in Function} {} fdisp (@var{fid}, @var{x})\n\ |
3306 Display the value of @var{x} on the stream @var{fid}. For example,\n\ | 3310 Display the value of @var{x} on the stream @var{fid}. For example,\n\ |
3307 \n\ | 3311 \n\ |
3308 @example\n\ | 3312 @example\n\ |
3313 @group\n\ | |
3309 fdisp (stdout, \"The value of pi is:\"), fdisp (stdout, pi)\n\ | 3314 fdisp (stdout, \"The value of pi is:\"), fdisp (stdout, pi)\n\ |
3310 \n\ | 3315 \n\ |
3311 @print{} the value of pi is:\n\ | 3316 @print{} the value of pi is:\n\ |
3312 @print{} 3.1416\n\ | 3317 @print{} 3.1416\n\ |
3318 @end group\n\ | |
3313 @end example\n\ | 3319 @end example\n\ |
3314 \n\ | 3320 \n\ |
3315 @noindent\n\ | 3321 @noindent\n\ |
3316 Note that the output from @code{fdisp} always ends with a newline.\n\ | 3322 Note that the output from @code{fdisp} always ends with a newline.\n\ |
3317 @seealso{disp}\n\ | 3323 @seealso{disp}\n\ |