| 1 |
function logStrValueX(de,x,w,g,ub,ua) { |
| 2 |
var z = g.getAttributeNS(null, 'zero'), s = g.getAttributeNS(null, 'scale'), |
| 3 |
p = g.getAttributeNS(null, 'precision'), b = g.getAttributeNS(null, 'base'), |
| 4 |
lgmin, lgmax, lgmul; |
| 5 |
lgmin = Math.log(z)/Math.log(b); |
| 6 |
lgmax = Math.log(s)/Math.log(b); |
| 7 |
lgmul = w / (lgmax - lgmin); |
| 8 |
return ub + (Math.pow(b, lgmin*1 + x / lgmul)).toFixed(p) + ua; |
| 9 |
} |
| 10 |
|