This produces more-accurate results.
+2012-09-08 Paul Eggert <eggert@cs.ucla.edu>
+
+ * floatfns.c (Ftan): Use tan (x), not (sin (x) / cos (x)).
+ This produces more-accurate results.
+
2012-09-08 Jan Djärv <jan.h.d@swipnet.se>
* nsterm.m (updateFrameSize): Call setFrame: on the view when size
(register Lisp_Object arg)
{
double d = extract_float (arg);
- double c = cos (d);
#ifdef FLOAT_CHECK_DOMAIN
+ double c = cos (d);
if (c == 0.0)
domain_error ("tan", arg);
#endif
- IN_FLOAT (d = sin (d) / c, "tan", arg);
+ IN_FLOAT (d = tan (d), "tan", arg);
return make_float (d);
}