summaryrefslogtreecommitdiff
path: root/src/sin.c
Commit message (Collapse)AuthorAgeFilesLines
* sin_cos.c: split out sin.c and cos.c to follow gnu coding standards:enge2011-08-301-0/+27
| | | | | | | | | | one external function per file get.c: renamed to get_x.c get_x.c, set_x.c, set_x_x.c contain several external functions; changing this is maybe exaggerated git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1038 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* moved trivial contents of sin.c and cos.c into sin_cos.cenge2011-01-071-28/+0
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@860 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* sin and cos call sin_cos also for ordinary argumentsenge2011-01-071-68/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@859 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* mpc.h, mpc.texi:enge2011-01-071-85/+3
| | | | | | | | | | | | | | | defined and documented return value for functions computing two results It is obtained from the macro MPC_INEX12 (inex1, inex2) and decomposed again as MPC_INEX1 (inex) and MPC_INEX2 (inex) sin_cos.c, sin.c, cos.c: First steps to moving the computation of sin and cos into sin_cos: If one of rop_cos or rop_sin in sin_cos is NULL, then it is not computed. So far, implemented for special, real and purely imaginary values. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@857 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* use macro mpc_fin_p to detect special operandsenge2010-10-041-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@847 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* cos.c, sin.c: use mpfr_sinh_coshenge2010-10-041-37/+39
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@846 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* code cleanup:enge2010-07-301-2/+2
| | | | | | | | | removed macro MPFR_PREC from mpc-impl.h replaced MPFR_PREC (MPC_RE (op)) by MPC_PREC_RE (op) and MPFR_PREC (MPC_IM (op)) by MPC_PREC_IM (op) git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@814 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* sin.c: reverted r795 and r796 and applied simple fix for overflowenge2010-07-151-41/+14
| | | | | | | BUGS: clarified handling of intermediate overflow git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@802 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* More work on overflow problem (still incomplete). There is still a problemzimmerma2010-06-281-7/+29
| | | | | | | with mpc_tan, where the error bound on Re(x) is huge. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@796 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* partial fix for problems with huge exponents reported by Chris Saunderszimmerma2010-06-281-1/+12
| | | | | | | | | (http://lists.gforge.inria.fr/pipermail/mpc-discuss/2010-June/000750.html) More work is needed for tan (detect when Im(result) is very near -1 or 1) and tanh. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@795 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* replaced mp_prec_t by mpfr_prec_t; compatibility with mpfr>=2.3.1enge2010-06-111-1/+1
| | | | | | | is preserved, since it already defines mpfr_prec_t git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@776 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* revert to UNIX format (r457 changed every file to DOS format).thevenyp2009-03-171-169/+169
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@459 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Modify #include chain so as to support DLL creation on Cygwinthevenyp2009-03-171-172/+169
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@457 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* replaced call to mpfr_sin_cos by calls to mpfr_cos andenge2008-12-081-2/+3
| | | | | | | | mpfr_sin to obtain the right return values moved test which is expensive in my nfs environment to the end git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@388 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* NEWS, doc/mpc.texi: notice change in exp, sin, cos, and tan function prototypes.thevenyp2008-12-031-49/+47
| | | | | | | | src/cos.c, src/sin.c, src/tan.c: return now inexact value. tests/tcos.c, tests/tsin.c, tests/ttan.c: change from V_CC to CC func_type. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@380 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* sin: lower precision for sign determinationenge2008-10-041-3/+3
| | | | | | | sqr: use internal MPFR_SIGN macro instead of mpfr_signbit git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@247 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Add more tests and fix some bugs for trigonometric functions.thevenyp2008-05-061-3/+7
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@126 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Fix values at a (x +/-i*Inf) point.thevenyp2008-04-221-9/+23
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@117 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Fix sign of zero in mpc_sin.thevenyp2008-04-221-4/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@116 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Add special values processing in mpc_sin as in the C99 standardthevenyp2008-04-211-14/+69
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@115 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* File reorganisation into three new directories: src, tests and doc.thevenyp2008-04-091-0/+99
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@82 211d60ee-9f03-0410-a15a-8952a2c7a4e4