Changeset e26667 in git
- Timestamp:
- May 2, 2012, 2:00:57 PM (11 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 2156ec376c4c5977dc1fc4a9186651db3fdf492d
- Parents:
- 59778389f5075553bef793320610ce298d74b18d
- git-author:
- Martin Lee <martinlee84@web.de>2012-05-02 14:00:57+02:00
- git-committer:
- Martin Lee <martinlee84@web.de>2012-05-07 14:17:00+02:00
- Location:
- factory
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cf_gcd_smallp.cc
r597783 re26667 4628 4628 } 4629 4629 4630 CanonicalForm cand ;4630 CanonicalForm cand, contcand; 4631 4631 CanonicalForm result; 4632 4632 int o, t; … … 4871 4871 if (gcdfound == 1) 4872 4872 { 4873 cand = DD[2] / content( DD[2], Variable(1) ); 4874 gcdfound = fdivides( cand, G ) && fdivides ( cand, F ); //TODO use multiplication instead of fdivides 4873 contcand= content (DD[2], Variable (1)); 4874 cand = DD[2] / contcand; 4875 if (B_is_F) 4876 gcdfound = fdivides( cand, G ) && cand*(DD[1]/(lcD/contcand)) == F; 4877 else 4878 gcdfound = fdivides( cand, F ) && cand*(DD[1]/(lcD/contcand)) == G; 4875 4879 4876 4880 if (passToGF && gcdfound) -
factory/fac_ezgcd.cc
r597783 re26667 414 414 bool isRat= isOn (SW_RATIONAL); 415 415 CanonicalForm F, G, f, g, d, Fb, Gb, Db, Fbt, Gbt, Dbt, B0, B, D0, lcF, lcG, 416 lcD, cand, result;416 lcD, cand, contcand, result; 417 417 CFArray DD( 1, 2 ), lcDD( 1, 2 ); 418 418 int degF, degG, delta, t, count, maxeval; … … 654 654 if (gcdfound) 655 655 { 656 cand = DD[2] / content( DD[2], Variable(1) ); 657 gcdfound = fdivides( cand, G ) && fdivides ( cand, F ); 656 contcand= content (DD[2], Variable (1)); 657 cand = DD[2] / contcand; 658 if (B_is_F) 659 gcdfound = fdivides( cand, G ) && cand*(DD[1]/(lcD/contcand)) == F; 660 else 661 gcdfound = fdivides( cand, F ) && cand*(DD[1]/(lcD/contcand)) == G; 658 662 } 659 663 /// ---> A8 (gcdfound)
Note: See TracChangeset
for help on using the changeset viewer.