Deutsch   English   Français   Italiano  
<v6c8v0$3usoe$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Krishna Myneni <krishna.myneni@ccreweb.org>
Newsgroups: comp.lang.forth
Subject: exercise in double number arithmetic
Date: Sat, 6 Jul 2024 15:20:45 -0500
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <v6c8v0$3usoe$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 06 Jul 2024 22:20:49 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="60ab9b416b9c3261f4e8d168439d2ca9";
	logging-data="4158222"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/sR/21xJppCIDAvnRk5NG4"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:utx11ohOZn02r+aBRtI3PU7K6LA=
Content-Language: en-US
Bytes: 1364

I've been working on extending the kForth-64 User's Manual and, in 
particular, illustrating double length arithmetic, which, being one of 
the strengths of Forth, often does not get enough exposure. Here's an 
exercise which you can do using only standard Forth words.

How many different ways can you choose 42 distinct objects, 21 at a 
time? This is "n choose k" or the binomial coefficent.

Please show your code.

--
Krishna Myneni