fieker-DuValspielwiese
Last change
on this file since 5ca9807 was
50cbdc,
checked in by Hans Schönemann <hannes@…>, 23 years ago
|
*hannes: merge-2-0-2
git-svn-id: file:///usr/local/Singular/svn/trunk@5619 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
783 bytes
|
Rev | Line | |
---|
[55b8ae] | 1 | /**************************************** |
---|
| 2 | * Computer Algebra System SINGULAR * |
---|
| 3 | ****************************************/ |
---|
| 4 | /*************************************************************** |
---|
| 5 | * File: p_Neg__Template.cc |
---|
| 6 | * Purpose: template for p_Neg |
---|
| 7 | * Author: obachman (Olaf Bachmann) |
---|
| 8 | * Created: 8/00 |
---|
[50cbdc] | 9 | * Version: $Id: p_Neg__T.cc,v 1.2 2001-08-27 14:47:27 Singular Exp $ |
---|
[55b8ae] | 10 | *******************************************************************/ |
---|
| 11 | |
---|
| 12 | /*************************************************************** |
---|
| 13 | * |
---|
| 14 | * Returns: -p |
---|
| 15 | * Destroys: p |
---|
| 16 | * |
---|
| 17 | ***************************************************************/ |
---|
[7e5a38] | 18 | LINKAGE poly p_Neg(poly p, const ring r) |
---|
[55b8ae] | 19 | { |
---|
| 20 | poly q = p; |
---|
| 21 | while (p != NULL) |
---|
| 22 | { |
---|
[512a2b] | 23 | pSetCoeff0(p, n_Neg(pGetCoeff(p), r)); |
---|
[55b8ae] | 24 | pIter(p); |
---|
| 25 | } |
---|
| 26 | return q; |
---|
| 27 | } |
---|
| 28 | |
---|
| 29 | |
---|
Note: See
TracBrowser
for help on using the repository browser.