funciones por vbaegih
TRANSCRIPT
-
8/17/2019 Funciones Por Vbaegih
1/2
Public Function a() As Doublea = InputBox("ingresa el ht &")If ht < 50.8 Thena = 12.1286 * ht ^ 0.3162 - 10.2991Elsea = 0.3388 * ht + 14.4122End IfEnd Function
Public Function b() As DoubleRf = InputBox("ingresa el RF(ht)")
If Rf
-
8/17/2019 Funciones Por Vbaegih
2/2
ElseIf T < 12 Thene = 4.5 - 0.25 * T
ElseIf T < 16 Thene = 2.1 - 0.05 * T
ElseIf T < 24 Thene = 1.5 - 0.0125 * T
ElseIf T < 32 Thene = 1.35 - 0.00625 * T
ElseIf T > 32 Thene = 1.15End IfEnd Function
Public Function efe()rhos = InputBox("ingresa densidad que te dan")efe = rhos / 1600End Function
Public Function ese() As DoubleMsgBox ("usa elorden L,H,HT,DW")
L = InputBox("ingresa el L")H = InputBox("ingresa el H")ht = InputBox("ingresa el ht")dw = InputBox("ingresa el dw")
ese = L * H * ((ht) ^ 2 / (ht + dw) ^ 2) / 1000000End Function
Public Function te()Fe = InputBox("ingrese flujo de entrada")Ff_cero_cinco = InputBox("ingrese FF(0.5ht)")S = InputBox("ingrese valor de S")
te = (Fe * Ff_cero_cinco / 100) / S
End Function
Public Function g()x = InputBox("ingrese valor de FF(1.25ht)")y = InputBox("ingrese valor de FF(0.75ht")g = 0.844 * (1 - ((x - y) / 100)) ^ 3.453End Function
Public Function exis50(ht, te, a, b, c, d, e, f, g)
MsgBox ("ingresa ht,te,a,b,c,d,e,f,g en ese orden loco wom")Z = a * b * c * d * e * f * g:exis50 = ht * (te / Z) ^ -0.148End Function