MathGroup Archive 2001

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: NSolve problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg27562] Re: [mg27541] NSolve problem
  • From: "Mark Harder" <harderm at ucs.orst.edu>
  • Date: Wed, 7 Mar 2001 04:08:01 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

    Aguirre,
    I had no such problems with my system, a Pentium III 266MHz, with 256MB
RAM, WinNT4.0.  It took less than 1min. for all 39 roots to be found
(although I did not test them).  I have attatched a notebook with my work (I
hope that works).
-mark harder


-----Original Message-----
From: AGUIRRE ESTIBALEZ Julian <mtpagesj at lg.ehu.es>
To: mathgroup at smc.vnet.net
Subject: [mg27562] [mg27541] NSolve problem


>Dear Group,
>
>The following computation involving finding the roots of a fairly
>"large" polynomial produces these effects on an iMac and a G4 running
>version 4.0.1.0
>
>* The kernel quits inmediatly
>* The Finder announces a type 2 or type 3 error
>* The computer hangs when quitting the frontend or restarting
>
>Before finding this problem, I have succefully solved thousands of similar
>equations. It is only this particular polynomial that produces this
>behaviour.
>
>poly =
>-379610373 +
>86108525122 x -
>9494410812843 x^2 +
>678033800618890 x^3 -
>35256637347077513 x^4 +
>1422785868781829532 x^5 -
>46379987523224586918 x^6 +
>1255110040775305672800 x^7 -
>28757943661703317295081 x^8 +
>566216540434141788242036 x^9 -
>9689635918166905495882851 x^10 +
>145419622102662664506687100 x^11 -
>1927635748101251322270468277 x^12 +
>22698320261526730755198553574 x^13 -
>238516616444064255358326013794 x^14 +
>2244844544457248209076495840902 x^15 -
>18977700242148569406030260324295 x^16 +
>144425378677250071307785407099514 x^17 -
>991008485501837267612722683739742 x^18 +
>6137577944863948353668001351379085 x^19 -
>34326439784958730341338590620522553 x^20 +
>173372427244970231511243462159022530 x^21 -
>790386259690389861011499411484727356 x^22 +
>3249150512801263497674821800877444750 x^23 -
>12025273387738045949766927419057733779 x^24 +
>39983125143255083338516711567117321554 x^25 -
>119092149085329990604796332906238009003 x^26 +
>316623088476789267411001214031813664920 x^27 -
>747964023676923486311300650584136934167 x^28 +
>1561105298212051506376403179694366814908 x^29 -
>2858356540987341736071315091852197268914 x^30 +
>4550488627005201158356170201262005359426 x^31 -
>6227602171254861022800069187941498698916 x^32 +
>7219321171308545919834020175759542752800 x^33 -
>6950806520792700621314978752272893634603 x^34 +
>5408604513390527799203743488644413596831 x^35 -
>3267975175700805824009526616434042764990 x^36 +
>1438562129094179414396635651311443079894 x^37 -
>410398690910611254706353259635396975000 x^38 +
>56948086997945333979944420780869994640 x^39;
>
>NSolve[poly==0,x,100]
>
>
>Julian Aguirre | Voice:  +34 946012659
>Departamento de Matematicas | Fax:    +34 944648500
>Universidad del Pais Vasco | Postal: Aptdo. 644, 48080 Bilbao, Spain
> | email:  mtpagesj at lg.ehu.es
>
>


(***********************************************************************

                    Mathematica-Compatible Notebook

This notebook can be used on any computer system with Mathematica 4.0,
MathReader 4.0, or any compatible application. The data for the notebook =

starts with the line containing stars above.

To get the notebook into a Mathematica-compatible application, do one of =

the following:

* Save the data starting with the line of stars above into a file
  with a name ending in .nb, then open the file inside the application;

* Copy the data starting with the line of stars above to the
  clipboard, then use the Paste menu command inside the application.

Data for notebooks contains only printable 7-bit ASCII and can be
sent directly in email or through ftp in text mode.  Newlines can be
CR, LF or CRLF (Unix, Macintosh or MS-DOS style).

NOTE: If you modify the data for this notebook not in a Mathematica-
compatible application, you must delete the line below containing the
word CacheID, otherwise Mathematica-compatible applications may try to
use invalid cache data.

For more information on notebooks and Mathematica-compatible
applications, contact Wolfram Research:
  web: http://www.wolfram.com
  email: info at wolfram.com
  phone: +1-217-398-0700 (U.S.)

Notebook reader applications are available free of charge from
Wolfram Research.
***********************************************************************)

