Re: [R] Summation sign

2013-08-27 Thread Suzen, Mehmet
Hello Sebastian, I think you may need to use tensorA package. You can define different indices and use Einstein or Reimann summation convention. Grüße, Mehmet On 23 August 2013 15:14, Sebastian Hersberger wrote: > Hi all > > I have a short question relating to the usage of the summation sign in

[R] Summation sign

2013-08-23 Thread Sebas
Hi all I have a short question relating to the usage of the summation sign in R. Let's define A and B as two kxk matrices (which are constant). C^(n) = Σ_(j=1)^n [(Σ_(i=1)^(j-1) A^i ) B (Σ_(i=1)^(j-1) A^i)’ ] My goal is to calculate the matrix C for the periods from 1 to 200 (n=1-200). How has

[R] Summation sign

2013-08-23 Thread Sebastian Hersberger
Hi all I have a short question relating to the usage of the summation sign in R. Let's define A and B as two kxk matrices (which are constant). C^(n) = Ó_(j=1)^n [(Ó_(i=1)^(j-1) A^i ) B (Ó_(i=1)^(j-1) A^i)’ ] My goal is to calculate the matrix C for the periods from 1 to 200 (n=1-200). How has

Re: [R] summation sign

2012-10-28 Thread arun
.1451830 0.7440195 0.6306908 0.8084772 A.K. - Original Message - From: Sara Farooqi To: arun Cc: Sent: Sunday, October 28, 2012 2:39 AM Subject: Re: [R] summation sign hi Arun, thank you for  email. No I want to repeat the sum 5 times. So i is 5 and hence there are 5 x-variables. Eac

Re: [R] summation sign

2012-10-27 Thread sffarooqi
thank you vm for the reply! Just to make things a little more complicated --does the equation hold even if the values of x are unknown? More specifically perhaps we can still refer to the made up example Sum(n equal 5)log(1-xi^2) In the problem I am working on, I am writing a modified Newton Opt

Re: [R] summation sign

2012-10-27 Thread peter dalgaard
On Oct 27, 2012, at 01:34 , sffarooqi wrote: > 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

[R] summation sign

2012-10-26 Thread sffarooqi
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