Post Reply 
Numbers within units (50g)
09-22-2015, 02:56 AM
Post: #17
RE: Numbers within units (50g)
(09-19-2015 05:49 PM)Claudio L. Wrote:  I'm not sure unit conversions would help, a unit system is not really designed to work with variable conversion factors.
I guess once you know your frequency, you could define custom units with a fixed conversion factor of 2*pi*f, which has to be computed at the time of the unit definition. But if you change f, you'd have to redefine the units. I think it'd be easier to write a program that multiplies by 2*pi*f than creating custom units all the time.
The fact that the 50g accepts numeric factors at compile time wouldn't help you, since it happens only at compile time, meaning if you change the frequency you'd have to "recompile" the unit, so we are back to the previous case.

I see. Thank you for the explanation.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Numbers within units (50g) - Claudio L. - 09-15-2015, 09:53 PM
RE: Numbers within units (50g) - rprosperi - 09-16-2015, 12:55 AM
RE: Numbers within units (50g) - Bruno - 09-16-2015, 06:54 AM
RE: Numbers within units (50g) - rprosperi - 09-17-2015, 12:38 AM
RE: Numbers within units (50g) - Tugdual - 09-17-2015, 06:22 AM
RE: Numbers within units (50g) - Brad Barton - 09-22-2015 02:56 AM
RE: Numbers within units (50g) - Tugdual - 09-22-2015, 05:40 AM



User(s) browsing this thread: 1 Guest(s)