Untitled
unknown
plain_text
3 years ago
607 B
7
Indexable
choice = input("[1] Single Phase -- [2] Three Phase"); radius = input("Enter radius: "); distance = input("Enter distance: "); if (choice == 1) L = (2 * 10^-7) * log(distance / radius * exp(-0.25)); elseif (choice == 2) sym = input("Sym ? [Press Enter or Type No]"); if (sym == 1) L = (2 * 10^-7) * log(distance / radius * exp(-0.25)); elseif (sym == 2) dds = input("Enter List of distances: "); distance = dds(1) * dds(2) * dds(3) ^ 0.3; L = (2 * 10^-7) * log(distance / radius * exp(-0.25)); end else L = "error"; end disp("L = "+ L);
Editor is loading...