def reg_inversa(y,a,b): return (math.log(y/a))/b code example Example: javascript natural log Math.log(n)