Displaying 2 results from an estimated 2 matches for "sffarooqi".
2012 Oct 26
3
summation sign
Hi all,
I have a very quick question on how to use the summation sign in R for the
function.
Here?s a basic example: the function is sum(i=1 to 5)log(1-xi^2)
Id be grateful if someone knows how to do this without writing it out 5
times - I am looking sth along the lines of the following:
computeR <- function(x)
{
return (-sum(log(1-x^2))
}^
thank you vm in advance!
--
View this
2012 Oct 14
3
how to show iterations
Hi,
I am new to R, and am working on some optimization problems - I was
wondering if there was a way that I could show all the iterations in R -i.e.
showing for each iteration, what the iteration is, how much the function is,
what the norm of the gradient would be...
Any help is greatly appreciated!
thank you!!
--
View this message in context: