Cannot use solver function with poisscdf function
1 回表示 (過去 30 日間)
古いコメントを表示
syms xu
eqn = 0.05 == 1 - poisscdf(35,xu);
S = solve(eqn,xu)
I want to get the mean of the poisson distribution
However, when I run the matlab code above I get the below error
% Error using symengine
% Unable to prove 'xu < 0' literally. Use 'isAlways' to test the statement mathematically.
% Error in sym>logicalNaNIsFalse (line 1965)
% X = mupadmex('symobj::logicalNaNIsFalse',A.s,9);
% Error in sym/any (line 603)
% X = any(logicalNaNIsFalse(A));
% Error in poisscdf (line 45)
% if any(t(:))
0 件のコメント
回答 (1 件)
Torsten
2023 年 3 月 28 日
syms lambda n
eqn = exp(-lambda)*symsum(lambda^n/factorial(n),n,0,35) == 0.95;
solve(eqn,lambda)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Linear Algebra についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!