aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-12-08 14:53:13 +0100
committerAnton Khirnov <anton@khirnov.net>2014-12-08 14:53:13 +0100
commitff92be5824c046a2e6b290e2bb763d20a4da3805 (patch)
treefef4e149a8fbde9fed55f0a1cfe6e09564a73097
parent48147865517bcca444f0fa432361cacc24c9198a (diff)
Rewrite an expression in a clearer way.
-rw-r--r--brill_data.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/brill_data.c b/brill_data.c
index 96b2d3a..40b2082 100644
--- a/brill_data.c
+++ b/brill_data.c
@@ -118,9 +118,8 @@ static long double sb_even_colloc_point(int order, int idx, long double sf)
long double t;
idx = order - idx - 1;
- order *= 2;
- t = (idx + 2) * M_PI / (order + 4);
+ t = (idx + 2) * M_PI / (2 *(order + 2));
return sf / tanl(t);
}