def is_close(x, array, fraction=<NUM_LIT>):
result = False<EOL>for n in range(<NUM_LIT:0>,len(array)):<EOL><INDENT>if array[n] == <NUM_LIT:0>:<EOL><INDENT>if x == <NUM_LIT:0>:<EOL><INDENT>result = True<EOL><DEDENT><DEDENT>elif abs((x-array[n])/array[n]) < fraction:<EOL><INDENT>result = True<EOL><DEDENT><DEDENT>return(result)<EOL>
compares x to all of the values in array.  If it's fraction close to
any, returns true