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

Home » Public Forums » archive » Re: Combination
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: Combination [message #75402 is a reply to message #75401] Mon, 28 February 2011 13:02 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
fgg writes:

> I should probably know this by now... what's going on below?
>
> IDL> c = factorial(21)/(factorial(3)*factorial(21-3))
> IDL> print, c
> 1330.0000
> IDL> myvec = dblarr(c)
> IDL> help, myvec
> MYVEC DOUBLE = Array[1329]
>
> I'd like myvec to have 1330 elements... not 1329.

I would guess yet another instance of the "Sky is Falling." :-)

http://www.idlcoyote.com/math_tips/sky_is_falling.html

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Combination
Next Topic: How to look up the directory tree for calling external DLLs?

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

Current Time: Sat Oct 11 14:35:51 PDT 2025

Total time taken to generate the page: 0.96175 seconds