comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Large Numbers
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Large Numbers [message #64982 is a reply to message #64981] Fri, 06 February 2009 20:06 Go to previous messageGo to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
David Fanning wrote:
> Kenneth P. Bowman writes:
>
>> If you are dividing them, you don't really want to use
>> integers, do you? That's what floats (and doubles) are for.
>
> Humm. You might have a point there.
>
> Ok, how about a contest. Given two integers, x and n,
> with x le n, what is the most efficient way to evaluate
> this expression:
>
> n!/(x! * (n-x)!)

You know about the function "factorial", right?

Ciao,
Paolo

>
> The usual prize (as my children know well, a hug
> and a kiss) to the winner. :-)
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to read a multi-band image with IDL
Next Topic: Re: 12 bit jpeg

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Mon Dec 01 02:46:44 PST 2025

Total time taken to generate the page: 1.04764 seconds