Commit e41fd5c0 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2507 from kkkkkt/add_cos_tan_testcase

added Math.cos and Math.tan test case
parents 0786d86b 9c78fc84
...@@ -23,6 +23,22 @@ assert('Math.sin PI/2') do ...@@ -23,6 +23,22 @@ assert('Math.sin PI/2') do
check_float(Math.sin(Math::PI / 2), 1) check_float(Math.sin(Math::PI / 2), 1)
end end
assert('Math.cos 0') do
check_float(Math.cos(0), 1)
end
assert('Math.cos PI/2') do
check_float(Math.cos(Math::PI / 2), 0)
end
assert('Math.tan 0') do
check_float(Math.tan(0), 0)
end
assert('Math.tan PI/4') do
check_float(Math.tan(Math::PI / 4), 1)
end
assert('Fundamental trig identities') do assert('Fundamental trig identities') do
result = true result = true
N = 13 N = 13
......
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