Matlab double function outputs infinity when taking a big number of type "sym" -
This literally I received the number (from the symsum function), which is of type sym:
= 328791078344903739363762093060350430076929707044786898291940722052812676355129485878814911641516759087483581972443760841410582114920781832660013389681326267351368505696628653562484228680842650173635989588528021721039959787053654401351638478786763875479187208098871238084448485336138651690856082810553570419028927840285091142054111375001
the I (in particular, to take the natural log) would like to change to make mathematical operations on numbers and therefore double, then double (a) simply " From inf Want Padn are ". How to go about this problem and change it from "Yoga" to a numerical type?
your number ~ 3.3x10 335 but the largest number of MATLAB Dual exact floating point can be displayed by numbers, ~ 1.8x10 308 (see the output of For a complete description of floating point representations and arithmetic, you see it realmax ). Converting your number into double precision causes overflow because the number is larger, so can be represented so that MATLAB returns back to
inf .
Comments
Post a Comment