Difference between revisions of "AreEqual Command"

From GeoGebra Manual
Jump to: navigation, search
m
m
Line 4: Line 4:
 
Normally this command computes the result numerically. This behavior can be changed by using the [[Prove Command|Prove]] command.
 
Normally this command computes the result numerically. This behavior can be changed by using the [[Prove Command|Prove]] command.
 
:{{example| 1=<div><code><nowiki>AreEqual[Circle[(0, 0),1],x^2+y^2=1]</nowiki></code> yields ''true'' since the two circles have the same center and radius. </div>}}
 
:{{example| 1=<div><code><nowiki>AreEqual[Circle[(0, 0),1],x^2+y^2=1]</nowiki></code> yields ''true'' since the two circles have the same center and radius. </div>}}
{{Note| <code><nowiki>AreEqual[Segment[(1, 2), (3, 4)], Segment[(3, 4), (1, 6)]]</nowiki></code> is different from <code><nowiki>Segment[(1, 2), (3, 4)] == Segment[(3, 4), (1, 6)]</nowiki></code> as the latter compares just the lengths}}
+
:{{Note| <code><nowiki>AreEqual[Segment[(1, 2), (3, 4)], Segment[(3, 4), (1, 6)]]</nowiki></code> is different from <code><nowiki>Segment[(1, 2), (3, 4)] == Segment[(3, 4), (1, 6)]</nowiki></code> as the latter compares just the lengths}}
<br>
 
 
{{Note| See also [[AreCollinear Command|AreCollinear]], [[AreConcyclic Command|AreConcyclic]], [[AreConcurrent Command|AreConcurrent]], [[ArePerpendicular Command|ArePerpendicular]], [[AreParallel Command|AreParallel]] commands.}}
 
{{Note| See also [[AreCollinear Command|AreCollinear]], [[AreConcyclic Command|AreConcyclic]], [[AreConcurrent Command|AreConcurrent]], [[ArePerpendicular Command|ArePerpendicular]], [[AreParallel Command|AreParallel]] commands.}}

Revision as of 09:16, 27 August 2015


AreEqual[ <Object>, <Object> ]
Decides if the objects are equal.

Normally this command computes the result numerically. This behavior can be changed by using the Prove command.

Example:
AreEqual[Circle[(0, 0),1],x^2+y^2=1] yields true since the two circles have the same center and radius.
Note: AreEqual[Segment[(1, 2), (3, 4)], Segment[(3, 4), (1, 6)]] is different from Segment[(1, 2), (3, 4)] == Segment[(3, 4), (1, 6)] as the latter compares just the lengths
© 2021 International GeoGebra Institute