Mathematica 9 is now available

Equal

Usage

• 如果 lhsrhs相同, lhs Equal rhs返回True.


Notes

lhs Equal rhs用来表示一个即将使用函数如Solve等处理的符号等式.
• 如果lhsrhs是同一表达式, lhs Equal rhs返回True .
• 如果通过比较数字或其它元数据,比如字符串,lhsrhs确实不相等,lhs Equal rhs返回False.
• 对于近似数,如果它们至多在最后八个二进制位不同(粗略地计算,等价于至多在最后两个十进制位不同),则它们被认为是相等的. • 2 Equal 2.的结果为True.
• 如果所有  相等, Equal  Equal  的结果为True .
Equal[e] 的结果为True.
•对于精确数值, Equal在内部通过数值近似建立不等式.这个过程可能受到全局变量$MaxExtraPrecision设置的影响.
• 在 StandardFormInputForm中, lhs Equal rhs可以输入为lhs \[Equal] rhslhs  rhs.
• 参见Mathematica全书:1.5.5节1.5.6节.
• 同时参见: SameQ, Unequal, KroneckerDelta, Order, Element.
Further Examples

For comparison, SameQ (Equal=) checks whether the expressions are identical in form.

In[1]:=  

Out[1]=

Equal will return unevaluated if it cannot determine that the right-hand side and left-hand side are identical. SameQ is more assertive; use it if you need a function that will return False.

In[2]:=  

Out[2]=



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.