specialized compute_J in logprice