minor fix
This commit is contained in:
		
							parent
							
								
									30861fdac6
								
							
						
					
					
						commit
						e57d8fde1c
					
				@ -26,7 +26,7 @@ namespace LA {
 | 
				
			|||||||
template <typename T>
 | 
					template <typename T>
 | 
				
			||||||
void Polynomial<T>::polydiv(const Polynomial &rhs, Polynomial &q, Polynomial &r) const
 | 
					void Polynomial<T>::polydiv(const Polynomial &rhs, Polynomial &q, Polynomial &r) const
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
if(rhs[rhs.degree()]==0) laerror("division by a polynomial with zero leading coefficient - simplify it first");
 | 
					if(rhs[rhs.degree()]==(T)0) laerror("division by a polynomial with zero leading coefficient - simplify it first");
 | 
				
			||||||
if(rhs.degree()==0) //scalar division
 | 
					if(rhs.degree()==0) //scalar division
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
	q= *this/rhs[0];
 | 
						q= *this/rhs[0];
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user