aboutsummaryrefslogtreecommitdiff
path: root/src/Lagrange-maximum-degree/1d.coeffs/1d.cube.order2.smooth0/coeffs-I.compute.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Lagrange-maximum-degree/1d.coeffs/1d.cube.order2.smooth0/coeffs-I.compute.c')
-rw-r--r--src/Lagrange-maximum-degree/1d.coeffs/1d.cube.order2.smooth0/coeffs-I.compute.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Lagrange-maximum-degree/1d.coeffs/1d.cube.order2.smooth0/coeffs-I.compute.c b/src/Lagrange-maximum-degree/1d.coeffs/1d.cube.order2.smooth0/coeffs-I.compute.c
new file mode 100644
index 0000000..6e17264
--- /dev/null
+++ b/src/Lagrange-maximum-degree/1d.coeffs/1d.cube.order2.smooth0/coeffs-I.compute.c
@@ -0,0 +1,9 @@
+fp t3;
+fp t2;
+fp t1;
+ t3 = x*x;
+ t2 = RATIONAL(1.0,2.0);
+ t1 = t2*t3;
+ coeffs_I->coeff_m1 = RATIONAL(-1.0,2.0)*x+t1;
+ coeffs_I->coeff_0 = RATIONAL(1.0,1.0)-t3;
+ coeffs_I->coeff_p1 = t2*x+t1;