p = 3/(4+8+3)

Input

p = 3/(4 + 8 + 3)

Exact result

p = 1/5
1/5

Decimal form

0.2

Logarithmic form

log(15, p) = log(15, 3) - log(15, 4 + 8 + 3)