Message Boards Message Boards

0
|
3592 Views
|
3 Replies
|
1 Total Likes
View groups...
Share
Share this post:
GROUPS:

[?] Avoid 'protected' warnings?

Posted 7 years ago

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
3 Replies

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

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

POSTED BY: Dennis Lawler

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

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

POSTED BY: Sander Huisman

== works. Thanks you.

POSTED BY: Dennis Lawler
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract