|context> => |context: simm test>

-- define the target pattern
|g> => 3|a> + 5|b> + 13|c>

-- define some similar patterns
|f1> => 0|a> + 5|b> + 13|c>
|f2> => 3|a> + 0|b> + 13|c>
|f3> => 3|a> + 5|b> + 0|c>

-- find how similar they actually are
|r> => 100 ket-simm(""|g>,""|g>)
|r1> => 100 ket-simm(""|f1>,""|g>)
|r2> => 100 ket-simm(""|f2>,""|g>)
|r3> => 100 ket-simm(""|f3>,""|g>)


-- stop processing the .sw file
exit sw

the results:

|context> => |context: simm test>

 |g> => 3.000|a> + 5.000|b> + 13.000|c>
 |f1> => 0.000|a> + 5.000|b> + 13.000|c>
 |f2> => 3.000|a> + 0.000|b> + 13.000|c>
 |f3> => 3.000|a> + 5.000|b> + 0.000|c>

 |r> => 100.000|simm>
 |r1> => 85.714|simm>
 |r2> => 76.190|simm>
 |r3> => 38.095|simm>