Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package dz;
- public class Analiticki {
- public static void main(String[] args) {
- final float S1 = 0.003f; // Vrijeme trajanja obrade paketa (s/p)
- final float S2 = 0.001f;
- final float S3 = 0.01f;
- final float S4 = 0.04f;
- final float S5 = 0.1f;
- final float S6 = 0.13f;
- final float S7 = 0.15f;
- final float a = 0.2f;
- final float b = 0.3f;
- final float c = 0.5f;
- final float d = 0.6f;
- final float e = 0.4f;
- final float f = 0.6f;
- final float g = 0.2f;
- final float h = 0.3f;
- final float dS1 = S1;
- final float dS2 = S2/(1-f);
- final float dS3 = S3*((a+b*h)/((1-f)*(1-g*h)));
- final float dS4 = S4*(b/(1-f)+((a+b*h)*g)/((1-f)*(1-g*h)));
- final float dS5 = S5*c/(1-f);
- final float dS6 = S6*d;
- final float dS7 = S7*e;
- int steps = 15;
- float step = 0.5f;
- float L = 0.5f;
- float T;
- System.out.println("L\tT");
- for(int i = 1; i <= steps; i++) {
- T = dS1/(1-L*dS1)+dS2/(1-L*dS2)+dS3/(1-L*dS3)+dS4/(1-L*dS4)+dS5/(1-L*dS5)+
- dS6/(1-L*dS6)+dS7/(1-L*dS7);
- System.out.print(L+"\t"+T+"\n");
- L += step;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement