I'm writing a genetic program to perform symbolic regression on a formula. I'm using ECJ. See tutorial 4 of the samples that come with ECJ for an example of what this is and the base that I started off of.
The problem comes when implementing division as a function to your genetic program. How do you guard against dividing by zero?