Commit 8a355b9
Added basic normalization for
Summary:
+ There is no normalization on top of the abstract type support currently implemented.
+ We do not do any normalization, we just return the same polynomial.
+ Implemented just the basic polynomial normalization. Added some test cases showing what it does and does not do.
Currently, it eliminates zero-coefficient terms, and does not regard the order of monomials or terms in the monomial.
It does not collect like terms, either monomials or monomial factors.
Reviewed By: pradeep90
Differential Revision: D28890914
fbshipit-source-id: 8a887b961e94fcdfbb9ddf8c12d744778f3e7547IntExpressions1 parent 6d3704e commit 8a355b9
2 files changed
+26
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1958 | 1958 | | |
1959 | 1959 | | |
1960 | 1960 | | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
| 1966 | + | |
| 1967 | + | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
1961 | 1982 | | |
1962 | 1983 | | |
1963 | 1984 | | |
| |||
3572 | 3593 | | |
3573 | 3594 | | |
3574 | 3595 | | |
| 3596 | + | |
3575 | 3597 | | |
3576 | 3598 | | |
3577 | 3599 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
728 | 728 | | |
729 | 729 | | |
730 | 730 | | |
| 731 | + | |
| 732 | + | |
731 | 733 | | |
732 | 734 | | |
733 | 735 | | |
| |||
994 | 996 | | |
995 | 997 | | |
996 | 998 | | |
997 | | - | |
| 999 | + | |
| 1000 | + | |
998 | 1001 | | |
999 | 1002 | | |
1000 | 1003 | | |
| |||
0 commit comments