// Next.js API route support: https://nextjs.org/docs/api-routes/introduction let len = 123; // let przekroj = 35; // let threephase = 2; // let resistance = len / (przekroj * 35); let moc = threephase * 7; let wsp = 0.59; /// let kom = 0; let wspplus = moc * wsp + kom; let Uodc = (wspplus / (3 * 230)) * 1000; let spadek = Uodc * resistance; console.log(spadek); let a = [ 1, 0.59, 0.45, 0.38, 0.34, 0.31, 0.29, 0.27, 0.26, 0.25, 0.232, 0.217, 0.208, 0.193, 0.183, 0.175, 0.168, 0.161, 0.155, 0.15, 0.145, 0.141, 0.137, 0.133, 0.13, 0.127, 0.124, 0.121, 0.119, 0.117, 0.115, 0.113, 0.111, 0.109, 0.107, 0.105, 0.104, 0.103, 0.101, 0.1, 0.1, ];