how to calla real positive minimum value (root) other than zero
1 view (last 30 days)
Show older comments
when i solve a large non linear equation i got roots of A,B,C are,...
A =
0
-32.114420044883060433715731509755
-6.2191877188613308076084617553285
19.66774009539869721678902582191
-19.70672892070797990233019691921
0.42628008317584826478351323905199
-0.42628008317584826478351323905199
19.70672892070797990233019691921
6.2191877188613308076084617553285
-19.66774009539869721678902582191
32.114420044883060433715731509755
56.045487558618814101737314566765*i - 46.234928624004490953000782023164
4.6889123919278069144496486059208*i + 75.880051758148945751881430196547
- 4.6889123919278069144496486059208*i - 75.880051758148945751881430196547
- 56.045487558618814101737314566769*i - 46.234928624004490953000782023164
46.234928624004490953000782023164 - 56.045487558618814101737314566765*i
- 55.842499709444820357789472430488*i - 45.22313283009320674391568674606
56.045487558618814101737314566769*i + 46.234928624004490953000782023164
- 16.820081627395829470602844839362*i - 24.882419975754283403894344069333
45.223132830093206743915686746061 - 55.842499709444820357789472430493*i
16.820081627395829470602844839362*i + 24.882419975754283403894344069333
4.6889123919278069144496486058124*i - 75.880051758148945751881430196511
16.820081627395829470602844839362*i - 24.882419975754283403894344069333
75.880051758148945751881430196511 - 4.6889123919278069144496486058124*i
55.842499709444820357789472430493*i - 45.223132830093206743915686746061
24.882419975754283403894344069333 - 16.820081627395829470602844839362*i
55.842499709444820357789472430488*i + 45.22313283009320674391568674606
B =
0
-34.562456035254454082492305248158
-15.030879881475851305732322575373
328.12776864623298242431444531374
316.54859887312419127310565600726
-645.36492088871617161617292532767
645.36492088871617161617292532767
-316.54859887312419127310565600726
15.030879881475851305732322575373
-328.12776864623298242431444531374
34.562456035254454082492305248158
- 494.29680810526754161217799538559*i - 313.59739854036642038970926061351
854.17016811324477123294877389631*i - 64.675909637167328280889312021307
64.675909637167328280889312021307 - 854.17016811324477123294877389631*i
494.296808105267541612177995389*i - 313.59739854036642038970926061361
494.29680810526754161217799538559*i + 313.59739854036642038970926061351
316.34923721123653640426006254079 - 483.63930194795472892903953239293*i
313.59739854036642038970926061361 - 494.296808105267541612177995389*i
- 9.4530033244944742526786540776203*i - 5.9621982700005100585118197560405
- 483.63930194795472892903953238941*i - 316.34923721123653640426006254149
9.4530033244944742526786540776203*i + 5.9621982700005100585118197560405
854.17016811324477123294877398355*i + 64.675909637167328280889311991216
9.4530033244944742526786540776203*i - 5.9621982700005100585118197560405
- 854.17016811324477123294877398355*i - 64.675909637167328280889311991216
483.63930194795472892903953238941*i + 316.34923721123653640426006254149
5.9621982700005100585118197560405 - 9.4530033244944742526786540776203*i
483.63930194795472892903953239293*i - 316.34923721123653640426006254079
C =
0
-997.37069361723337168911107301014
3221.4182495354501337466179875046
1466.8040256186026405847285681646
-1637.7159040725126654862108848131
-11.281635533356620018692052453346
11.281635533356620018692052453346
1637.7159040725126654862108848131
-3221.4182495354501337466179875046
-1466.8040256186026405847285681646
997.37069361723337168911107301014
2241.1484760586942373726195539704 - 175.57358168750690512258792842519*i
159.74492307174044721099541139145*i + 2716.8858090377773115694575136341
- 159.74492307174044721099541139145*i - 2716.8858090377773115694575136341
175.57358168750690512258792842519*i + 2241.1484760586942373726195539704
175.57358168750690512258792842519*i - 2241.1484760586942373726195539704
189.00174979114259671378760149215*i + 2177.8452601674895056427047397505
- 175.57358168750690512258792842519*i - 2241.1484760586942373726195539704
166.84540686129025281711811501254 - 352.99432022664107783983972667165*i
189.00174979114259671378760149215*i - 2177.8452601674895056427047397505
352.99432022664107783983972667165*i - 166.84540686129025281711811501254
159.74492307174044721099541139145*i - 2716.8858090377773115694575136341
352.99432022664107783983972667165*i + 166.84540686129025281711811501254
2716.8858090377773115694575136341 - 159.74492307174044721099541139145*i
2177.8452601674895056427047397505 - 189.00174979114259671378760149215*i
- 352.99432022664107783983972667165*i - 166.84540686129025281711811501254
- 189.00174979114259671378760149215*i - 2177.8452601674895056427047397505
how to pick areal positive root which is just greater than zero but minimum among positive values
0 Comments
Accepted Answer
More Answers (1)
Hari Kishore
on 5 Jun 2013
1 Comment
Walter Roberson
on 5 Jun 2013
dA = double(A);
[mindA, minidx] = min(dA(imag(dA)==0 & real(dA)>0));
wanted_root = A(minidx);
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!