Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
positive minimum real root other than zero

Subject: positive minimum real root other than zero

From: Hari Kishore

Date: 5 Jun, 2013 04:30:10

Message: 1 of 3

when i solve a large non linear equation i got values for A,B,C as...
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 A ,MINIMUM POSITIVE REAL VALUE OTHER THAN ZERO..

Subject: positive minimum real root other than zero

From: Nasser M. Abbasi

Date: 5 Jun, 2013 06:25:19

Message: 2 of 3

On 6/4/2013 11:30 PM, Hari Kishore wrote:
> when i solve a large non linear equation i got values for A,B,C as...
...
>
> HOW TO PICK A ,MINIMUM POSITIVE REAL VALUE OTHER THAN ZERO..
>

No need to scream.

May be:

-----------------------
A(A==0)=[]; %remove the zero's (or use abs(eps) method to check)
min(A(imag(A)==0)) % min of real values in vector
----------------------

ans =

   -32.1144

--Nasser

Subject: positive minimum real root other than zero

From: Nasser M. Abbasi

Date: 5 Jun, 2013 06:34:38

Message: 3 of 3

On 6/5/2013 1:25 AM, Nasser M. Abbasi wrote:
> On 6/4/2013 11:30 PM, Hari Kishore wrote:
>> when i solve a large non linear equation i got values for A,B,C as...
> ...
>>
>> HOW TO PICK A ,MINIMUM POSITIVE REAL VALUE OTHER THAN ZERO..
>>
>
> No need to scream.
>
> May be:
>
> -----------------------
> A(A==0)=[]; %remove the zero's (or use abs(eps) method to check)
> min(A(imag(A)==0)) % min of real values in vector
> ----------------------
>
> ans =
>
> -32.1144
>

Just noticed the word 'POSITIVE' in above (hard to read UPPERCASE)

So, try this

--------------------------
min(A(A(imag(A)==0)>0))
---------------------------

     0.4263

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us