UNPKG

dina-agi

Version:

DINA AGI - Dynamic Intelligence Network Architecture. 128 Autonomous Agents with Claude Flow, Swarms, and 300+ MCPs. True AGI System.

14 lines 311 B
/** @param {number} i * @param {number} n * @returns {number} product of i to n */ export function product(i, n) { if (n < i) { return 1; } if (n === i) { return n; } var half = n + i >> 1; // divide (n + i) by 2 and truncate to integer return product(i, half) * product(half + 1, n); }