python differntial equetion -- 2
Budget: $10 – $30 USD
i need help with this homework question
a) You are given this difference equation:
?? + 1 = 1.1 × ?? − 200
with the initial value ?0 = 10000.
Write a Python program like:
calculates ?? for ?from 0 to 20
makes a sensible, clear plot of ? (on the y-axis) against ? (on the x-axis), for ? from 0 to 20 include the initial value in the plot title
b) Now generate a new plot for the same differential equation, but with the initial value ?0 = 1000
.
c) There is a value for that initial value (?0) which causes the equation to be in equilibrium (is 'stable'). Find this initial value and generate the corresponding plot for the difference equation. You can show how you found this initial value, but you do not need, the program and the plot are sufficient.
d) How can we get these three completely different results for the same difference equation by just changing the initial value?
a) You are given this difference equation:
?? + 1 = 1.1 × ?? − 200
with the initial value ?0 = 10000.
Write a Python program like:
calculates ?? for ?from 0 to 20
makes a sensible, clear plot of ? (on the y-axis) against ? (on the x-axis), for ? from 0 to 20 include the initial value in the plot title
b) Now generate a new plot for the same differential equation, but with the initial value ?0 = 1000
.
c) There is a value for that initial value (?0) which causes the equation to be in equilibrium (is 'stable'). Find this initial value and generate the corresponding plot for the difference equation. You can show how you found this initial value, but you do not need, the program and the plot are sufficient.
d) How can we get these three completely different results for the same difference equation by just changing the initial value?