summaryrefslogtreecommitdiffstats
path: root/test/cubic_interpolation
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-06 01:04:14 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-06 01:04:14 +0200
commitd38a2c7546684431788f7b52ff9d843e5b856578 (patch)
tree6d9dc77d2e36ba80cf17fd83a46bb599e5df7c07 /test/cubic_interpolation
parentadd more graphs (diff)
downloadblueshift-d38a2c7546684431788f7b52ff9d843e5b856578.tar.gz
blueshift-d38a2c7546684431788f7b52ff9d843e5b856578.tar.bz2
blueshift-d38a2c7546684431788f7b52ff9d843e5b856578.tar.xz
add an example designed to break monotonicity
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'test/cubic_interpolation')
-rwxr-xr-xtest/cubic_interpolation3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/cubic_interpolation b/test/cubic_interpolation
index 83b34b0..f388e04 100755
--- a/test/cubic_interpolation
+++ b/test/cubic_interpolation
@@ -25,7 +25,8 @@ def main():
add_graph(fig, 221, [i / 15 for i in range(16)])
add_graph(fig, 222, [sin(6 * i / 15) for i in range(16)])
add_graph(fig, 223, [(i / 15) ** 0.5 for i in range(16)])
- add_graph(fig, 224, [random() for i in range(16)])
+ #add_graph(fig, 224, [random() for i in range(16)])
+ add_graph(fig, 224, [(-1) ** (i // 2) for i in range(16)])
# Show graphs
plot.show()