Precision of datatype complex
20 views (last 30 days)
Show older comments
Hi,
can someone give me a answer of the precision of a complex value of matlab. is the wohle value double or each part (real,im) ?
kind regards Alex
0 Comments
Accepted Answer
Jan
on 28 Oct 2012
Edited: Jan
on 28 Oct 2012
The real and the imaginary parts are stored in a double. Therefore a complex double occupies 2*8 bytes.
2 Comments
Walter Roberson
on 28 Oct 2012
Edited: Walter Roberson
on 28 Oct 2012
Symbolic Math toolbox. Fixed Point toolbox. One of the File Exchange extended precision routines. Or construct your own dataclass.
MATLAB uses hardware floating point for numeric operations. CPUs do not support 16 byte floating point numbers in hardware as yet.
Much of the time if someone needs more than 53 bit precision, they are not making realistic calculations with proper precision and round-off analysis.
More Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!