File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1- function MP. divides (m1:: Monomial , m2:: Monomial )
1+ function MP. divides (m1:: Monomial{<:NonCommutative} , m2:: Monomial{<:NonCommutative} )
2+ error (" Not implemented yet" )
3+ end
4+ function MP. divides (m1:: Monomial{<:Commutative} , m2:: Monomial{<:Commutative} )
25 e1 = exponents (m1)
36 v1 = variables (m1)
47 e2 = exponents (m2)
Original file line number Diff line number Diff line change @@ -166,4 +166,9 @@ import MultivariatePolynomials as MP
166166 @test filter (mono -> degree (mono) == 1 , X) == monomial_vector ([x, y])
167167 @test filter (mono -> degree (mono) == 0 , X) == monomial_vector ([x^ 0 ])
168168 end
169+ @testset " Noncommutative div" begin
170+ @ncpolyvar x y
171+ err = ErrorException (" Not implemented yet" )
172+ @test_throws err div (x, x * y)
173+ end
169174end
You can’t perform that action at this time.
0 commit comments