Changeset 0b59f5 in git for Singular/LIB/general.lib


Ignore:
Timestamp:
Dec 13, 1999, 4:33:50 PM (23 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
82ed244cff3158b7a79a6eed4e0548d485960cfe
Parents:
925cab8e04ecb2f3c2e451b913c11bcac28b2374
Message:
* GMG's changes


git-svn-id: file:///usr/local/Singular/svn/trunk@4006 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/general.lib

    r925cab r0b59f5  
    1 // $Id: general.lib,v 1.22 1999-10-22 09:07:07 obachman Exp $
     1// $Id: general.lib,v 1.23 1999-12-13 15:33:46 obachman Exp $
    22//GMG, last modified 18.6.99
    33///////////////////////////////////////////////////////////////////////////////
    44
    5 version="$Id: general.lib,v 1.22 1999-10-22 09:07:07 obachman Exp $";
     5version="$Id: general.lib,v 1.23 1999-12-13 15:33:46 obachman Exp $";
    66info="
    77LIBRARY:  general.lib   PROCEDURES OF GENERAL TYPE
    88
    99PROCEDURES:
    10  A_Z(\"a\",n);          string a,b,... of n comma seperated letters
     10 A_Z(\"a\",n);          string a,b,... of n comma separated letters
    1111 ASCII([n,m]);          string of printable ASCII characters (number n to m)
    1212 binomial(n,m[,../..]); n choose m (type int), [type string/type number]
     
    3232"USAGE:   A_Z(\"a\",n);  a any letter, n integer (-26<= n <=26, !=0)
    3333RETURN:  string of n small (if a is small) or capital (if a is capital)
    34          letters, comma seperated, beginning with a, in alphabetical
     34         letters, comma separated, beginning with a, in alphabetical
    3535         order (or revers alphabetical order if n<0)
    3636EXAMPLE: example A_Z; shows an example
     
    9595{
    9696  string s1 =
    97  "     !    \"    #    $       &    '    (    )    *    +    ,    -    .
     97 "     !    \"    #    $     &    '    (    )    *    +    ,    -    .
    989832   33   34   35   36   37   38   39   40   41   42   43   44   45   46
    9999/    0    1    2    3    4    5    6    7    8    9    :    ;    <    =
     
    137137"USAGE:   binomial(n,k[,p]); n,k,p integers
    138138RETURN:  binomial(n,k); binomial coefficient n choose k,
    139          - of type string (computed in characteristic 0)
     139@*         - of type string (computed in characteristic 0)
    140140         binomial(n,k,p); n choose k, computed in characteristic prime(p)
    141          - of type number if a basering is present and prime(p)=char(basering)
    142          - of type string else
     141@*         - of type number if a basering is present and prime(p)=char(basering)
     142@*         - of type string else
    143143NOTE:    In any characteristic, binomial(n,k) = coefficient of x^k in (1+x)^n
    144144EXAMPLE: example binomial; shows an example
Note: See TracChangeset for help on using the changeset viewer.