84:
74:
53:
165:
22:
348:
742:
which happens as a result of tiny errors in coefficients if the roots are very close together, even with exact methods of solution, and in this case the imaginary parts are smaller than the errors in the real parts, so I'm doubtful that the presence of nonzero imaginary parts is evidence of instability.
756:
There are two kinds of unstabilities that must not be confused here: Unstabilities that result from approximations made during the computation and unstabilities that result from approximations of input coefficients. The former unstabilities result generally from subtraction of two close numbers, and
741:
that the estimates are not that bad, really, as far as absolute error is concerned. However, whether that means that the numerical stability is not too bad, or just that the example given isn't a very good one to illustrate the point, I don't know. As for producing complex roots, that is something
684:
The problem is that your coefficients are wrong. The correct coefficients of your polynomial are : 1 x^4 -8.006 x^3 + 24.036011 x^2 -32.072044006 x + 16.048044012. Because your roots are so close to each other, rounding the coefficients produce the wrong results, which are technically not that far
629:
the
Ferrari's method and the one based on the depressed quartic are both known to be numerically unstable (e.g. see Refs. and ). For example, consider the polynomial: 16.048 - 32.072 x + 24.036 x^2 - 8.006 x^3 + x^4 whose roots are 2.003, 2.002, 2.001 and 2. By using the present method you will
943:) have a better stability and are more efficient. Indeed, for applying algebraic methods, one needs an application of Newton's method for each square or cube root appearing in the formula. This is one reason for not mentioning this work in Knowledge. A stronger reason is that it is
924:
840:
732:
The whole point of the concept of numerical instability is that the results are highly sensitive to small numerical inaccuracies such as rounding of coefficients, so that is not a valid criticism of the original post by
661:
S. L. Shmakov, A universal method of solving quartic equations. Int. J. Pure Appl. Math. 71, 2 251–259 (2011) A.Orellana and C. De
Michele ACM Transactions on Mathematical Software, Vol. 46, No. 2, 20 (2020),
699:
I you plot your equation (with the rounded coefficients), you will find that 2.006000, 2.000071 and 1.999857 are precisely where the curve meets with the Y axis. So the estimates are not that bad after all.
446:
140:
580:
I have tested the formula on several thousand cases, and it worked correctly for all of them. I think, therefore, you must have made a mistake of some kind. I agree, therefore, with
316:
280:
359:
540:
513:
602:
Apologies. Please delete my comment. It seems to have been caused by rounding errors. And yes, I did mean “discriminant,” not “determinant.” Thank you for catching that!
714:
I tried the same equation at wolframalpha.com, and without rounding, it finds the right roots, but the slightest rounding, even by 1 digit, will produce complex roots.
486:
466:
984:
468:
is the determinant,” but I found (at least a few) examples where this equality doesn’t hold. Is there something wrong with the formulas given to compute
130:
845:
764:
106:
979:
325:
341:
584:'s suggestion that you provide your examples, so that we can check them. (Incidentally, you mean "discriminant", not "determinant".)
929:
is an example of he latter unstabilities, where a very small change of one coefficient changes dramatically the nature of the roots.
97:
58:
386:
178:
935:
Nevertheless, the discussion on numerical stability of
Ferrari's method and its variants is totally useless since the general
33:
208:
932:
As
Ferrari's method contains additions and subtractions, it is normal that it is unstable when applied numerically.
645:
for a thorough discussion and other tests see Ref. . For a numerically stable and efficient quartic solver, see
187:
926:
329:
368:
674:
936:
685:
from the real ones... But try again with the full precision of coefficient values, and see what it does.
609:
547:
39:
236:
83:
734:
670:
285:
355:
321:
253:
21:
232:
105:
on
Knowledge. If you would like to participate, please visit the project page, where you can join
956:
758:
562:
363:
193:
89:
518:
491:
73:
52:
940:
719:
705:
690:
605:
575:
543:
471:
451:
189:
164:
666:
C. De
Michele, ACM Transactions on Mathematical Software, Vol. 48, No. 46, pp 1-3 (2022),
973:
952:
948:
747:
589:
581:
558:
944:
738:
715:
701:
686:
102:
79:
919:{\displaystyle {\frac {2c}{-b-\operatorname {sign} (b){\sqrt {b^{2}-4ac}}}}.}
835:{\displaystyle {\frac {-b-\operatorname {sign} (b){\sqrt {b^{2}-4ac}}}{2a}}}
191:
646:
960:
751:
723:
709:
694:
678:
613:
593:
566:
551:
373:
333:
240:
743:
585:
557:
Please, provide your examples for allowing to search where is the error.
757:
can sometimes be avoided by changing the algorithm. For example, when a
347:
761:
has a root that is close to zero, the roots are better approximated as
650:
667:
663:
194:
158:
15:
354:
An editor has asked for a discussion to address the redirect
346:
441:{\displaystyle \Delta _{1}^{2}-4\Delta _{0}^{3}=-27\Delta }
630:
obtain the following very bad estimates of quartic roots:
848:
767:
521:
494:
474:
454:
389:
288:
256:
246:\Delta _subscript^superscript combinations confusing
101:, a collaborative effort to improve the coverage of
223:This article is virtually completely about quartic
918:
834:
534:
507:
480:
460:
440:
310:
274:
649:. Refs. and can be downloaded from my website
318:to distinguish exponents from super scripts.
202:This page has archives. Sections older than
8:
319:
47:
890:
884:
849:
847:
801:
795:
768:
766:
526:
520:
499:
493:
473:
453:
420:
415:
399:
394:
388:
302:
295:
290:
287:
266:
261:
255:
647:https://github.com/cridemichel/quarticpp
947:(no secondary source), and a probable
49:
19:
212:when more than 5 sections are present.
7:
95:This article is within the scope of
651:https://www.roma1.infn.it/~demichel
622:this method is numerically unstable
38:It is of interest to the following
523:
496:
475:
455:
435:
412:
391:
292:
258:
14:
985:Low-priority mathematics articles
340:"Biquadratic function" listed at
311:{\displaystyle {\Delta _{0}}^{2}}
206:may be automatically archived by
115:Knowledge:WikiProject Mathematics
163:
118:Template:WikiProject Mathematics
82:
72:
51:
20:
668:https://doi.org/10.1145/3564270
664:https://doi.org/10.1145/3386241
275:{\displaystyle \Delta _{0}^{2}}
135:This article has been rated as
881:
875:
792:
786:
1:
737:. Nevertheless, I agree with
109:and see a list of open tasks.
980:C-Class mathematics articles
961:17:50, 5 January 2024 (UTC)
752:14:11, 5 January 2024 (UTC)
724:14:01, 5 January 2024 (UTC)
710:13:38, 5 January 2024 (UTC)
695:13:26, 5 January 2024 (UTC)
679:11:31, 5 January 2024 (UTC)
535:{\displaystyle \Delta _{1}}
508:{\displaystyle \Delta _{0}}
383:The article mentions that “
334:17:44, 3 October 2019 (UTC)
1001:
250:I would suggest to change
614:23:42, 12 July 2023 (UTC)
594:15:33, 12 July 2023 (UTC)
567:11:03, 12 July 2023 (UTC)
552:08:21, 12 July 2023 (UTC)
374:18:40, 9 April 2020 (UTC)
134:
67:
46:
358:. Please participate in
342:Redirects for discussion
241:20:27, 24 May 2017 (UTC)
227:. Why then is it called
141:project's priority scale
937:root-finding algorithms
481:{\displaystyle \Delta }
461:{\displaystyle \Delta }
362:if you wish to do so.
360:the redirect discussion
98:WikiProject Mathematics
927:Wilkinson's polynomial
920:
836:
642:1.999857 - 0.000000*I
639:2.000071 - 0.000126*I
636:2.000071 + 0.000126*I
633:2.006000 + 0.000000*I
536:
509:
482:
462:
442:
351:
312:
276:
209:Lowercase sigmabot III
28:This article is rated
921:
837:
658:Cristiano De Michele
537:
510:
483:
463:
443:
350:
313:
277:
846:
765:
519:
492:
472:
452:
387:
356:Biquadratic function
286:
254:
121:mathematics articles
425:
404:
271:
916:
832:
759:quadratic equation
532:
505:
478:
458:
438:
411:
390:
352:
308:
272:
257:
90:Mathematics portal
34:content assessment
911:
908:
830:
819:
336:
324:comment added by
229:quartic functions
216:
215:
155:
154:
151:
150:
147:
146:
992:
925:
923:
922:
917:
912:
910:
909:
895:
894:
885:
858:
850:
841:
839:
838:
833:
831:
829:
821:
820:
806:
805:
796:
769:
579:
541:
539:
538:
533:
531:
530:
514:
512:
511:
506:
504:
503:
487:
485:
484:
479:
467:
465:
464:
459:
447:
445:
444:
439:
424:
419:
403:
398:
317:
315:
314:
309:
307:
306:
301:
300:
299:
281:
279:
278:
273:
270:
265:
211:
195:
167:
159:
123:
122:
119:
116:
113:
92:
87:
86:
76:
69:
68:
63:
55:
48:
31:
25:
24:
16:
1000:
999:
995:
994:
993:
991:
990:
989:
970:
969:
941:Newton's method
939:(in particular
886:
859:
851:
844:
843:
822:
797:
770:
763:
762:
624:
573:
522:
517:
516:
495:
490:
489:
470:
469:
450:
449:
385:
384:
381:
345:
291:
289:
284:
283:
252:
251:
248:
221:
207:
196:
190:
172:
120:
117:
114:
111:
110:
88:
81:
61:
32:on Knowledge's
29:
12:
11:
5:
998:
996:
988:
987:
982:
972:
971:
968:
967:
966:
965:
964:
963:
933:
930:
915:
907:
904:
901:
898:
893:
889:
883:
880:
877:
874:
871:
868:
865:
862:
857:
854:
828:
825:
818:
815:
812:
809:
804:
800:
794:
791:
788:
785:
782:
779:
776:
773:
727:
726:
712:
697:
655:best regards,
623:
620:
619:
618:
617:
616:
603:
597:
596:
570:
569:
529:
525:
502:
498:
477:
457:
437:
434:
431:
428:
423:
418:
414:
410:
407:
402:
397:
393:
380:
377:
344:
338:
305:
298:
294:
269:
264:
260:
247:
244:
220:
217:
214:
213:
201:
198:
197:
192:
188:
186:
183:
182:
174:
173:
168:
162:
153:
152:
149:
148:
145:
144:
133:
127:
126:
124:
107:the discussion
94:
93:
77:
65:
64:
56:
44:
43:
37:
26:
13:
10:
9:
6:
4:
3:
2:
997:
986:
983:
981:
978:
977:
975:
962:
958:
954:
950:
946:
942:
938:
934:
931:
928:
913:
905:
902:
899:
896:
891:
887:
878:
872:
869:
866:
863:
860:
855:
852:
826:
823:
816:
813:
810:
807:
802:
798:
789:
783:
780:
777:
774:
771:
760:
755:
754:
753:
749:
745:
740:
736:
731:
730:
729:
728:
725:
721:
717:
713:
711:
707:
703:
698:
696:
692:
688:
683:
682:
681:
680:
676:
672:
669:
665:
659:
656:
653:
652:
648:
643:
640:
637:
634:
631:
627:
621:
615:
611:
607:
604:
601:
600:
599:
598:
595:
591:
587:
583:
577:
572:
571:
568:
564:
560:
556:
555:
554:
553:
549:
545:
527:
500:
432:
429:
426:
421:
416:
408:
405:
400:
395:
378:
376:
375:
372:
371:
367:
366:
361:
357:
349:
343:
339:
337:
335:
331:
327:
326:82.83.141.243
323:
303:
296:
267:
262:
245:
243:
242:
238:
234:
230:
226:
218:
210:
205:
200:
199:
185:
184:
181:
180:
176:
175:
171:
166:
161:
160:
157:
142:
138:
132:
129:
128:
125:
108:
104:
100:
99:
91:
85:
80:
78:
75:
71:
70:
66:
60:
57:
54:
50:
45:
41:
35:
27:
23:
18:
17:
660:
657:
654:
644:
641:
638:
635:
632:
628:
625:
382:
369:
364:
353:
320:— Preceding
249:
228:
224:
222:
203:
177:
169:
156:
137:Low-priority
136:
96:
62:Low‑priority
40:WikiProjects
671:Cridemichel
606:CielProfond
576:CielProfond
544:CielProfond
112:Mathematics
103:mathematics
59:Mathematics
974:Categories
735:Cristiano
379:Not equal
225:equations
953:D.Lazard
582:D.Lazard
559:D.Lazard
448:, where
365:Spinning
322:unsigned
204:365 days
170:Archives
233:Digamma
139:on the
30:C-class
949:WP:COI
739:Dhrm77
716:Dhrm77
702:Dhrm77
687:Dhrm77
515:, and
36:scale.
945:WP:OR
370:Spark
219:Title
957:talk
870:sign
842:and
781:sign
748:talk
720:talk
706:talk
691:talk
675:talk
626:Hi,
610:talk
590:talk
563:talk
548:talk
330:talk
237:talk
231:? --
744:JBW
586:JBW
282:to
131:Low
976::
959:)
951:.
897:−
873:
867:−
861:−
808:−
784:
778:−
772:−
750:)
722:)
708:)
693:)
677:)
612:)
592:)
565:)
550:)
542:?
524:Δ
497:Δ
488:,
476:Δ
456:Δ
436:Δ
433:27
430:−
413:Δ
406:−
392:Δ
332:)
293:Δ
259:Δ
239:)
955:(
914:.
906:c
903:a
900:4
892:2
888:b
882:)
879:b
876:(
864:b
856:c
853:2
827:a
824:2
817:c
814:a
811:4
803:2
799:b
793:)
790:b
787:(
775:b
746:(
718:(
704:(
689:(
673:(
608:(
588:(
578::
574:@
561:(
546:(
528:1
501:0
427:=
422:3
417:0
409:4
401:2
396:1
328:(
304:2
297:0
268:2
263:0
235:(
179:1
143:.
42::
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.