Changeset c05547 in git for Singular/iparith.cc
- Timestamp:
- Aug 16, 2019, 3:41:57 PM (5 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 0a374dfc252034170c772ac44b6740e217190fbb0f194b4db842ab87efd9f6447b9793f2d687bceb309b8ae0c68d542d1d8a75fa675c060e90e18440
- Parents:
- c8b65d77e75cfce24c257822df19be0d1113e110a631cdc0aa559cc581e085981696acaa3b7216c1
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2019-08-16 15:41:57+02:00
- git-committer:
- GitHub <noreply@github.com>2019-08-16 15:41:57+02:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
ra631cdc rc05547 3963 3963 3964 3964 /// Return the denominator of the input number 3965 /// NOTE: the input number is normalized as a side effect3966 3965 static BOOLEAN jjDENOMINATOR(leftv res, leftv v) 3967 3966 { 3968 number n = reinterpret_cast<number>(v-> Data());3967 number n = reinterpret_cast<number>(v->CopyD()); 3969 3968 res->data = reinterpret_cast<void*>(n_GetDenom(n, currRing->cf)); 3969 n_Delete(&n,currRing); 3970 3970 return FALSE; 3971 3971 } 3972 3972 3973 3973 /// Return the numerator of the input number 3974 /// NOTE: the input number is normalized as a side effect3975 3974 static BOOLEAN jjNUMERATOR(leftv res, leftv v) 3976 3975 { 3977 number n = reinterpret_cast<number>(v-> Data());3976 number n = reinterpret_cast<number>(v->CopyD()); 3978 3977 res->data = reinterpret_cast<void*>(n_GetNumerator(n, currRing->cf)); 3978 n_Delete(&n,currRing); 3979 3979 return FALSE; 3980 3980 }
Note: See TracChangeset
for help on using the changeset viewer.