Changeset 883957 in git
- Timestamp:
- Aug 20, 2008, 6:33:40 PM (15 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '00e2e9c41af3fde1273eb3633f4c0c7c3db2579d')
- Children:
- 40b63ead1005d1da7376efe37adc7c1a5b9f55e8
- Parents:
- cb1ed27860675e098e88124eba57212b35769e9d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/general.lib
rcb1ed27 r883957 3 3 //eric, added absValue 11.04.2002 4 4 /////////////////////////////////////////////////////////////////////////////// 5 version="$Id: general.lib,v 1.5 6 2008-03-18 14:57:15Singular Exp $";5 version="$Id: general.lib,v 1.57 2008-08-20 16:33:40 Singular Exp $"; 6 6 category="General purpose"; 7 7 info=" … … 195 195 example 196 196 { "EXAMPLE:"; echo = 2; 197 binomial(200,100);""; //type string, computed in char 0197 binomial(200,100);""; //type bigint 198 198 int n,k = 200,100; 199 bigint b1 = binomial(n,k); 199 200 ring r = 0,x,dp; 200 number b1 = binomial(n,k,0); //type number, computed in ring r 201 poly b2 = coeffs((x+1)^n,x)[k+1,1]; //coefficient of x^k in (x+1)^n 202 b1-b2; //b1 and b2 should coincide 201 poly b2 = coeffs((x+1)^n,x)[k+1,1]; //coefficient of x^k in (x+1)^n 202 b1-b2; //b1 and b2 should coincide 203 203 } 204 204 ///////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.