Post Reply 
==/EQ() and approx()
10-13-2016, 05:56 PM (This post was last modified: 10-13-2016 06:00 PM by Tim Wessman.)
Post: #2
RE: ==/EQ() and approx()
approx is going to be using the CAS for evaluation, and since the CAS will do some simplification this may work.

EQ is for testing exact equality of a list - which is something that was impossible to do without a custom made user function due to automatic list processing and hence it was added. Automatic list processing means you can do something like SIN{1,2,3} and it is handled properly as expected.

However, 2 and '1+1' are not identical objects even though on evaluation they would be. Nor would A and 0, even if A contained 0 because one is a variable and the other a number.

Could you show an example of what you are trying to compare?

For example, if it was {1,2,3} and {1,'1+1',3}, doing an EQ(EVAL({1,2,3}),EVAL({1,'1+1',3})) would do what you want. That might be your solution as well for your case.


Although I work for HP, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
==/EQ() and approx() - TravisE - 10-13-2016, 07:48 AM
RE: ==/EQ() and approx() - Tim Wessman - 10-13-2016 05:56 PM
RE: ==/EQ() and approx() - Tim Wessman - 10-13-2016, 06:03 PM
RE: ==/EQ() and approx() - TravisE - 10-14-2016, 04:43 AM

User(s) browsing this thread: 1 Guest(s)