mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Release calc version 2.11.0t8.3
This commit is contained in:
15
help/hash
15
help/hash
@@ -12,10 +12,23 @@ TYPES
|
||||
DESCRIPTION
|
||||
Returns a hash value for one or more values of arbitrary types.
|
||||
|
||||
This function implements the Fowler/Noll/Vo hash-1 (FNV-1 hash).
|
||||
The basis of the hash algorithm was taken from an idea sent
|
||||
by Email to the IEEE POSIX P1003.2 mailing list from Phong Vo
|
||||
(kpv@research.att.com) and Glenn Fowler (gsf@research.att.com).
|
||||
Landon Curt Noll (http://reality.sgi.com/chongo) later improved on
|
||||
their algorithm to come up with Fowler/Noll/Vo hash.
|
||||
|
||||
See:
|
||||
|
||||
http://reality.sgi.com/chongo/tech/comp/fnv/index.html
|
||||
|
||||
for more information in this hash.
|
||||
|
||||
EXAMPLE
|
||||
> a = isqrt(2e1000); s = "xyz";
|
||||
> hash(a,s)
|
||||
870000771
|
||||
1916476840
|
||||
|
||||
LIMITS
|
||||
The number of arguments is not to exceed 100.
|
||||
|
Reference in New Issue
Block a user