mirror of
https://github.com/josdejong/mathjs.git
synced 2026-02-01 16:07:46 +00:00
Prevent round-off errors in test
This commit is contained in:
parent
4914084e3f
commit
d820305223
@ -151,5 +151,5 @@ assert.equal(round5(tan(unit('-135deg'))), 1);
|
||||
assert.throws(function () {tan('string')});
|
||||
assert.throws(function () {tan(unit('5 celsius'))});
|
||||
math.range(-2*pi, pi/4, 2*pi).forEach(function (value) {
|
||||
assert.equal(tan(value), sin(value) / cos(value));
|
||||
assert.equal(math.format(tan(value))), math.format(sin(value) / cos(value));
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user