Opened 6 years ago
Last modified 12 months ago
#5529 closed discussion
Unsufficient precision when storing sine phases — at Initial Version
Reported by: | massimo ceraolo | Owned by: | Adeel Asghar |
---|---|---|---|
Priority: | normal | Milestone: | 2.0.0 |
Component: | OMEdit | Version: | v1.14.0-dev-nightly |
Keywords: | Cc: |
Description
1) Load Modelica.Blocks.Sources.Sine or Modelica.Electrical.Sources.Sine
2) Click on the model icon and choose as phase 90 (they are degrees)
3) Click again on the icon: the phase is now 90.002.
This is because phases are stored in the model in radians as 6-digit strings corresponding to simple precision.
I think that double precision should be used; in this case roundoff errors are much lower.
Note:
See TracTickets
for help on using tickets.