search for: nth_root

Displaying 2 results from an estimated 2 matches for "nth_root".

Did you mean: new_root
2010 Jun 18
1
12th Root of a Square (Transition) Matrix
...he transition matrix L <- diag(eigen(trans_matrix)$values) # calculate inverse of matrix of eigenvectors of the transition matrix X_inv <- solve(X) # calculate the 12th root of the eigenvalues in the diagonal matrix L_star <- L ^ (1/12) # calculate the 12th root of the transition matrix nth_root <- X_inv %*% L_star %*% X ------ END PASTE ------ References: [1] Hull, John. Risk Management and Financial Institutions. Prentice Hall, 2007.
2009 Jul 18
7
(-8)^(1/3) == NaN?
Why does the expression "(-8)^(1/3)" return NaN, instead of -2? This is not answered by http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-are-powers-of-negative-numbers-wrong_003f Thanks, Dave [[alternative HTML version deleted]]