Ask coding questions

← Back to all posts
Script settling on -inf
AnthonyFerr (14)

Run the script, and type any number between 0 and 1, then a number between 0.1 and 2, at increments of 0.1. Why does it eventually settle to -inf?
I know, there are more bifurcations than are being stated, but that's a problem for another day.

Coder100 (17122)

did you accidentally divide by 0?

AnthonyFerr (14)

@Coder100 The only thing that is changing is a factor, which is increasing. It begins the returning -inf as soon as it hits r=4, which is about where the plotted values bifurcate like crazy.