User:Contribution/Chanofreq Project: Difference between revisions

Contribution (talk | contribs)
Contribution (talk | contribs)
Line 20: Line 20:
* '''Z:''' A 64-bit floating-point number > 0, representing the frequency in Hertz.
* '''Z:''' A 64-bit floating-point number > 0, representing the frequency in Hertz.


{{todo|Consider using a different data type for representing frequencies.|inline=1|comment=Instead of a 64-bit floating-point number, Z could be a 32-bit positive integer. This integer would represent the frequency in Hertz multiplied by 10^5. This change would allow for a frequency range from 0.00000 Hz to 42949.67295 Hz with a precision of exactly five decimal places.}}
{{todo|Considerations for Frequency Representation:|inline=1|comment=Consider to use a different data type for representing frequencies. Instead of a 64-bit floating-point number, a 32-bit positive integer could be used. Here are two possible approaches:
* Option 1: The 32-bit positive integer represents the frequency in Hertz multiplied by 10^5. This would provide a frequency range from 0.00000 Hz to 42949.67295 Hz with a precision of exactly five decimal places.
* Option 2: The 32-bit positive integer represents the frequency in Hertz multiplied by 2×10^5. This option would cover a frequency range from 0.000000 Hz to 21474.836475 Hz, with a precision of five decimal places and an additional decimal place that must be either 0 or 5.
These alternatives offer more efficient data storage while preserving the necessary precision for frequency values, and resulting in consistent maximal phase error whatever the frequency is (2.3 days for 1 phase error with Option 1, and 4.6 days for 1 phase error with Option 2).}}


Commands can be separated by a semicolon (';') or a newline.
Commands can be separated by a semicolon (';') or a newline.