"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Functional_1 = require("../../../../Class/Functional");
const _ids_1 = require("../../../_ids");
class Acosh extends Functional_1.Functional {
    constructor(system) {
        super({
            i: ['x'],
            o: ['rad'],
        }, {}, system, _ids_1.ID_ACOSH);
    }
    f({ x }, done, fail) {
        if (x === 0) {
            fail('cannot calculate the inverse hyperbolic cosine of 0');
            return;
        }
        done({ rad: Math.acosh(x) });
    }
}
exports.default = Acosh;
//# sourceMappingURL=index.js.map