Inductor Series Calculator

for (let i = 1; i <= 10; i++) {
document.write(`

H
mH
µH

`);
}


Inductor Parallel Calculator

for (let i = 1; i <= 10; i++) {
document.write(`

H
mH
µH

`);
}


function calculateSeriesInductance() {
let total = 0;
for (let i = 1; i 0 ? `Equivalent Inductance: ${formatInductance(total)}` : “Please enter at least one inductor.”;
}

function calculateParallelInductance() {
let reciprocalSum = 0;
let validCount = 0;
for (let i = 1; i 0 ? 1 / reciprocalSum : 0;
document.getElementById(“parallelInductorResult”).innerText =
validCount > 0 ? `Equivalent Inductance: ${formatInductance(total)}` : “Please enter at least one inductor.”;
}

function formatInductance(value) {
if (value >= 1)
return value.toFixed(3) + ” H”;
else if (value >= 1e-3)
return (value * 1e3).toFixed(3) + ” mH”;
else
return (value * 1e6).toFixed(3) + ” µH”;
}


(adsbygoogle = window.adsbygoogle || []).push({});