double-double
Version:
Pure double-double precision functions *with strict error bounds*.
16 lines (10 loc) • 415 B
text/typescript
import { expect } from 'chai';
import { describe } from 'mocha';
import { ddMultBy4 } from '../../../src/index.js';
describe('ddMultBy4', function() {
it('should correctly multiply some double-double precision values by 4',
function() {
let a = [-4.357806199228875e-10, 11_638_607.274152497];
expect(ddMultBy4(a)).to.eql([-1.74312247969155e-9, 46554429.09660999]);
});
});