13 lines
541 B
Plaintext
13 lines
541 B
Plaintext
// Routines from the library, called like the program's own: a run steps over each one, and the
|
|
// prover uses each one's REQUIRE and ENSURE at the call.
|
|
// EXPECT: 5.0 4.571428571428571
|
|
// EXPECT: 0.0 -0.0615234375
|
|
// EXPECT: 0
|
|
USE stats
|
|
USE md.LennardJones
|
|
USE align.NeedlemanWunschScore
|
|
DECLARE Samples : LIST OF FLOAT <- [2.0, 4.0, 4.0, 4.0, 5.0, 5.0, 7.0, 9.0]
|
|
OUTPUT Mean(Samples), " ", Variance(Samples)
|
|
OUTPUT LennardJones(1.0, 1.0, 1.0), " ", LennardJones(2.0, 1.0, 1.0)
|
|
OUTPUT NeedlemanWunschScore("GATTACA", "GCATGCU", 1, -1, -1)
|