Hi Ben,<div>We use Aconcagua in our financial app (<a title="static project url" href="http://www.squeaksource.com/Aconcagua.html" style="color:rgb(54,0,132);text-decoration:none;font-family:Geneva,Arial,Helvetica,sans-serif;font-size:15px;text-align:justify;background-color:rgb(255,255,255)">http://www.squeaksource.com/Aconcagua.html</a>). Well, our version of Aconcagua (probably have some changes now). We are running it in VA Smalltalk and GemStone/S, and at the time the port to Pharo/Squeak/VW was easy. There's also a <a href="http://stephane.ducasse.free.fr/Teaching/CoursAnnecy/0506-M1-COO/aconcagua-p292-wilkinson.pdf">Paper available.</a> The package have a good number of test cases that probably can serve as examples. If you're implementing this kind of thing is a good idea to learn a little about <a href="http://en.wikipedia.org/wiki/Dimensional_analysis">Dimensional analysis</a></div>
<div><br></div><div>Hope it helps,</div><div>Gabriel<br><br><div class="gmail_quote">On Sun, Jan 8, 2012 at 2:21 AM, Ben Coman <span dir="ltr"><<a href="mailto:btc@openinworld.com">btc@openinworld.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I am implementing a model defined with quantity data having {value, multiplier, unit} where<br>
multiplier is m, c, k, M, etc<br>
unit is V, A, Hz, W, etc<br>
<br>
So I am looking for what quantities/units packages are around before trying to write my own.<br>
<br>
I have downloaded [1] and had a poke around there with the tests. Are there any further examples around of how to use it and to define new units? I notice that Voltage=Joules/Columb is not defined.<br>
<br>
Is anyone have any familiar with ports of packages mentioned here [2] [3] [4] from other platforms?<br>
<br>
cheers, Ben<br>
<br>
[1] <a href="http://www.squeaksource.com/Units.html" target="_blank">http://www.squeaksource.com/<u></u>Units.html</a><br>
[2] <a href="http://www.cincomsmalltalk.com/publicRepository/Quantities.html" target="_blank">http://www.cincomsmalltalk.<u></u>com/publicRepository/<u></u>Quantities.html</a><br>
[3] <a href="http://www.smalltalking.net/goodies/Dolphin/" target="_blank">http://www.smalltalking.net/<u></u>goodies/Dolphin/</a> (scroll to bottom)<br>
[4] <a href="http://comments.gmane.org/gmane.comp.lang.smalltalk.squeak.general/55894" target="_blank">http://comments.gmane.org/<u></u>gmane.comp.lang.smalltalk.<u></u>squeak.general/55894</a><br>
<br>
<br>
</blockquote></div><br></div>