Advertisement
lobeteperrete

Untitled

Mar 20th, 2020
3,250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ada 0.71 KB | None | 0 0
  1. package body ecuaciones is
  2.  
  3.    function ec(ST1k, SR1, ST4, SC1, ST2k, ST3, SC2 : float) return datos_aux is
  4.      
  5.     --Aqui almacenaremos los datos resultantes
  6.    resultado : datos_aux;  
  7.      
  8.    ST2 : float;
  9.    ST1 :  float;
  10.    DS1 :  float;
  11.    Tt :  float;
  12.    
  13.    begin
  14.      
  15.       --Ecuaciones a resolver
  16.       Tt := (ST1k + ST2k)/2.00;
  17.       ST2:= ST1k + ( (B * l *SR1) - (H*(Tt - ST4)))* (c/(SC1*cp*p));
  18.       ST1 := ST2k - 11.00;
  19.       DS1 := 24.00 * (0.135 + 0.003 * ST2k - 0.0204* ST3 - 0.001 * SC2 + 0.00004*ST2k * SC2);
  20.    
  21.       --Almacenamos el resultado
  22.       resultado := (ST2, Tt, ST1, DS1);
  23.      
  24.       --Devolvemos los datos
  25.       return resultado;
  26.    end ec;
  27.  
  28. end ecuaciones;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement