mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
some test requires double precision
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user