changeset 26601:de358b26dc88 stable

trapz.m: Restore documentation comments lost in f6730533820e. * trapz.m: Restore comments about what code in @example block is doing.
author Rik <rik@octave.org>
date Tue, 22 Jan 2019 15:20:22 -0800
parents f6730533820e
children 4e521d091a70
files scripts/general/trapz.m
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/general/trapz.m	Tue Jan 22 13:45:11 2019 -0800
+++ b/scripts/general/trapz.m	Tue Jan 22 15:20:22 2019 -0800
@@ -43,10 +43,13 @@
 ## @group
 ## x = 0:0.1:1;
 ## y = x.^3;
+## ## No scaling
 ## q = trapz (y)
 ##   @result{} q = 2.5250
+## ## Approximation to integral by scaling
 ## q * 0.1
 ##   @result{} 0.25250
+## ## Same result by specifying @var{x}
 ## trapz (x, y)
 ##   @result{} 0.25250
 ## @end group