By downloading this code you agree to the
Source Code Use License (PDF). |
{ version = 1.12; (* of diffint.p 2022 Oct 29}
(* begin module describe.diffint *)
(*
name
diffint: differences between integers
synopsis
diffint(input: in, output: out);
files
input: a set of integers, one per line.
output: the difference between each integer and the previous one.
describe
Difference between each integer in input and the
previous one is given to the output.
documentation
see also
Program that allows selection of columns and ranges of differences
to be selected: diffintcut.p
author
Thomas Dana Schneider
bugs
technical notes
The program originally acted as if the integer before the first one
is zero, but this creates artifacts. The initial data point is now
dropped. However, data often comes separate into chunks. This is
marked by the comments. So the program resets everytime there is a
comment line.
The name was changed to diffint (from difint) because that's
closer to the Unix diff command.
The program used to allow:
"Lines that begin with an asterisk ('*') are first copied to the
output."
and
'Lines that begin with "*" are ignored.'
This is no longer true.
bugs
DO NOT GIVE NON-INTEGERS TO THE CODE.
If you do, it may give you strange differences.
The code only checks for non-integers in the first character
of each line.
*)
(* end module describe.diffint *)
{This manual page was created by makman 1.45}
{created by htmlink 1.62}