|
On Tue, 23 Apr 1996, Jose Luis Alabart <joseluis@MIZAR.CSIC.ES> wrote:
> What about this code?
>gmean=exp(mean(log(x1),log(x2),log(x3),log(x4)));
Jose, that's even more typing than:
gmean=(x1*x2*x3*x4)**(1/4) ;
... particularly when ther are 40, rather than 4, variables - not to mention
the (fairly) trivial) fact that all those functions will have a theroetical
price in terms of speed, and even precise accuracy.
John
-----------------------------------------------------------
Dr John Whittington, Voice: +44 1296 730225
Mediscience Services Fax: +44 1296 738893
Twyford Manor, Twyford, E-mail: johnw@mag-net.co.uk
Buckingham MK18 4EL, UK CompuServe: 100517,3677
-----------------------------------------------------------
|