The following recurrence relation is called the Logistic Equation: y(k) = y(k-1) + gain * y(k-1) *
Question:
The following recurrence relation is called the Logistic Equation:
y(k) = y(k-1) + gain * y(k-1) * (1.0 - y(k-1))
This is the equation used to simulate growth in the optional problem-solving. This exercise asks you to use recursion to evaluate successive values generated by the Logistic equation. To get you started, here is a main method that drives recursions for different values of the gain parameter:
Provide a Logistic class that includes the above main method plus a static method named logistic that starts like this:
The logistic method should be tail recursive and include the following terminal conditions:
After getting your program to work, run it with different inputs, and use what you find to describe how y(k) converges for different ranges of gain.
Step by Step Answer:
Introduction To Programming With Java A Problem Solving Approach
ISBN: 9781260575248
3rd International Edition
Authors: John Dean