return new Error( "OObject multiply( x ) error" );
else if( this instanceof Complex ){
if( x instanceof Complex ){
return ((Complex)this).divide( (Complex)x );
} else if( x instanceof Variable ){
Product p = new Product( (Variable)x, true );
return p.multiply( (Complex)this );
} else if( x instanceof Sum ){
Product p = new Product( (Expression)x, true );
return p.multiply( this );
} else if( x instanceof Product ){
Product p = new Product( (Expression)x, true );
return p.multiply( (Complex)this );
} else if( x instanceof Expression ){
Product p = new Product( (Expression)x, true );
return p.multiply( (Complex)this );
}
} else if( this instanceof Variable ){
if( x instanceof Complex ){
Product p = new Product( (Variable)this, false );
return p.divide( (Complex)x );
} else if( x instanceof Variable ){
Product p = new Product( (Variable)this, false );
Product q = new Product( (Variable)x, true );
return p.multiply( q );
} else if( x instanceof Sum ){
Product p = new Product( (Variable)this, false );
Product q = new Product( (Sum)x, true );
return p.multiply( q );
} else if( x instanceof Product ){
Product p = new Product( (Variable)this, false );
return p.divide( (Product)x );
} else if( x instanceof Expression ){
Product p = new Product( (Variable)this, false );
Product q = new Product( (Expression)x, true );
return p.multiply( q );
}
} else if( this instanceof Sum ){
if( x instanceof Complex ){
Product p = new Product( (Expression)this, false );
return p.multiply( (Complex)x );
} else if( x instanceof Expression ){
Product p = new Product( (Expression)x, false );
Product q = new Product( (Expression)x, true );
return p.multiply( q );
}
} else if( this instanceof Product ){
if( x instanceof Complex ){
Product p = (Product)this;
return p.divide( (Complex)x );
} else if( x instanceof Product ){
return ((Product)this).divide( (Product)x );
} else if( x instanceof Expression ){
Product q = new Product( (Expression)x, true );
return ((Product)this).multiply( q );
}
} else if( this instanceof Expression ){
if( x instanceof Complex ){
Product p = new Product( (Expression)this, false );
return p.divide( (Complex)x );
} else if( x instanceof Product ){
Product p = new Product( (Expression)this, false );
return p.divide( (Product)x );
} else if( x instanceof Expression ){
Product p = new Product( (Expression)this, false );
Product q = new Product( (Expression)x, true );
return p.multiply( q );
}
}
return new Error( "OObject divide( x ) error" );
}