This repository was archived by the owner on Feb 1, 2023. It is now read-only.
Commit 5912940
Release Manager
Trac #29543: normal_basis for positive-dimensional ideals
This ticket adds a `degree` option to the `normal_basis` method of
ideals.
This allows to limit the output to monomials of a particular degree,
which is useful when the corresponding quotient ring is not finite-
dimensional as a vector space.
{{{
sage: R.<x,y,z> = QQ[]
sage: I = R.ideal(x^2 + y^2 - 1)
sage: [I.normal_basis(d) for d in (0..3)]
[[1],
[z, y, x],
[z^2, y*z, x*z, y^2, x*y],
[z^3, y*z^2, x*z^2, y^2*z, x*y*z, y^3, x*y^2]]
}}}
Previously, the method could only be used when the quotient ring was
finite-dimensional.
This functionality is provided by Singular. For reference, the
corresponding Singular function is [https://www.singular.uni-
kl.de/Manual/4-1-2/sing_275.htm#SEC315 kbase].
URL: https://trac.sagemath.org/29543
Reported by: gh-mwageringel
Ticket author(s): Markus Wageringel
Reviewer(s): Travis Scrimshaw, Kwankyu LeeFile tree
2 files changed
+93
-17
lines changed- src/sage/rings/polynomial
2 files changed
+93
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2888 | 2888 | | |
2889 | 2889 | | |
2890 | 2890 | | |
2891 | | - | |
| 2891 | + | |
2892 | 2892 | | |
2893 | | - | |
2894 | | - | |
| 2893 | + | |
| 2894 | + | |
| 2895 | + | |
2895 | 2896 | | |
2896 | 2897 | | |
| 2898 | + | |
| 2899 | + | |
| 2900 | + | |
| 2901 | + | |
| 2902 | + | |
| 2903 | + | |
| 2904 | + | |
| 2905 | + | |
| 2906 | + | |
2897 | 2907 | | |
2898 | 2908 | | |
2899 | 2909 | | |
2900 | 2910 | | |
2901 | 2911 | | |
2902 | 2912 | | |
| 2913 | + | |
| 2914 | + | |
| 2915 | + | |
| 2916 | + | |
| 2917 | + | |
| 2918 | + | |
| 2919 | + | |
| 2920 | + | |
| 2921 | + | |
| 2922 | + | |
| 2923 | + | |
| 2924 | + | |
2903 | 2925 | | |
2904 | 2926 | | |
2905 | 2927 | | |
2906 | 2928 | | |
2907 | | - | |
2908 | | - | |
| 2929 | + | |
| 2930 | + | |
| 2931 | + | |
| 2932 | + | |
2909 | 2933 | | |
2910 | 2934 | | |
2911 | 2935 | | |
2912 | | - | |
| 2936 | + | |
| 2937 | + | |
2913 | 2938 | | |
2914 | | - | |
2915 | | - | |
2916 | | - | |
2917 | | - | |
| 2939 | + | |
2918 | 2940 | | |
2919 | 2941 | | |
2920 | 2942 | | |
2921 | | - | |
2922 | | - | |
| 2943 | + | |
| 2944 | + | |
| 2945 | + | |
| 2946 | + | |
| 2947 | + | |
| 2948 | + | |
| 2949 | + | |
| 2950 | + | |
| 2951 | + | |
| 2952 | + | |
| 2953 | + | |
| 2954 | + | |
2923 | 2955 | | |
2924 | 2956 | | |
2925 | 2957 | | |
| |||
2930 | 2962 | | |
2931 | 2963 | | |
2932 | 2964 | | |
| 2965 | + | |
| 2966 | + | |
| 2967 | + | |
| 2968 | + | |
| 2969 | + | |
| 2970 | + | |
| 2971 | + | |
| 2972 | + | |
| 2973 | + | |
| 2974 | + | |
| 2975 | + | |
| 2976 | + | |
2933 | 2977 | | |
2934 | 2978 | | |
2935 | 2979 | | |
| |||
2938 | 2982 | | |
2939 | 2983 | | |
2940 | 2984 | | |
| 2985 | + | |
| 2986 | + | |
| 2987 | + | |
| 2988 | + | |
| 2989 | + | |
| 2990 | + | |
| 2991 | + | |
| 2992 | + | |
| 2993 | + | |
| 2994 | + | |
2941 | 2995 | | |
2942 | 2996 | | |
| 2997 | + | |
| 2998 | + | |
| 2999 | + | |
| 3000 | + | |
| 3001 | + | |
| 3002 | + | |
2943 | 3003 | | |
2944 | 3004 | | |
2945 | | - | |
| 3005 | + | |
2946 | 3006 | | |
2947 | 3007 | | |
2948 | 3008 | | |
2949 | | - | |
| 3009 | + | |
| 3010 | + | |
| 3011 | + | |
| 3012 | + | |
| 3013 | + | |
2950 | 3014 | | |
2951 | 3015 | | |
2952 | 3016 | | |
| |||
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
157 | 160 | | |
158 | 161 | | |
159 | 162 | | |
| |||
162 | 165 | | |
163 | 166 | | |
164 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
165 | 172 | | |
166 | 173 | | |
167 | 174 | | |
168 | 175 | | |
169 | | - | |
| 176 | + | |
170 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
171 | 181 | | |
172 | 182 | | |
173 | 183 | | |
| |||
179 | 189 | | |
180 | 190 | | |
181 | 191 | | |
| 192 | + | |
| 193 | + | |
182 | 194 | | |
183 | | - | |
| 195 | + | |
184 | 196 | | |
185 | 197 | | |
186 | 198 | | |
| |||
0 commit comments