Hi to all...i'm a new R'user and i have to solve some exercies so i ask to tou for an help... 1.) How i can demonstrate in R that the limit for x-->infinite of (1+1/x)^x is equal to "e"? 2.) if i have a vector of values how can i create a function that, applied to my vector, give me "median", "mean", "Var" and "length" togheter? 3.)Find the minimum of this function: f(x)=(x-3)^4 with the Newton method. 4.) Define a function that is able to calculate the geometric mean of a seriation: Sorry for all these questions... Thanks a lot!!!... -- View this message in context: http://www.nabble.com/Help-me...%21%21%21-tp23724167p23724167.html Sent from the R help mailing list archive at Nabble.com.
have a read at these pdfs http://cran.r-project.org/other-docs.html you are likely to get a bashing for asking people to do your homework for you! Simon. ----- Original Message ----- From: "abel1682" <lizard_1682 at yahoo.it> To: <r-help at r-project.org> Sent: Tuesday, May 26, 2009 3:37 PM Subject: [R] Help me...!!!> > Hi to all...i'm a new R'user and i have to solve some exercies so i ask to > tou for an help... > > 1.) How i can demonstrate in R that the limit for x-->infinite of > (1+1/x)^x is equal to "e"? > 2.) if i have a vector of values how can i create a function that, applied > to my vector, give me "median", "mean", "Var" and "length" togheter? > 3.)Find the minimum of this function: > f(x)=(x-3)^4 > with the Newton method. > > 4.) Define a function that is able to calculate the geometric mean of a > seriation: > > Sorry for all these questions... > Thanks a lot!!!... > -- > View this message in context: > http://www.nabble.com/Help-me...%21%21%21-tp23724167p23724167.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >
http://www.r-project.org/posting-guide.html "Basic statistics and classroom homework: R-help is not intended for these. " On Tue, May 26, 2009 at 11:37 AM, abel1682 <lizard_1682 at yahoo.it> wrote:> > Hi to all...i'm a new R'user and i have to solve some exercies so i ask to > tou for an help... > > 1.) How i can demonstrate ?in R that ?the limit for x-->infinite of > (1+1/x)^x is equal to "e"? > 2.) if i have a vector of values how can i create a function that, applied > to my vector, give me "median", "mean", "Var" and "length" togheter? > 3.)Find the minimum of this function: > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?f(x)=(x-3)^4 > with the Newton method. > > 4.) Define a function that is able to calculate the geometric mean of a > seriation: > > Sorry for all these questions... > Thanks a lot!!!... > -- > View this message in context: http://www.nabble.com/Help-me...%21%21%21-tp23724167p23724167.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Mike Lawrence Graduate Student Department of Psychology Dalhousie University Looking to arrange a meeting? Check my public calendar: http://tr.im/mikes_public_calendar ~ Certainty is folly... I think. ~
Is this homework? If so, please read the posting guide and note the part about homework. Specifically, "Basic statistics and classroom homework: R-help is not intended for these." http://www.r-project.org/posting-guide.html abel1682 wrote:> Hi to all...i'm a new R'user and i have to solve some exercies so i ask to > tou for an help... > > 1.) How i can demonstrate in R that the limit for x-->infinite of > (1+1/x)^x is equal to "e"? > 2.) if i have a vector of values how can i create a function that, applied > to my vector, give me "median", "mean", "Var" and "length" togheter? > 3.)Find the minimum of this function: > f(x)=(x-3)^4 > with the Newton method. > > 4.) Define a function that is able to calculate the geometric mean of a > seriation: > > Sorry for all these questions... > Thanks a lot!!!...-- Kevin E. Thorpe Biostatistician/Trialist, Knowledge Translation Program Assistant Professor, Dalla Lana School of Public Health University of Toronto email: kevin.thorpe at utoronto.ca Tel: 416.864.5776 Fax: 416.864.6057
The bad news, as others have indicated, is that this list is not for homework. The good news is that all of this is extremely easy in R!!!> -----Original Message----- > From: r-help-bounces at r-project.org > [mailto:r-help-bounces at r-project.org] On Behalf Of abel1682 > Sent: Tuesday, May 26, 2009 10:37 AM > To: r-help at r-project.org > Subject: [R] Help me...!!! > > > Hi to all...i'm a new R'user and i have to solve some > exercies so i ask to tou for an help... > > 1.) How i can demonstrate in R that the limit for > x-->infinite of (1+1/x)^x is equal to "e"? > 2.) if i have a vector of values how can i create a function > that, applied to my vector, give me "median", "mean", "Var" > and "length" togheter? > 3.)Find the minimum of this function: > > f(x)=(x-3)^4 with the Newton method. > > 4.) Define a function that is able to calculate the geometric > mean of a > seriation: > > Sorry for all these questions... > Thanks a lot!!!... > -- > View this message in context: > http://www.nabble.com/Help-me...%21%21%21-tp23724167p23724167.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >
<quote>From: Doran, Harold <HDoran_at_air.org> Date: Tue, 26 May 2009 14:26:53 -0400 The bad news, as others have indicated, is that this list is not for homework. The good news is that all of this is extremely easy in R!!! > -----Original Message----- > From: r-help-bounces_at_r-project.org > [mailto:r-help-bounces_at_r-project.org] On Behalf Of abel1682 > Sent: Tuesday, May 26, 2009 10:37 AM > To: r-help_at_r-project.org > Subject: [R] Help me...!!! > > > Hi to all...i'm a new R'user and i have to solve some > exercies so i ask to tou for an help... > > 1.) How i can demonstrate in R that the limit for > x-->infinite of (1+1/x)^x is equal to "e"? </quote> Well, that's stretching the definition of "demonstrate" (to claim you can show this equality in R). IMHO you cannot show the value of an infinite sum in R, since that depends on theorems in calculus. You can show it's "close" but if I were the professor I'd not be happy with such a response. Students -- or the rest of us in GenPop -- who miss the difference there are just asking for disaster to strike. Carl