From c942417791e74428fce1ed2a722c679fca5f131e Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 25 Feb 2010 02:26:22 +0000 Subject: * rational.c (nurat_expt): use Float#** when Rational ** Float. This fixes Rational(3,1)**3.0=>26.99999999999999 on FreeBSD. * complex.c (rb_fexpt): removed. Note that this function is not static but is private. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- complex.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'complex.c') diff --git a/complex.c b/complex.c index c6c9d37fd9..214d3a24ca 100644 --- a/complex.c +++ b/complex.c @@ -825,14 +825,6 @@ m_exp(VALUE x) f_mul(ere, m_sin_bang(im))); } -VALUE -rb_fexpt(VALUE x, VALUE y) -{ - if (f_zero_p(x) || (!k_float_p(x) && !k_float_p(y))) - return f_expt(x, y); - return m_exp(f_mul(m_log(x), y)); -} - inline static VALUE f_reciprocal(VALUE x) { -- cgit v1.2.3