Message Boards Message Boards

[✓] Avoid 'protected' warnings?

GROUPS:

Was working some training problems and solved this one as below: Verify GCD[x] * LCM[y] = x * y for 74613 and 85085.


In[22]:= (GCD[x, y] * LCM[x, y] = x * y) /. {x -> 74613 , y -> 85085}

During evaluation of In[22]:= Set::write: Tag Times in GCD[x,y] LCM[x,y] is Protected.

Out[22]= 6348447105

How should I rewrite this solution so as to avoid the warning?

POSTED BY: Dennis Lawler
Answer
2 months ago

Have a look at the difference of =, ==, and ===

http://community.wolfram.com/groups/-/m/t/1070946

POSTED BY: Sander Huisman
Answer
2 months ago

== works. Thanks you.

POSTED BY: Dennis Lawler
Answer
2 months ago

Have a look at the difference of =, ==, and ===

http://community.wolfram.com/groups/-/m/t/1070946

POSTED BY: Dennis Lawler
Answer
2 months ago

Group Abstract Group Abstract