File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 7979_coefficient_gcd (α, β) =  gcd (α, β)
8080_coefficient_gcd (α:: AbstractFloat , β) =  one (Base. promote_typeof (α, β))
8181_coefficient_gcd (α, β:: AbstractFloat ) =  one (Base. promote_typeof (α, β))
82+ _coefficient_gcd (α:: Complex , β) =  one (Base. promote_typeof (α, β))
83+ _coefficient_gcd (α, β:: Complex ) =  one (Base. promote_typeof (α, β))
84+ _coefficient_gcd (α:: Complex , β:: AbstractFloat ) =  one (Base. promote_typeof (α, β))
85+ _coefficient_gcd (α:: AbstractFloat , β:: Complex ) =  one (Base. promote_typeof (α, β))
8286function  _coefficient_gcd (α:: AbstractFloat , β:: AbstractFloat )
8387    return  one (Base. promote_typeof (α, β))
8488end 
89+ function  _coefficient_gcd (α:: Complex , β:: Complex )
90+     return  one (Base. promote_typeof (α, β))
91+ end 
8592
8693function  Base. lcm (
8794    p:: _APL ,
Original file line number Diff line number Diff line change 298298        g =  @inferred  gcd (p1, p2)
299299        @test  isone (g)
300300    end 
301+ 
302+     @testset  " Complex coefficient GCD"   begin 
303+         Mod. @polyvar  p q
304+         p1 =  MP. polynomial (p^ 2  +  q^ 2 , ComplexF64)
305+         p2 =  MP. polynomial (p *  q, ComplexF64)
306+         g =  @inferred  gcd (p1, p2)
307+         @test  isone (g)
308+     end 
301309end 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments