Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Manuals/calci/PASCALTRIANGLE
(view source)
Revision as of 04:52, 6 January 2014
9 bytes added
,
04:52, 6 January 2014
no edit summary
Line 9:
Line 9:
*Then from the 2nd row each number in the triangle is the sum of the two directly above it.
*Then from the 2nd row each number in the triangle is the sum of the two directly above it.
*The construction is related to the binomial coefficients by Pascal's rule is :
*The construction is related to the binomial coefficients by Pascal's rule is :
−
<math>(x+y)^n=\sum_{k=0}^n \binom{n}{k}x^{n-k} .y^k </math>. where <math> \
binom
{n}{k}</math> is the binomial coefficient.
+
<math>(x+y)^n=\sum_{k=0}^n \binom{n}{k}x^{n-k} .y^k </math>. where <math> \
dbinom
{n}{k}</math> is the binomial coefficient.
*This function will return the result as error when the r <math> \le 0</math>.
*This function will return the result as error when the r <math> \le 0</math>.
==Examples==
==Examples==
−
#
PASCALTRIANGLE(1)=1
+
*1.
PASCALTRIANGLE(1)=1
−
#
PASCALTRIANGLE(2)=1
+
*2.
PASCALTRIANGLE(2)=1
1 1
1 1
−
#
PASCALTRIANGLE(3)=1
+
*3.
PASCALTRIANGLE(3)=1
1 1
1 1
1 2 1
1 2 1
−
#
PASCALTRIANGLE(0)=NULL
+
*4.
PASCALTRIANGLE(0)=NULL
Devika
writer
6,694
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Community portal
Current events
Recent changes
Help
Tools
ZCubes Web Platform
Printable version