[問題]請問matlab一元五次方程式的數值計算問題
想請問板上前輩
小弟我目前用matlab 解一元五次方程式的根
由於原來的方程式係數order差異很大
所以我利用 x = m*y+n 調整 m 和 n 的大小
將原本的方程式改為 p 其中 p 的係數表示如下
p = [a1 a2 a3 a4 a5 a6]
a1 = 1
a2 = -8.3253840053406076293640580843203
a3 = 27.724839697799051663196223671548
a4 = -46.164094636185041053977329283953
a5 = 38.433515602069739713897433830425
a6 = -12.799010656064368163242761511356
由 p 可以利用 roots(p) 解出方程式的根 r1~r5
r1 = 1.6633 + 0.0061i
r2 = 1.6633 - 0.0061i
r3 = 1.6668
r4 = 1.6660 + 0.0000i
r5 = 1.6660 + 0.0000i
由上可以知道有一實根在 1.6668 附近
所以我選擇 y = 1.665:0.00001:1.667; 的區間對 p 做圖
以下為結果
http://imgur.com/Mg775kN
可以發現在這範圍內的圖型上下震盪的很嚴重
但是我輸入的是很單純一元五次函數阿
造成這樣的原因是matlab本身的問題,還是函數精度的問題呢?
有勞各位前輩解惑,謝謝! <(_ _)>
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.233.148.147
→
10/22 09:48, , 1F
10/22 09:48, 1F
→
10/22 09:52, , 2F
10/22 09:52, 2F
→
10/22 09:53, , 3F
10/22 09:53, 3F
→
10/22 13:46, , 4F
10/22 13:46, 4F
→
10/22 13:46, , 5F
10/22 13:46, 5F
推
10/22 14:22, , 6F
10/22 14:22, 6F
→
10/22 14:22, , 7F
10/22 14:22, 7F
→
10/22 14:23, , 8F
10/22 14:23, 8F
→
10/22 14:54, , 9F
10/22 14:54, 9F
→
10/22 14:58, , 10F
10/22 14:58, 10F
→
10/22 14:59, , 11F
10/22 14:59, 11F
→
10/22 14:59, , 12F
10/22 14:59, 12F
→
10/22 15:08, , 13F
10/22 15:08, 13F
→
10/22 17:40, , 14F
10/22 17:40, 14F
→
10/22 17:42, , 15F
10/22 17:42, 15F
→
10/22 17:43, , 16F
10/22 17:43, 16F
推
10/22 17:46, , 17F
10/22 17:46, 17F
推
10/22 18:38, , 18F
10/22 18:38, 18F
→
10/22 18:38, , 19F
10/22 18:38, 19F
→
10/22 18:40, , 20F
10/22 18:40, 20F
→
10/22 18:41, , 21F
10/22 18:41, 21F
推
10/22 20:15, , 22F
10/22 20:15, 22F
→
10/22 20:44, , 23F
10/22 20:44, 23F
→
10/22 20:46, , 24F
10/22 20:46, 24F
→
10/22 22:24, , 25F
10/22 22:24, 25F
→
10/22 22:25, , 26F
10/22 22:25, 26F
推
10/22 23:41, , 27F
10/22 23:41, 27F
推
10/23 05:36, , 28F
10/23 05:36, 28F
推
10/23 08:15, , 29F
10/23 08:15, 29F
→
10/23 15:13, , 30F
10/23 15:13, 30F
→
10/23 15:14, , 31F
10/23 15:14, 31F
→
10/23 15:15, , 32F
10/23 15:15, 32F
推
10/23 15:50, , 33F
10/23 15:50, 33F
→
10/23 15:51, , 34F
10/23 15:51, 34F
→
10/23 15:52, , 35F
10/23 15:52, 35F
→
10/23 15:53, , 36F
10/23 15:53, 36F
推
10/23 18:03, , 37F
10/23 18:03, 37F
→
10/23 18:04, , 38F
10/23 18:04, 38F
→
10/23 18:05, , 39F
10/23 18:05, 39F
→
10/23 18:05, , 40F
10/23 18:05, 40F
→
10/23 18:05, , 41F
10/23 18:05, 41F
→
10/23 18:06, , 42F
10/23 18:06, 42F
→
10/23 18:06, , 43F
10/23 18:06, 43F
→
10/23 19:13, , 44F
10/23 19:13, 44F
推
10/23 22:58, , 45F
10/23 22:58, 45F
→
10/23 23:03, , 46F
10/23 23:03, 46F
→
10/23 23:04, , 47F
10/23 23:04, 47F
推
10/23 23:53, , 48F
10/23 23:53, 48F
→
10/23 23:53, , 49F
10/23 23:53, 49F
→
10/24 00:03, , 50F
10/24 00:03, 50F
推
10/28 13:04, , 51F
10/28 13:04, 51F
→
10/28 13:05, , 52F
10/28 13:05, 52F
→
10/28 13:06, , 53F
10/28 13:06, 53F
→
10/28 13:08, , 54F
10/28 13:08, 54F
推
10/28 13:10, , 55F
10/28 13:10, 55F
→
10/28 23:39, , 56F
10/28 23:39, 56F
→
10/28 23:40, , 57F
10/28 23:40, 57F
→
10/28 23:41, , 58F
10/28 23:41, 58F
MATLAB 近期熱門文章
PTT數位生活區 即時熱門文章