I am planning to write a PL/SQL procedure to perform some math calculations. The math formulas has 'log' function with base 2. [ e.g. log2(25) ]. Would you please provide me your feedback on how to code this in SQL.

The complete formula is something like this.

log2(x1)-log2(x2)-log2(x3)

x1,x2,x3 are the column names in my oracle table and I need to calculate the value for each row in the table using above formula.

Thanks,
Ramesh