Not all 1's are 2's but pretty much all 2's are 1's.Rymosrac wrote:Well yeah, not all exponential functions are quadratic. But pretty much all quadratic functions are exponential.
Now you're talking, this is the math I remember!

Not all 1's are 2's but pretty much all 2's are 1's.Rymosrac wrote:Well yeah, not all exponential functions are quadratic. But pretty much all quadratic functions are exponential.
I just meant that vanilla BW does a lot of ignoring physics and realism. For a mod that completely abandons a unified design principle and balance in favor of letting people dick around with it however they want, there's a hell of a lot of complaining about changing things from vanilla in parts of the community.Azarael wrote: Not sure what you're getting at.
Rymosrac wrote:You forgot to close your head.
Actually, that explains a lot.
Umh... not quite. You're correct when you call the number 2 in a quadratic equation the exponent, but these types of equations are commonly referred to as power laws. The term exponential equation is reserved for equations of the form y = e^x, where e is the Euler number.Rymosrac wrote:Well yeah, not all exponential functions are quadratic. But pretty much all quadratic functions are exponential.
Theoretically, there should be the exp() function handling this. A common pow() function is normally calculated via pow(x,y) = pow(a, y * log_a(x)), where a is usually 2 or e, depending on the implantation in the math library. So, performance could be an issue here...Azarael wrote:I'm concerned about the performance of Square() versus **. Can you offer any clarification? I can see how Square is internally handled as x * x, but, say, x ** 1.4?
Exp
native(191) static final function float Exp (float A)
Calculates e to the power of A, the exponential function.
Damnit, Jim! I'm a robotics tech, not a mathematician!Pinky wrote:Umh... not quite. You're correct when you call the number 2 in a quadratic equation the exponent, but these types of equations are commonly referred to as power laws. The term exponential equation is reserved for equations of the form y = e^x, where e is the Euler number.
That's the one. The exact internal implementation depends on the processor used (many mathematically functions are hard-coded within the CPU), unless your programming language emulates it via software. In any case, my guess is that exp() will be slower than x*x - if you are concerned about efficiency...Azarael wrote:Exp
native(191) static final function float Exp (float A)
Calculates e to the power of A, the exponential function.
Users browsing this forum: No registered users and 0 guests