How to convert a very big rational number obtained into decimal form? Please See : format short is not making any difference

조회 수: 4 (최근 30일)
for i1 = 1 : max(l11,l12) s(i1) = 0 l13 = i1 for b = 1 : i1 if(l13 > l12) den(l13) = 0 end s(i1) = s(i1) + den(l13) * q(b) % l13 = l13 - 1 end if (i1 == ROMorder) break end end
Result obtained : s = [ 600000, -155160, -79517806820667188049/7036874417766400] - error part

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2015년 1월 2일
  댓글 수: 2
pooja
pooja 2015년 1월 4일
Thank you but when i convert this vector into a polynomial again the coefficients of the polynomial are in the form of rational numbers not in decimal. Ex. - num = poly2sym(s) Result - num = 600000 - (388270541116539*z^2)/34359738368 - 155160*z - eroor part How to convert even these values into decimal form?
Stephen23
Stephen23 2015년 1월 4일
Pooja: you accepted this answer, even though the issue still seems unresolved. Once you accept an answer, users browsing MATLAB Answers are much less likely to open this thread and read your further questions.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by