Home > mpt > @polytope > eq.m

eq

PURPOSE ^

EQ Checks if two polytopes are equal

SYNOPSIS ^

function status = eq(P,Q,Options)

DESCRIPTION ^

EQ Checks if two polytopes are equal

 status = eq(P,Q,Options)

 ---------------------------------------------------------------------------
 DESCRIPTION
 ---------------------------------------------------------------------------
 STATUS = EQ(P,Q) returns TRUE (1) if P==Q

 USAGE:
   P==Q
   eq(P,Q)
   eq(P,Q,Options)

 NOTE: If P and Q are empty polytopes, returns 1 (true)
       If one of them is empty and second one is not, returns 0 (false)

 ---------------------------------------------------------------------------
 INPUT
 ---------------------------------------------------------------------------
 P,Q              - Polytopes or polyarrays
 Options.rel_tol  - relative tolerance
 Options.abs_tol  - absolute tolerance: the larger abs_tol, the more likely that "true" 
                    will be returned.

 Note: If Options is missing or some of the fields are not defined, the default
       values from mptOptions will be used

 ---------------------------------------------------------------------------
 OUTPUT                                                                                                    
 ---------------------------------------------------------------------------
 status           - Logical statement (1 if P==Q, 0 otherwise)

 see also NE, LE, GE

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Thu 30-Mar-2006 10:26:47 by m2html © 2003