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]
AW: st: Graphing of Exponential Growth and Decay
From
"Klaus Pforr" <[email protected]>
To
<[email protected]>
Subject
AW: st: Graphing of Exponential Growth and Decay
Date
Thu, 23 Aug 2012 10:41:24 +0200
<>
try the function plot:
graph twoway function (1+1/x)^x, yline(`=exp(1)') range(0 10) ylabel(1 2
`=exp(1)' "e" 3)
you don't have to create the data, and you easily combine it with other
plots.
Klaus
__________________________________
Klaus Pforr
GESIS -- Leibniz Institut für Sozialwissenschaft
B2,1
Postfach 122155
D - 68072 Mannheim
Tel: +49 621 1246 298
Fax: +49 621 1246 100
E-Mail: [email protected]
__________________________________
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Phil Clayton
Gesendet: Donnerstag, 23. August 2012 09:52
An: [email protected]
Betreff: Re: st: Graphing of Exponential Growth and Decay
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/
*
* 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/