I must have a mental block, but I simply can't find the reverse of this math function:
x = pow(y, 5);
I have x and 5, how do I find y ?
Here is a snip of my current code:
+(float) linearVolumeToVolumeCurve:(float)volume
{
return pow(volume, 5);
}
+(float) volumeCurveToLinearVolume:(float)volume
{
return ???
}
The inverse of a power function of exponent n is a nth root radical function. For example, the inverse of y = 10x^2 is y = √(x/10) (at least for positive values of x and y).
What is the reverse power rule? Basically, you increase the power by one and then divide by the power +1 .
pow() is used to return the value of first argument raised to the power of the second argument. The return type of pow() method is double.
Python pow() Function The pow() function returns the value of x to the power of y (xy).
Try this
Y=Math.Log(x) / Math.Log(5)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With