English 中文(简体)
Matlab 人数的代表性是否ug?
原标题:Matlab_Is there a bug in the representation of number e?

I think There is something wrong in Matlab relative to the number of decimal places used to display the number e. If put

>> sprintf( %.30f ,exp(1))

ans =

2.718281828459045500000000000000

enter code here

I think this is wrong because The number and contains an infinite number of decimal places instead of just the 16 that matlab show in this example. Does anyone know how I can get better accuracy using Matlab? Thank you.

最佳回答
问题回答




相关问题
Haskell minimum/maximum Double Constant

Is there any way in Haskell to get the constant that is the largest and smallest possible positive rational number greater than zero that can be represented by doubles?

integer automatically converting to double but not float

I have a function like below: void add(int&,float&,float&); and when I call: add(1,30,30) it does not compile. add(1,30.0,30.0) also does not compile. It seems that in both cases, it ...

Lower Bounds For Floating Points

Are there any lower bounds for floating point types in C? Like there are lower bounds for integral types (int being at least 16 bits)?

Floating point again

Yesterday I asked a floating point question, and I have another one. I am doing some computations where I use the results of the math.h (C language) sine, cosine and tangent functions. One of the ...

热门标签