Use Math.cosh
This commit is contained in:
@@ -2,7 +2,6 @@ import expect from '../expect.js';
|
||||
import {
|
||||
ceil,
|
||||
clamp,
|
||||
cosh,
|
||||
floor,
|
||||
lerp,
|
||||
log2,
|
||||
@@ -37,28 +36,6 @@ describe('ol/math.js', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('cosh', function () {
|
||||
it('returns the correct value at -Infinity', function () {
|
||||
expect(cosh(-Infinity)).to.eql(Infinity);
|
||||
});
|
||||
|
||||
it('returns the correct value at -1', function () {
|
||||
expect(cosh(-1)).to.roughlyEqual(1.5430806348152437, 1e-9);
|
||||
});
|
||||
|
||||
it('returns the correct value at 0', function () {
|
||||
expect(cosh(0)).to.eql(1);
|
||||
});
|
||||
|
||||
it('returns the correct value at 1', function () {
|
||||
expect(cosh(1)).to.roughlyEqual(1.5430806348152437, 1e-9);
|
||||
});
|
||||
|
||||
it('returns the correct value at Infinity', function () {
|
||||
expect(cosh(Infinity)).to.eql(Infinity);
|
||||
});
|
||||
});
|
||||
|
||||
describe('log2', function () {
|
||||
it('returns the correct value at Infinity', function () {
|
||||
expect(log2(Infinity)).to.eql(Infinity);
|
||||
|
||||
Reference in New Issue
Block a user