"use strict";
// backend/src/memory-pool/buoyancy.ts
Object.defineProperty(exports, "__esModule", { value: true });
exports.computeBuoyancy = computeBuoyancy;
function computeBuoyancy(B0, H, alpha, lambda, t, t_last, permanent) {
    const base = B0 + alpha * H;
    if (permanent)
        return Math.round(base * 100) / 100;
    const decay = Math.pow(lambda, Math.max(0, t - t_last));
    return Math.round(base * decay * 100) / 100;
}
//# sourceMappingURL=buoyancy.js.map