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/bfe3d495-8178-4e05-9368-17d274e0bf9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to