Numbers within units (50g)
09-22-2015, 02:56 AM
Post: #17
 Brad Barton Member Posts: 194 Joined: Jan 2014
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.
 « Next Oldest | Next Newest »

 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) - Claudio L. - 09-16-2015, 04:43 PM RE: Numbers within units (50g) - rprosperi - 09-17-2015, 12:38 AM RE: Numbers within units (50g) - Claudio L. - 09-17-2015, 02:44 AM RE: Numbers within units (50g) - Csaba Tizedes - 09-16-2015, 10:21 PM RE: Numbers within units (50g) - Tugdual - 09-17-2015, 06:22 AM RE: Numbers within units (50g) - Csaba Tizedes - 09-17-2015, 07:39 AM RE: Numbers within units (50g) - Claudio L. - 09-17-2015, 01:25 PM RE: Numbers within units (50g) - Brad Barton - 09-18-2015, 02:56 AM RE: Numbers within units (50g) - Claudio L. - 09-18-2015, 01:01 PM RE: Numbers within units (50g) - Brad Barton - 09-18-2015, 09:28 PM RE: Numbers within units (50g) - brickviking - 09-18-2015, 10:04 PM RE: Numbers within units (50g) - Brad Barton - 09-19-2015, 02:39 AM RE: Numbers within units (50g) - Claudio L. - 09-19-2015, 05:49 PM RE: Numbers within units (50g) - Brad Barton - 09-22-2015 02:56 AM RE: Numbers within units (50g) - Csaba Tizedes - 09-22-2015, 07:37 AM RE: Numbers within units (50g) - Brad Barton - 09-23-2015, 04:46 AM RE: Numbers within units (50g) - Claudio L. - 09-22-2015, 05:43 PM RE: Numbers within units (50g) - Brad Barton - 09-23-2015, 04:53 AM RE: Numbers within units (50g) - Claudio L. - 09-23-2015, 07:03 PM RE: Numbers within units (50g) - Tugdual - 09-22-2015, 05:40 AM

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