how to avoid division by zero?

Feb 26, 2011 at 10:37pm

how to avoid division by zero?

hi,
in creating a patch on discrete summation formula I need to avoid division by zero
because I’m dividing the outputs of two oscillators.
Do you have some suggestion????
Thanks
fv

#55215
Feb 27, 2011 at 4:49pm

I assume you wish to stay in the signal domain, so [if $f1 != 0. then $f1] won’t do……… I could be talking out of my backside, but what about the [abs~] object, will that pass a zero signal? but then you won’t get your negative values either….hmmmm

Brendan

#198713
Feb 27, 2011 at 5:27pm

Trick question? What about !=~

#198714
Feb 27, 2011 at 6:32pm

maybe [maximum~ 0.001] can help.
jan

#198715
Feb 27, 2011 at 6:50pm

we are discussing this problem in the following post concerning discrete summation formula:

http://cycling74.com/forums/topic.php?id=31332

#198716

You must be logged in to reply to this topic.