Re: [swift-users] Dimensional analysis

2016-12-04 Thread Rick Mann via swift-users
> On Dec 1, 2016, at 11:36 , Dave Abrahams via swift-users > wrote: > > > on Mon Nov 28 2016, Rick Mann wrote: > >> My earlier post about converting Decimal to Double was part of a >> larger effort by me to write a calculator app that supports >> dimensional analysis/unit conversions. I've e

Re: [swift-users] Dimensional analysis

2016-12-02 Thread Jeremy Pereira via swift-users
>> • Supporting leniency in conversions (e.g. conflating lb and lb•f). > > Is that conflating pounds with foot-pounds? If so that seems > undesirable, and also incompatible with the very next bullet. If not, > what are you suggesting? It’s pounds force isn’t it? It still shouldn’t be conflated

Re: [swift-users] Dimensional analysis

2016-12-01 Thread Dave Abrahams via swift-users
on Mon Nov 28 2016, Rick Mann wrote: > My earlier post about converting Decimal to Double was part of a > larger effort by me to write a calculator app that supports > dimensional analysis/unit conversions. I've explored some existing > libraries on the topic, ranging from this one in Common Lis

Re: [swift-users] Dimensional analysis

2016-11-30 Thread Howard Lovatt via swift-users
Another feature I would like would be a dimensions wrapper for an array. So that I can mark all values in the array as having the same units, rather than mark each individual element as having a particular unit. It is conceivable that wrapping each element, both performance and memory wise, is OK

Re: [swift-users] Dimensional analysis

2016-11-30 Thread Maury Markowitz via swift-users
Let me add my support for this as well. I am currently using a bridge version of: https://github.com/unixpickle/Expressions And it works quite well. But I think a pure Swift implementation, especially with dimensional analysis, would be useful to a great number of people. __

Re: [swift-users] Dimensional analysis

2016-11-29 Thread Howard Lovatt via swift-users
Great idea to have dimensions library. I use Quantity in Mathematica all the time and it is great. Even if some of the checks are at runtime it is still useful, better to throw an assert rather than nothing. All the rest of your list, in addition to compile time check, I also use. -- Howard. >

[swift-users] Dimensional analysis

2016-11-28 Thread Rick Mann via swift-users
My earlier post about converting Decimal to Double was part of a larger effort by me to write a calculator app that supports dimensional analysis/unit conversions. I've explored some existing libraries on the topic, ranging from this one in Common Lisp (