/** * Returns a power of 10, depending on if values between 0 and * 1 are being plotted. If negative values are not allowed and * the lower bound is between 0 and 10 then a normal power is * returned; otherwise the returned value is adjusted if the * given value is less than 1. * * @param val the value. * * @return 10<sup>val</sup>. * * @since 1.0.5 * @see #switchedLog10(double) */ public double switchedPow10(double val) { return this.smallLogFlag ? Math.pow(10.0, val) : adjustedPow10(val); }
/** * Returns a power of 10, depending on if values between 0 and * 1 are being plotted. If negative values are not allowed and * the lower bound is between 0 and 10 then a normal power is * returned; otherwise the returned value is adjusted if the * given value is less than 1. * * @param val the value. * * @return 10<sup>val</sup>. * * @since 1.0.5 * @see #switchedLog10(double) */ public double switchedPow10(double val) { return this.smallLogFlag ? Math.pow(10.0, val) : adjustedPow10(val); }