Hello list, ive noticed that the object [log] only outputs the natural logarithm and im wondering if there is an object in Pd that can give me log base 10. Thanks in advance.
Divide the result by ln(10)=2.30258509 I'd put this into an abstraction named log10.pd for example: [inlet] | [log] | [/ 2.302585] | [outlet]
Chuck
On Fri, May 4, 2012 at 2:30 PM, Roberto Aramburu aramburumail@gmail.com wrote:
Hello list, ive noticed that the object [log] only outputs the natural logarithm and im wondering if there is an object in Pd that can give me log base 10. Thanks in advance.
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 05/04/2012 09:30 PM, Roberto Aramburu wrote:
Hello list, ive noticed that the object [log] only outputs the natural logarithm and im wondering if there is an object in Pd that can give me log base 10.
log_n(x) = ln(x)/ln(n)
you might want to calculate the divisor at runtime rather than precalculating and hardcode the values in your patch, in order to get higher precision.
fgamsrd IOhannes