Ciao Mark S. & Thomas

Great stuff. I changed the test values to match slightly better actual 
horses I know to check. Its accurate enough for what is a guesstimate in 
any case. The formulae differ between sites slightly.

What surprised me was the extent of the code you had to write to do that. 
It was for more complex than I ever imagined it would need be. But then I 
don't really understand coding.

Best wishes
Josiah

On Wednesday, 16 August 2017 18:21:32 UTC+2, Mark S. wrote:
>
> I'm not sure if this actually works, but it seems to give the right answer:
>
> \define sqr(x) <$macrocall $name="rpn" a=$x$ b=$x$ operation="*"/>
> \define pony(hg,len)
> <$wikify name=hg2 text="<<rpn $hg$ $hg$ *>>">
> <$wikify name=hg2len text='<$macrocall $name="rpn" a=<<hg2>> b=$len$ 
> operation="*"/>'>
>
> <$wikify name=weight text='<$macrocall $name="rpn" a=<<hg2len>> b="11800" 
> operation="/" decimals=2/>'>
>
> <$macrocall $name="rpn" a=<<weight>> b=" kgs" operation="&" />
> </$wikify></$wikify></$wikify>
> \end
>
> <<pony 100 200>>
>
> Only the wikify widget made this straight-forward.
>
> I guessed at the pony measurements. Suspect the girth is too small. I 
> notice that horse calculations tack on 50lbs.
>
> Mark
>
>
>
> On Wednesday, August 16, 2017 at 8:16:57 AM UTC-7, @TiddlyTweeter wrote:
>>
>> Ciao Thomas
>>
>> Originally I wasn't really interested in RPN because I'm still looking 
>> for something simple that can add up a column in a table without having to 
>> have a Tiddler per row.
>>
>> However RPN its growing on me as a way to do simple calculations. *Obvious 
>> applications are, for instance, a measures convertor* (°F -> °C; Euros 
>> to Dollars etc)
>>
>> Could it, for instance, calculate the weight of your pony? :-) 
>>
>> Just for fun here is the formula for estimating the weight of a pony ...
>>
>> Pony Weight in Kgs = (heart-girth2 cms x 
>> length-from-shoulder-to-tip-of-buttocks 
>> cms) / 11,880
>>
>> Note: the small "2" on "heart-girth" means "squared". **
>>
>> Best wishes
>> Josiah
>>
>> P.S. ** I'm not making this up. The horse weight calculation thing is 
>> here: 
>> http://www.thehorse.com/articles/27936/estimating-horse-weight-accurately 
>>
>> Thomas Elmiger wrote:
>>> I showed my little pony some new tricks. 
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/14eaba42-f996-4a20-86c1-c4aa53a4ead0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to