[raw2]
[/raw2]
Камера с кроп-фактором
[raw2]
[/raw2]
ГИПЕРФОКАЛ
[raw2]
function Hyper1(F,A,d) {return parseFloat(F)+(F*F/A/d); }
function Hyper1_submit() { form = document.forms["hyper1"]; form["ls"].value = form["ls"].value.replace(/,/, "."); form["ws"].value = form["ws"].value.replace(/,/, "."); form["focus"].value = form["focus"].value.replace(/,/, "."); form["fstop"].value = form["fstop"].value.replace(/,/, "."); form["circle"].value = form["circle"].value.replace(/,/, ".");
if (form["ls"].value == 35 && form["ws"].value == 24) {
fstopz=form["fstop"].value; focusz=form["focus"].value; form["crop"].value=1; Diag=Math.sqrt((form["ls"].value*form["ls"].value)+(form["ws"].value*form["ws"].value)); form["diag"].value=Math.round((Diag*1000)/1000);
form["foc35"].value=form["focus"].value; form["eff35"].value=form["fstop"].value;
} else
{
Diag=Math.sqrt((form["ls"].value*form["ls"].value)+(form["ws"].value*form["ws"].value)); form["diag"].value=Math.round((Diag*1000)/1000); Crop=42/Diag; Cropm=Diag/42; Cropo=Math.round(Crop * 1000) / 1000; form["crop"].value=Cropo; Eff=form["fstop"].value/Cropm; Eff=Math.round(Eff * 10) / 10; form["eff35"].value=Eff;
foc=form["focus"].value*Crop; foc=Math.round(foc * 1) / 1; form["foc35"].value=foc;
fstopz=form["fstop"].value*Crop; focusz=form["focus"].value*Crop;
}
H = Hyper1(focusz, fstopz, form["circle"].value)/1000;
H = Math.round(H*100)/100; if(isNaN(H)) H = "ошибка"; else if(!isFinite(H)) H = "бесконечность"; form["hyper1"].value = H; return false; }
[/raw2]