|
STRING HAMMING DISTANCEName:
where <dist> is a parameter containing the Hamming distance; <s1> is the name of a pre-existing string; and <s2> is the name of a pre-existing string. The <s1> and <s2> strings must be the same length.
you need to do
LET STRING S2 = gmail.org LET SOUT = STRING HAMMING DISTANCE S1 S2 The name on the left hand side of the equal sign may be a previously existing parameter. However, if it is a previously existing string, variable, or matrix name, an error will be reported and the requested parameter will not be created.
LET STRING S1 = 1011100111 LET STRING S2 = 1010010110 LET DIST = STRING HAMMING DISTANCE S1 S2 PRINT DISTThe following output is returned PARAMETERS AND CONSTANTS-- DIST -- 0.4000000E+01
|
Privacy
Policy/Security Notice
NIST is an agency of the U.S.
Commerce Department.
Date created: 10/10/2018 |