comparison doc/interpreter/arith.texi @ 2993:91589ab98e37

[project @ 1997-05-21 21:44:54 by jwe]
author jwe
date Wed, 21 May 1997 21:51:38 +0000
parents ee9582e6668f
children 9c5160c83bd2
comparison
equal deleted inserted replaced
2992:53b38bf1d443 2993:91589ab98e37
342 they work on an element by element basis. For example, 342 they work on an element by element basis. For example,
343 343
344 @example 344 @example
345 @group 345 @group
346 sin ([1, 2; 3, 4]) 346 sin ([1, 2; 3, 4])
347
348 @result{} 0.84147 0.90930 347 @result{} 0.84147 0.90930
349 0.14112 -0.75680 348 0.14112 -0.75680
350 @end group 349 @end group
351 @end example 350 @end example
352 351
384 Return the cumulative sum of each column of @var{x}. For example, 383 Return the cumulative sum of each column of @var{x}. For example,
385 384
386 @example 385 @example
387 @group 386 @group
388 cumsum ([1, 2; 3, 4]) 387 cumsum ([1, 2; 3, 4])
389
390 @result{} 1 2 388 @result{} 1 2
391 4 6 389 4 6
392 @end group 390 @end group
393 @end example 391 @end example
394 @end deftypefn 392 @end deftypefn
397 Return the cumulative product of each column of @var{x}. For example, 395 Return the cumulative product of each column of @var{x}. For example,
398 396
399 @example 397 @example
400 @group 398 @group
401 cumprod ([1, 2; 3, 4]) 399 cumprod ([1, 2; 3, 4])
402
403 @result{} 1 2 400 @result{} 1 2
404 3 8 401 3 8
405 @end group 402 @end group
406 @end example 403 @end example
407 @end deftypefn 404 @end deftypefn