[R] Vernier Caliper function vernier()

Rajarshi Guha rxg218 at psu.edu
Fri Apr 1 23:55:50 CEST 2005


On Fri, 2005-04-01 at 21:31 +0100, Ted.Harding at nessie.mcc.ac.uk wrote:
> Its definition is below. Test it by entering
> 
>   vernier(pi+sqrt(.182))
> 
> By following the instructions you should find that
> the result is
> 
>   x = 3 Units + 5 Tenths + 7 Hundredths
> 
> which is good enough for anyone. It generalises to
> non-decimal Vernier Calipers (change the default "n=10",
> but I leave it to you to work out how to deal with the
> texts).

Wow!

-------------------------------------------------------------------
Rajarshi Guha <rxg218 at psu.edu> <http://jijo.cjb.net>
GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE
-------------------------------------------------------------------
A bug in the code is worth two in the documentation.




More information about the R-help mailing list