(*CacheID: 232*)


(*NotebookFileLineBreakTest
NotebookFileLineBreakTest*)
(*NotebookOptionsPosition[     14932,        361]*)
(*NotebookOutlinePosition[     15585,        384]*)
(*  CellTagsIndexPosition[     15541,        380]*)
(*WindowFrame->Normal*)



Notebook[{
Cell[BoxData[
    StyleBox[
      RowBox[{
        RowBox[{
          RowBox[{"poly", " ", "=", "\n",
            RowBox[{
              RowBox[{"-", "379610373"}], " ", "+", "\n",
              RowBox[{"86108525122", " ", "x"}], " ", "-", "\n",
              RowBox[{"9494410812843", " ",
                RowBox[{"x", "^", "2"}]}], " ", "+", " ", "\n",
              RowBox[{"678033800618890", " ",
                RowBox[{"x", "^", "3"}]}], " ", "-", "\n",
              RowBox[{"35256637347077513", " ",
                RowBox[{"x", "^", "4"}]}], " ", "+", " ", "\n",
              RowBox[{"1422785868781829532", " ",
                RowBox[{"x", "^", "5"}]}], " ", "-", "\n",
              RowBox[{"46379987523224586918", " ",
                RowBox[{"x", "^", "6"}]}], " ", "+", " ", "\n",
              RowBox[{"1255110040775305672800", " ",
                RowBox[{"x", "^", "7"}]}], " ", "-", "\n",
              RowBox[{"28757943661703317295081", " ",
                RowBox[{"x", "^", "8"}]}], " ", "+", " ", "\n",
              RowBox[{"566216540434141788242036", " ",
                RowBox[{"x", "^", "9"}]}], " ", "-", "\n",
              RowBox[{"9689635918166905495882851", " ",
                RowBox[{"x", "^", "10"}]}], " ", "+", " ", "\n",
              RowBox[{"145419622102662664506687100", " ",
                RowBox[{"x", "^", "11"}]}], " ", "-", " ", "\n",
              RowBox[{"1927635748101251322270468277", " ",
                RowBox[{"x", "^", "12"}]}], " ", "+", " ", "\n",
              RowBox[{"22698320261526730755198553574", " ",
                RowBox[{"x", "^", "13"}]}], " ", "-", " ", "\n",
              RowBox[{"238516616444064255358326013794", " ",
                RowBox[{"x", "^", "14"}]}], " ", "+", " ", "\n",
              RowBox[{"2244844544457248209076495840902", " ",
                RowBox[{"x", "^", "15"}]}], " ", "-", " ", "\n",
              RowBox[{"18977700242148569406030260324295", " ",
                RowBox[{"x", "^", "16"}]}], " ", "+", " ", "\n",
              RowBox[{"144425378677250071307785407099514", " ",
                RowBox[{"x", "^", "17"}]}], " ", "-", " ", "\n",
              RowBox[{"991008485501837267612722683739742", " ",
                RowBox[{"x", "^", "18"}]}], " ", "+", " ", "\n",
              RowBox[{"6137577944863948353668001351379085", " ",
                RowBox[{"x", "^", "19"}]}], " ", "-", " ", "\n",
              RowBox[{"34326439784958730341338590620522553", " ",
                RowBox[{"x", "^", "20"}]}], " ", "+", " ", "\n",
              RowBox[{"173372427244970231511243462159022530", " ",
                RowBox[{"x", "^", "21"}]}], " ", "-", " ", "\n",
              RowBox[{"790386259690389861011499411484727356", " ",
                RowBox[{"x", "^", "22"}]}], " ", "+", " ", "\n",
              RowBox[{"3249150512801263497674821800877444750", " ",
                RowBox[{"x", "^", "23"}]}], " ", "-", " ", "\n",
              RowBox[{"12025273387738045949766927419057733779", " ",
                RowBox[{"x", "^", "24"}]}], " ", "+", " ", "\n",
              RowBox[{"39983125143255083338516711567117321554", " ",
                RowBox[{"x", "^", "25"}]}], " ", "-", " ", "\n",
              RowBox[{"119092149085329990604796332906238009003", " ",
                RowBox[{"x", "^", "26"}]}], " ", "+", " ", "\n",
              RowBox[{"316623088476789267411001214031813664920", " ",
                RowBox[{"x", "^", "27"}]}], " ", "-", " ", "\n",
              RowBox[{"747964023676923486311300650584136934167", " ",
                RowBox[{"x", "^", "28"}]}], " ", "+", " ", "\n",
              RowBox[{"1561105298212051506376403179694366814908", " ",
                RowBox[{"x", "^", "29"}]}], " ", "-", " ", "\n",
              RowBox[{"2858356540987341736071315091852197268914", " ",
                RowBox[{"x", "^", "30"}]}], " ", "+", " ", "\n",
              RowBox[{"4550488627005201158356170201262005359426", " ",
                RowBox[{"x", "^", "31"}]}], " ", "-", " ", "\n",
              RowBox[{"6227602171254861022800069187941498698916", " ",
                RowBox[{"x", "^", "32"}]}], " ", "+", " ", "\n",
              RowBox[{"7219321171308545919834020175759542752800", " ",
                RowBox[{"x", "^", "33"}]}], " ", "-", " ", "\n",
              RowBox[{"6950806520792700621314978752272893634603", " ",
                RowBox[{"x", "^", "34"}]}], " ", "+", " ", "\n",
              RowBox[{"5408604513390527799203743488644413596831", " ",
                RowBox[{"x", "^", "35"}]}], " ", "-", " ", "\n",
              RowBox[{"3267975175700805824009526616434042764990", " ",
                RowBox[{"x", "^", "36"}]}], " ", "+", " ", "\n",
              RowBox[{"1438562129094179414396635651311443079894", " ",
                RowBox[{"x", "^", "37"}]}], " ", "-", " ", "\n",
              RowBox[{"410398690910611254706353259635396975000", " ",
                RowBox[{"x", "^", "38"}]}], " ", "+", " ", "\n",
              RowBox[{"56948086997945333979944420780869994640", " ",
                RowBox[{"x", "^", "39"}]}]}]}], ";"}], "\n"}],
      FormatType->StandardForm]], "Input"],

Cell[CellGroupData[{

Cell[BoxData[{
    RowBox[{
      RowBox[{"rts", "=",
        RowBox[{"NSolve", "[",
          RowBox[{
            RowBox[{"poly", "==", "0"}], ",", "x", ",", "100"}], =
"]"}]}],
      ";"}], "\[IndentingNewLine]",
    RowBox[{"Length", "[", "rts", " ", "]"}]}], "Input"],

Cell[BoxData["39"], "Output"]
}, Open  ]],

Cell[CellGroupData[{

Cell[BoxData["rts"], "Input"],

Cell[BoxData[
    RowBox[{"{",
      RowBox[{
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.091708830141284216611300718350396795152370833056116265683402868\
6217954689630780158510554584`79.4698"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.110497469058054325092287841434981125469708377488889165846558334\
77070922998412232621102`71.2472"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.110587342081557915999532833886805525271669765984244189026567853\
15788723499636124221301`71.2121"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.115937539251100542547857966971163840794030723824699324332288925\
22059338779093897548593`71.1587"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.123658345565915838882528980561550068808994564187913904898806838\
636717562277657433`68.9356"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.129326553721720721248783637453913948577991370403928172006855569\
16110670400732`65.9267"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.129623393195697346640233877089761576169696424769835174081807174\
25516581293739`65.8152"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.131966791292086365494673652979170942316573055180464320881054735\
78289936556551`66.1612"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.134968756133976001141562582421779775519895850152474419115073007\
21227154184849`66.2466"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.142384485487523867593566983056838914299871146144554121275026301\
77583796893338`65.9723"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.159148888429785835189089939001038462279315532313724212083476076\
53637944`60.9401"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.159627024265646407239012837246778727769472515106414029274483028\
495084976`60.7087"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.161666998622240601891268400502278588967172648997426826915947605\
975706561`60.7176"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.164292349115621994898326415910406701496313504376032907362257342\
252303159`60.6454"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.167952005970800820118947612921294236398084449758394772593657047\
188740105`60.6532"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{"x", "\[Rule]",
            RowBox[{
            =
"0.170060726872023486957047438270663508567810237570337610244887303\
23985368496193`63.5492", "-",
              RowBox[{
              =
"0.0127121635410859603621140261609669867746961410456332521433992\
203318337763489`62.4228", " ", "\[ImaginaryI]"}]}]}], "}"}], ",",
        RowBox[{"{",
          RowBox[{"x", "\[Rule]",
            RowBox[{
            =
"0.170060726872023486957047438270663508567810237570337610244887303\
23985368496193`63.5492", "+",
              RowBox[{
              =
"0.0127121635410859603621140261609669867746961410456332521433992\
203318337763489`62.4228", " ", "\[ImaginaryI]"}]}]}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.174522637519047952742067171873188120212328388618696577820437568\
183418222`60.0496"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.175724781473059162723625947464718509615370710078136700891260775\
818762733`60.0433"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.182130535349906978804974944765415583459081556837835312305542298\
506920308`60.5815"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
           
            =
"0.184669993949979888721991857521169925271301453716310807842949773\
565739558`60.8241"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.212760625910267827933019807598815566783115365752333599454215913\
939970756`57.2766"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.215373103095243511420375402532152588013677461872235682160678831\
4252`55.5903"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.216672897784030317088908597450304446860357090067251723971398333\
2313`54.8221"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.218134669252899425515235472846711449870423223808744965243836921\
6143`53.908"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.218432999257994517601973508971288468999765437302358358701733500\
2432`53.9092"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.221397543575867081300757304697279582709235111224076479672014592\
8691`54.2709"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.222803049459892930422407807122551972563502316689116433184817022\
936`53.7096"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.223217215375501347757234838823699051224691685835274773856885903\
8666`53.7549"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.224338490909396468397709836756996085040551923811386823484814564\
4157`54.6536"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.232127352988214365330104575984628510900442393611847785080585624\
2405`55.7456"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.233196368369635661484924117905618780178893424393481060891687773\
3588`55.4953"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
           
            =
"0.234305033251555566527448490903545000806716959113460016221064321\
7499`55.7403"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.237337808228307287940010507980096970007758787728058824666745969\
235`56.3243"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.239265413834842373962543501469803561103794404281515077112353293\
0825`56.3233"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.240929127066871848657262193806501482251780270401111190508636402\
8029`55.8535"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.241263720578250070329489565594130079378632520596937724962245807\
3888`55.8479"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.242060866936104169249726624956376481952667471059117766820208768\
2542`56.4047"}], "}"}], ",",
        RowBox[{"{",
          RowBox[{
          "x", "\[Rule]",
            =
"0.242407961832379117068479421985280744433089303706552712753375096\
038706626`56.8931"}], "}"}]}], "}"}]], "Output"]
}, Closed]]
},
FrontEndVersion->"4.0 for Microsoft Windows",
ScreenRectangle->{{0, 1024}, {0, 695}},
WindowSize->{643, 537},
WindowMargins->{{6, Automatic}, {Automatic, 0}}
]


(***********************************************************************
Cached data follows.  If you edit this Notebook file directly, not using
Mathematica, you must remove the line containing CacheID at the top of
the file.  The cache data will then be recreated when you save this file 

from within Mathematica.
***********************************************************************)

(*CellTagsOutline
CellTagsIndex->{}
*)

(*CellTagsIndex
CellTagsIndex->{}
*)

(*NotebookFileOutline
Notebook[{
Cell[1717, 49, 5213, 84, 850, "Input"],

Cell[CellGroupData[{
Cell[6955, 137, 274, 7, 50, "Input"],
Cell[7232, 146, 29, 0, 29, "Output"]
}, Open  ]],

Cell[CellGroupData[{
Cell[7298, 151, 29, 0, 30, "Input"],
Cell[7330, 153, 7586, 205, 789, "Output"]
}, Closed]]
}
]
*)




(***********************************************************************
End of Mathematica Notebook file.
***********************************************************************)



  • Prev by Date: METMBS'01 CALL FOR PAPERS AND TECHNICAL SESSION PROPOSALS
  • Next by Date: Thesis
  • Previous by thread: RE: NSolve problem
  • Next by thread: Re: NSolve problem