aboutsummaryrefslogtreecommitdiff
path: root/math/deboor/round.f
diff options
context:
space:
mode:
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