Discussion Overview
The discussion revolves around the use of the fixed-point function fi() in MATLAB, particularly regarding issues of precision and representation of large numbers. Participants explore the limitations of fixed-point representation and consider alternatives for achieving accurate multiplication of large integers.
Discussion Character
- Technical explanation
- Debate/contested
- Mathematical reasoning
Main Points Raised
- One participant expresses confusion over why using fi(3336770033) results in a different number (3336830976), questioning the toolbox's capability for accurate representation without moving decimals.
- Another participant suggests that the issue may stem from MATLAB's default word size for the fi function being 16 bits, which could limit significant digits.
- A third participant notes that to retain full significance when multiplying large numbers, the Symbolic Toolbox may be necessary, referencing its use of MuPad.
- Some participants clarify that the fi() function defaults to 16-bit word length, which may not suffice for the desired precision, implying that more significant digits would require a different approach.
- One participant points out that the representation of numbers in MATLAB can show accurate digits if not constrained by the fixed-point representation.
- A later reply suggests examining the hexadecimal representation of the numbers to understand the loss of precision, indicating that the discrepancy may be due to trailing zeros being lost in the conversion.
Areas of Agreement / Disagreement
Participants generally agree that the fixed-point representation has limitations, particularly regarding significant digits. However, there is no consensus on the best approach to achieve the desired precision, with differing views on the use of the Symbolic Toolbox versus fixed-point representation.
Contextual Notes
Limitations include the default word size of the fi function and its implications for significant digits. The discussion also highlights the potential need for additional toolboxes to achieve higher precision in calculations.