Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Graphing of Exponential Growth and Decay


From   Phil Clayton <[email protected]>
To   [email protected]
Subject   Re: st: Graphing of Exponential Growth and Decay
Date   Thu, 23 Aug 2012 17:52:19 +1000

Something like this?
Phil

clear
set obs 300
gen n=_n
gen y=(1+1/n)^n
line y n, yline(`=exp(1)', lstyle(refline)) ///
	ytitle("(1+1/n){sup:n}", orient(horiz)) ///
	ylab(`=exp(1)' "e", add angle(horiz))


On 23/08/2012, at 5:39 PM, Lisa Wang wrote:

> Hello all,
> 
> I would like to show my class (1+1/n)^n will converge to e as n
> approaches infinity. I would like to demonstrate this in Stata through
> some graph(s). Is this possible since I believe Stata is more for
> statistical analyses instead.
> 
> Many thanks and regards,
> Lisa
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index