[問題]數值顯示問題 已回收
clear;clc;
a=1348801619558365
b=1294485694716222720
a1=vpa(a,300)
b1=vpa(b,300)
if a1>b1
d=0;
else
g=0;
end
由於我的數據大到10的25次方甚至會更大
而我需要的是精算 matlab預設 都用指數表示都把數給砍了
經過vpa後雖然保留了所有位數 可是我在寫副程式的時候 判斷式不給我過
錯誤訊息如下:
??? Undefined function or method 'gt' for input arguments of type 'sym'.
會用到精算主要是 我要求出最大公因數
萬分感謝!!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.120.90.246