Re: Nonlinear Discrete
- To: mathgroup at yoda.physics.unc.edu
- Subject: Re: Nonlinear Discrete
- From: scherm at ifm.uni-hannover.de
- Date: Fri, 25 Feb 1994 15:19:20 +0000
Responding to :
> I am currently engaged in writing a function to deal with
>some discrete nonlinear system, but unfortunately I am a completely novice
>as Mathematica programmer. Can someone out there give some clue how
>to implement a problem such as the following one, please?
> y(t)=a*y(t-1)+b*y(t-2)+c*y(t-1)*y(t-1) -> First how to code?
Please type the following lines:
First you specify the difference equation like
Then you determine the series y(k) with two initial values
All you have to do now is to 'enjoy' the results:
Print[y," ",y," ",y," ",y];
2.5 8.5 79. 5.99223 10
This method is quite simple but
be aware that you defined a recursive difference equation. The MATHEMATICA
Kernel will need a long time to calculate for example y(9).
If you are interested in getting the complete sequence
y(0)..y(9) it will be better to use the following
It will run much faster and gives:
I hope this was helpful..
Prev by Date:
Next by Date:
Previous by thread:
Next by thread:
Re: Teaching Complex Analysis