Changeset edfd36 in git for Singular/LIB/urrcount.lib


Ignore:
Timestamp:
May 6, 2005, 1:17:33 PM (18 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
7acf9bf2b74329722c5db8dcbfad38aefc35a663
Parents:
6ed9240d0e05977f97c2c93af491078329ba7b6d
Message:
*GMG: help


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

Legend:

Unmodified
Added
Removed
  • Singular/LIB/urrcount.lib

    r6ed924 redfd36  
    1 // $Id: urrcount.lib,v 1.4 2005-05-06 09:42:01 Singular Exp $
     1// $Id: urrcount.lib,v 1.5 2005-05-06 11:17:33 Singular Exp $
    22// E. Tobis  12.Nov.2004, April 2004
    3 // last change 1. May 2005 (G.-M. Greuel)
     3// last change 5. May 2005 (G.-M. Greuel)
    44///////////////////////////////////////////////////////////////////////////////
    55category="Symbolic-numerical solving"
     
    6363proc isparam(list #)
    6464"USAGE:     isparam(ideal/module/poly/list);
    65 RETURN:    int: 0 if the argument is not parametric and 1 if it
     65RETURN:    int: 0 if the argument has non-parametric coefficients
     66           and 1 if it has
    6667EXAMPLE:   example isparam; shows an example"
    6768{
     
    218219proc varsigns(list l)
    219220"USAGE:     varsigns(l); list l.
    220 RETURN:    number: the number of sign changes in the list l
     221RETURN:    int: the number of sign changes in the list l
    221222SEE ALSO:  boundposDes
    222223EXAMPLE:   example varsigns; shows an example"
     
    251252proc boundBuFou(poly p,number a,number b)
    252253"USAGE:     boundBuFou(p,a,b); p poly, a,b number
    253 RETURN:    number: an upper bound for the number of real roots of p in (a,b],
     254RETURN:    int: an upper bound for the number of real roots of p in (a,b],
    254255           with the same parity as the actual number of roots (using the
    255256           Budan-Fourier Theorem)
     
    315316proc boundposDes(poly p)
    316317"USAGE:     boundposDes(p); poly p
    317 RETURN:    number: an upper bound for the number of positive roots of p, with
     318RETURN:    int: an upper bound for the number of positive roots of p, with
    318319           the same parity as the actual number of positive roots of p.
    319320ASSUME:    p is a univarite polynomials with rational coefficients
     
    369370proc boundDes(poly p)
    370371"USAGE:     boundDes(p); poly p
    371 RETURN:    number: an upper bound for the number of real roots of p, with
     372RETURN:    int: an upper bound for the number of real roots of p, with
    372373           the same parity as the actual number of real roots of p.
    373374ASSUME:    p is a univarite polynomials with rational coefficients
     
    434435proc allrealst(poly p)
    435436"USAGE:     allrealst(p); poly p
    436 RETURN:    int: 1 iff all the roots of p are real, 0 otherwise
     437RETURN:    int: 1 iff all the roots of p are real, 0 otherwise.
    437438           Checks whether all the roots of p are real by using Sturm's Theorem
    438439ASSUME:    p is a univarite polynomials with rational coefficients
     
    506507proc sturm(poly p,number a,number b)
    507508"USAGE:     sturm(p,a,b); poly p, number a,b
    508 RETURN:    number: the number of real roots of p in (a,b]
     509RETURN:    int: the number of real roots of p in (a,b]
    509510ASSUME:    p is a univarite polynomials with rational coefficients,
    510511           a, b are rational numbers with a < b
     
    630631proc allreal(poly p)
    631632"USAGE:     allreal(p);
    632 RETURN:    bool: 1 iff all the roots of p are real
     633RETURN:    int: 1 iff all the roots of p are real, 0 otherwise
    633634SEE ALSO:  allrealst
    634635EXAMPLE:   example allreal; shows an example"
     
    664665proc sturmha(poly P,number a,number b)
    665666"USAGE:     sturmha(p,a,b); poly p, number a,b
    666 RETURN:    number: the number of real roots of p in (a,b) (using a
     667RETURN:    int: the number of real roots of p in (a,b) (using a
    667668           Sturm-Habicht sequence)
    668669SEE ALSO:  sturm,allreal
     
    674675  poly variable;
    675676  number bound;
    676   number result;
     677  //number result;
     678  int result;
    677679
    678680  if (isparam(P) || isparam(a) || isparam(b)) {
     
    834836proc nrroots(poly p)
    835837"USAGE:     nrroots(p); poly p
    836 RETURN:    number: the number of real roots of p
     838RETURN:    int: the number of real roots of p
    837839SEE ALSO:  boundposDes, sturm, sturmha
    838840EXAMPLE:   example nrroots; shows an example"
     
    10311033
    10321034
     1035
Note: See TracChangeset for help on using the changeset viewer.