Difference between revisions of "AreEqual Command"

From GeoGebra Manual
Jump to: navigation, search
(remove warning)
(IsTangent added)
 
(8 intermediate revisions by 5 users not shown)
Line 1: Line 1:
'''Bold text'''<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|logical}}{{betamanual|version=5.0}}
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|logical}}
 
+
;AreEqual( <Object>, <Object> )
;AreEqual[ <Object>, <Object> ]
 
 
:Decides if the objects are equal.
 
:Decides if the objects are equal.
 
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[Segment[(1, 2), (3, 4)], Segment[(3, 4), (1, 6)]]</nowiki></code> yields ''true'' since the two segments have the same length. This command is an equivalent for the [[Boolean values|equal operation]], thus <code><nowiki>Segment[(1, 2), (3, 4)] ≟ Segment[(3, 4), (1, 6)]</nowiki></code> will result exactly the same output.</div>}}
+
:{{example| 1=<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. }}
{{Note| See also [[AreCollinear Command|AreCollinear]], [[AreConcyclic Command|AreConcyclic]], [[AreConcurrent Command|AreConcurrent]], [[ArePerpendicular Command|ArePerpendicular]], [[AreParallel Command|AreParallel]] commands.}}
+
 
 +
{{Notes|1=
 +
* <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
 +
*See also [[AreCollinear Command|AreCollinear]], [[AreConcyclic Command|AreConcyclic]], [[AreConcurrent Command|AreConcurrent]], [[AreCongruent Command|AreCongruent]], [[ArePerpendicular Command|ArePerpendicular]], [[AreParallel Command|AreParallel]], [[IsTangent Command|IsTangent]] commands.}}

Latest revision as of 20:42, 16 May 2018


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.


Notes:
© 2024 International GeoGebra Institute