diff options
Diffstat (limited to 'ic-reals-6.3/math-lib/sin_R.c')
-rw-r--r-- | ic-reals-6.3/math-lib/sin_R.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ic-reals-6.3/math-lib/sin_R.c b/ic-reals-6.3/math-lib/sin_R.c new file mode 100644 index 0000000..6b68c6d --- /dev/null +++ b/ic-reals-6.3/math-lib/sin_R.c @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2000, Imperial College + * + * This file is part of the Imperial College Exact Real Arithmetic Library. + * See the copyright notice included in the distribution for conditions + * of use. + */ + +#include <stdio.h> +#include "real.h" + +Real +sin_R(Real x) +{ + Real r; + + r = div_R_Int(x, 2); + r = tan_R(r); + r = tensor_Int(r, r, 0, 1, 1, 0, 1, 0, 0, 1); + return r; +} |