Commit 883b97ab authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

some test requires double precision

parent 34cf0567
......@@ -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
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment