mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-18 14:59:29 +00:00
Added test to test for numerical issues just fixed
This commit is contained in:
parent
d274a50cbf
commit
24cdfb90a7
@ -49,6 +49,7 @@ describe('sqrt', function() {
|
||||
|
||||
it('should return the square root of a complex number', function() {
|
||||
assert.deepEqual(sqrt(math.complex(3, -4)), math.complex(2, -1));
|
||||
assert.deepEqual(sqrt(math.complex(1e10, 1e-10)), math.complex(1e5, 5e-16));
|
||||
});
|
||||
|
||||
it('should throw an error when used with a unit', function() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user