summaryrefslogtreecommitdiff
path: root/src/fr_div.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2009-08-25 11:25:07 +0000
committerzimmerma <zimmerma@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2009-08-25 11:25:07 +0000
commitd7ad85b4101829c7fc46440802fdac98de158e9b (patch)
tree41377567fbd58ec166857b554dd4111bea6778f1 /src/fr_div.c
parent6d0a27efc061ca29b828f7efb2788b08ab80df17 (diff)
downloadmpc-d7ad85b4101829c7fc46440802fdac98de158e9b.tar.gz
[fr_div.c] added comment
[fr_div.dat] fixed values in accordance with div.dat and 1st input having imaginary part +0 git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@659 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'src/fr_div.c')
-rw-r--r--src/fr_div.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fr_div.c b/src/fr_div.c
index 5b68bd8..6de32cb 100644
--- a/src/fr_div.c
+++ b/src/fr_div.c
@@ -1,6 +1,6 @@
/* mpc_fr_div -- Divide a floating-point number by a complex number.
-Copyright (C) 2008, 2009 Andreas Enge, Philippe Th\'eveny
+Copyright (C) 2008, 2009 Andreas Enge, Philippe Th\'eveny, Paul Zimmermann
This file is part of the MPC Library.
@@ -30,6 +30,7 @@ mpc_fr_div (mpc_ptr a, mpfr_srcptr b, mpc_srcptr c, mpc_rnd_t rnd)
MPC_RE (bc)[0] = b [0];
mpfr_init (MPC_IM (bc));
+ /* we consider the operand b to have imaginary part +0 */
mpfr_set_ui (MPC_IM (bc), 0, GMP_RNDN);
inexact = mpc_div (a, bc, c, rnd);