Search code examples
rloggingtransformationdata-transform

log10 inverse transformation: -10*log10(x)


I am trying to convert the -10*log10(x) to y but not sure with my code.

My code looks like:

y = 1/log(x) * -10

Can anyone confirm it?


Solution

  • If I understood your question correctly:

    x <- 5
    y <- -10 * log10(x)
    # Inverse transformation
    10^(-y/10)
    #[1] 5