Changeset 18da050 in git for Singular/LIB/primitiv.lib


Ignore:
Timestamp:
Jul 2, 1999, 11:06:02 AM (25 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
8c7c71771e971ec336b73a5dde1b7e8b53050848
Parents:
6de26a0e63b1ed1c30b10d4e5574fe8982f9f569
Message:
* moved randomLast from primdec.lib, primitve.lib to random.lib


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

Legend:

Unmodified
Added
Removed
  • Singular/LIB/primitiv.lib

    r6de26a0 r18da050  
    1 // $Id: primitiv.lib,v 1.8 1999-04-14 12:11:53 Singular Exp $
     1// $Id: primitiv.lib,v 1.9 1999-07-02 09:06:01 obachman Exp $
    22// author:  Martin Lamm,  email: lamm@mathematik.uni-kl.de
    33// last change:            19.03.99
     
    55// This library is for Singular 1.2 or newer
    66
    7 version="$Id: primitiv.lib,v 1.8 1999-04-14 12:11:53 Singular Exp $";
     7version="$Id: primitiv.lib,v 1.9 1999-07-02 09:06:01 obachman Exp $";
    88info="
    99LIBRARY:    primitiv.lib    PROCEDURES FOR FINDING A PRIMITIVE ELEMENT
     
    1212 primitive_extra(i);   find primitive element for two generators
    1313 splitring(f,R[,L]);   define ring extension with name R and switch to it
    14  randomLast(b);        random transformation of the last variable
    1514";
    1615
     
    1918///////////////////////////////////////////////////////////////////////////////
    2019
    21 proc randomLast(int b)
    22 "USAGE:   randomLast(b);  b int
    23 RETURN:  ideal = maxideal(1), but the last variable is exchanged by
    24          a sum of it with a linear random combination of the other
    25          variables. The coefficients are in the interval [-b,b].
    26 EXAMPLE: example randomLast; shows an example
    27 "
    28 {
    29   ideal i=maxideal(1);
    30   int k=size(i);
    31   i[k]=0;
    32   i=randomid(i,size(i),b);
    33   ideal ires=maxideal(1);
    34   ires[k]=i[1]+var(k);
    35   return(ires);
    36 }
    37 example
    38 { "EXAMPLE:"; echo = 2;
    39    ring  r = 0,(x,y,z),lp;
    40    ideal i = randomLast(10);
    41    i;
    42 }
    4320///////////////////////////////////////////////////////////////////////////////
    4421
Note: See TracChangeset for help on using the changeset viewer.