Mathematica 9 is now available
Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: Self-teaching snag

  • To: mathgroup at
  • Subject: [mg74599] Re: Self-teaching snag
  • From: Peter Breitfeld <phbrf at>
  • Date: Tue, 27 Mar 2007 04:09:31 -0500 (EST)
  • References: <eu7re0$b6p$>

Todd Allen schrieb:
[*** snipp ***] 
> charge[0]=1.0 (* 100% *);
> charge[day_]:=(charge[day-1]-(0.05*charge[day-1]));
> charge[20]
[*** snipp ***] 

your function is a recursively defined one. Problems like this can
be solved using RSolve:


gives the explicit term

Gruss Peter
Peter Breitfeld, Bad Saulgau, Germany --

  • Prev by Date: Re: Self-teaching snag
  • Next by Date: Thread function now working as expected
  • Previous by thread: Re: Re: Self-teaching snag
  • Next by thread: Re: Self-teaching snag