You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
485 B

{ n = $1
n += $1
if (n != $1 + $1) print NR, "urk +="
n = $1
n -= $1
if (n != 0) print NR, "urk -="
n = $1
n *= 3.5
if (n != 3.5 * $1) print NR, "urk *="
n = $1
n /= 4
if (n != $1 / 4) print NR, "urk /="
n = NR
n ^= 2
if (n != NR * NR) print NR, "urk1 ^=", n, NR * NR
n = NR
n **= 2
if (n != NR * NR) print NR, "urk1 **=", n, NR * NR
n = NR
n ^= 1.5
ns = sprintf("%.10g", n)
sq = sprintf("%.10g", NR * sqrt(NR))
if (ns != sq) print NR, "urk2 ^=", ns, sq
}