some test requires double precision

This commit is contained in:
Yukihiro Matsumoto
2012-08-01 01:23:34 +09:00
parent 34cf05679c
commit 883b97ab05
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -647,7 +647,7 @@ mrb_init_math(mrb_state *mrb)
#endif
#ifdef MRB_USE_FLOAT
mrb_define_const(mrb, mrb_math, "TOLERANCE", mrb_float_value(1e-6));
mrb_define_const(mrb, mrb_math, "TOLERANCE", mrb_float_value(1e-5));
#else
mrb_define_const(mrb, mrb_math, "TOLERANCE", mrb_float_value(1e-12));
#endif
+1 -1
View File
@@ -12,7 +12,7 @@ if Object.const_defined?(:Math)
assert('Fundamental trig identities') do
result = true
N = 15
N = 13
N.times do |i|
a = Math::PI / N * i
ca = Math::PI / 2 - a