aboutsummaryrefslogtreecommitdiff
path: root/math/deboor/round.f
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /math/deboor/round.f
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'math/deboor/round.f')
-rw-r--r--math/deboor/round.f10
1 files changed, 10 insertions, 0 deletions
diff --git a/math/deboor/round.f b/math/deboor/round.f
new file mode 100644
index 00000000..df02c939
--- /dev/null
+++ b/math/deboor/round.f
@@ -0,0 +1,10 @@
+ real function round ( x )
+c from * a practical guide to splines * by c. de boor
+called in example 1 of chapter xiii
+ real x, flip,size
+ common /rount/ size
+ data flip /-1./
+ flip = -flip
+ round = x + flip*size
+ return
+ end