Community Profile

# Songbai Jin

Last seen: 4 mois il y a Actif depuis 2022

#### Content Feed

Afficher par

Question

how can I calculate A^n when n is a symbolic positive integer?
A = [1/2,1/2,0,0;1/2,0,1/2,0;1/2,0,0,1/2;0,0,0,1] syms n positive integer A^n This would not work because it got stuck and co...

5 mois il y a | 2 réponses | 0

### 2

réponses

Question

Problems when 'mod' quite big number (like factorial).
mod(factorial(22),10000) mod(factorial(23),10000) The answers should both be 0. However, the answers are 0 and 2864 seperately...

environ un an il y a | 1 réponse | 0

### 1

réponse

Question

What is the meaning of 'internal sorting rules' in 'sort' in Symbolic Math Toolbox?
A = [factorial(sym(1001)), exp(sym(1)) + factorial(sym(1000))] [r,s] = sort(A) Obviously, A(1) > A(2). However, the output i...

environ un an il y a | 1 réponse | 0

### 1

réponse

Question

Problems when sort 'sym' variables and 'vpa' double-precision number.
% this is my data X = [-7.82 -4.58 -3.97 -6.68 3.16 2.71 4.36 -2.19 2.09 6.72 0.88 2.80 -8.64 3.06 3.50...

environ un an il y a | 1 réponse | 0

réponse