Office - Sub funcion

 
Vista:

Sub funcion

Publicado por Ricardo (35 intervenciones) el 12/05/2005 17:34:34
Sres: Estoy creando esta función en VB, pero tengo una variable (d) que es otra función
La formula SGR contiene esta variable (d)
d=Ln(Peso), mi pregunta es como y donde la ingreso en la siguiente cadena.

Function CRECFW(Peso, temp)
'peso : Peso promedio
'temp : Temperatura agua

'Constantes de crecimiento

c = -2.39819884
w = -0.47238563
w2 = 0.071553747
w3 = -0.00663535
t = 0.605725232
t2 = -0.0345142
t3 = 0.000724353
wt = 0.026548668
wt2 = -0.00663535
w2t = -0.0569055

'Correción por sesgo
a = 1.045
b = 0.936

SGR = c + w * d + t * temp + w2 * d ^ 2 + t2 * temp ^ 2 + wt * d * temp + w3 * d ^ 3 + t3 * temp ^ 3 + w2t * d ^ 2 * temp

SGRF = Exp(SGR) / a

CRECFW = SGRF ^ (1 / b)

End Sub
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder