Community Profile

photo

Songbai Jin


Last seen: 1 year ago Active since 2022

Followers: 0   Following: 0

Statistics

  • Thankful Level 2

View badges

Feeds

View by

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...

1 year ago | 2 answers | 0

2

answers

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...

2 years ago | 1 answer | 0

1

answer

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...

2 years ago | 1 answer | 0

1

answer

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...

2 years ago | 1 answer | 0

1

answer