[R] (no subject)
Rui Barradas
ru|pb@rr@d@@ @end|ng |rom @@po@pt
Sun Feb 3 15:21:52 CET 2019
Hello,
It is just a guess but I bet that what the OP means is
f <- function(x) {
2 + x^2 - x^3
}
uniroot(f, lower = 1, upper = 2)
To the OP: please learn how to write math in R *before* trying to solve
problems.
Hope this helps,
Rui Barradas
Às 16:07 de 02/02/2019, Berend Hasselman escreveu:
>
>
>> On 1 Feb 2019, at 12:41, malika yassa via R-help <r-help using r-project.org> wrote:
>>
>> Please, can you help me I have a equation to solve by newton method but I can not do it
>> for example
>>
>> f<-function(x) {
>>
>>
>> 2+X2-X3=0}
>> this equation have un solution in [1,2]
>> is there a function in R for solve it or i have to programme it
>>
>
> What is the relation between the function argument x and variables X2 and X3?
>
> As it stands this is incomprehensible. The function argument x is not used anywhere in the function body.
>
> Berend Hasselman
>
>>
>>
>>
>> [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> 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.
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
>
More information about the R-help
mailing list