MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: calculate Recurrence Equations


Hallo Frank,

try:

anteil[0] = 1
anteil[n_] := anteil[n] = anteil[n - 1] + (anteil[n - 1]*5 - 1)/100

and you might want to read the section on dynamic programming 
(section 2.5.9) in the HelpBrowser

Oliver

On Thu, 17 Aug 2006, Frank Hechtner wrote:

> hi,
> 
> i?m in trouble with my Recurrence Equations:
> 
> i?ve defined the following function
> 
> anteil[0] = 1
> anteil[n_] := anteil[n - 1] + (anteil[n - 1]*5 - 1)/100
> 
> i want mathematica to calculate the values for anteil[30] and so on.
> 
> Unfortunately mathematica needs for this calculation over 2 hours (and 
> is still running, athlon x2 4600, 2 gb ram).
> 
> I don?t see where are the difficulties for mathematica...
> 
> Thanx for your help
> 
> frank
> 
> 

Oliver Ruebenkoenig, <ruebenko at uni-freiburg.de>
   Phone: ++49 +761 203 7388


  • Prev by Date: Re: Complexity of quantifier elimination
  • Next by Date: Re: Several functions in a single 2D-plot
  • Previous by thread: Re: calculate Recurrence Equations
  • Next by thread: RE: calculate Recurrence Equations