logarithm problem
Posted: Tue Nov 09, 2010 10:04 pm
Hello.
I´m trying to do a simply program to sum dB.
I have created a function that read two dB and operate with them
The problem is that the LOG give me problems. It always return 1 tu dBtotal.
And the most simple LOG operation ( Log(c, 10) ) give the error "Too many arguments for this function!"
I´m new in Hollywood and the last time I coded something was a lot of years ago!
Hope for a tip!
Thanks!
Function p_Suma(dx1, dx2)
a = (10^(dx1/10))
b = (10^(dx2/10))
c = a + b
dBtotal = Log(c) /* HERE */
NPrint ("La suma es:",dBtotal)
EndFunction
I´m trying to do a simply program to sum dB.
I have created a function that read two dB and operate with them
The problem is that the LOG give me problems. It always return 1 tu dBtotal.
And the most simple LOG operation ( Log(c, 10) ) give the error "Too many arguments for this function!"
I´m new in Hollywood and the last time I coded something was a lot of years ago!
Hope for a tip!
Thanks!
Function p_Suma(dx1, dx2)
a = (10^(dx1/10))
b = (10^(dx2/10))
c = a + b
dBtotal = Log(c) /* HERE */
NPrint ("La suma es:",dBtotal)
EndFunction