LogoFE and binomial distribution 
Author Message
 LogoFE and binomial distribution

Quote:
> b.dist 10 -> {1 10 45 120 210 252 210 120 45 10 1}

combi is combinations:
show combi [3 0]
1
show combi [3 1]
3
show combi [3 2]
3
show combi [3 3]
1

show iota 3
[0 1 2]

show iota 4
[0 1 2 3]

show iota 10
[0 1 2 3 4 5 6 7 8 9]

show inc 3
4

show iota inc 3
[0 1 2 3]

"mismo" is "same":
show mismo 3
3

show mismo 4
4

encaja is "put in a box":
show encaja [mismo [iota inc]] 3
[3 [0 1 2 3]]

diz is "distribute left":
show diz "mismo encaja [mismo [iota inc]] 3
[[3 0] [3 1] [3 2] [3 3]]

show diz "combi encaja [mismo [iota inc]] 3
[1 3 3 1]

show diz "combi encaja [mismo [iota inc]] 2
[1 2 1]

show diz "combi encaja [mismo [iota inc]] 10
[1 10 45 120 210 252 210 120 45 10 1]

There is also "binomio" that makes a polynomial out of a binomial to a power:
show binomio [10 [1 1]]
[1 10 45 120 210 252 210 120 45 10 1]

show binomio [2 [1 1]]
[1 2 1]

show binomio [3 [1 1]]
[1 3 3 1]

show binomio [2 [1 -1]]
[1 -2 1]

Daniel

http://www.*-*-*.com/

To unsubscribe from this group, send an email to:

LogoForum messages are archived at:
http://www.*-*-*.com/

Your use of Yahoo! Groups is subject to http://www.*-*-*.com/



Fri, 26 Mar 2004 10:46:39 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Help to create a binomial distribution

2. Sorting IP addresses with LogoFE

3. LogoFE Manual new look

4. socks and LogoFE (was: Lists)

5. LogoFE and Demonstrating Standard Deviation

6. LogoFE and "irr" (was: Help please)

7. LogoFE and Demonstrating Standard Deviation

8. LogoFE

9. LogoFE

10. LogoFE (was: use of dynamic scope)

11. LogoFE (was: use of dynamic scope)

12. LogoFE (correction)

 

 
Powered by phpBB® Forum Software