Group Abstract Group Abstract

Message Boards Message Boards

0
|
9.2K Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Avoid failure with FindInstance[1 == (c + d Sqrt[3]), {c, d}, Integers]?

FindInstance[1 == (c + d Sqrt[3]), {c, d}, Integers]

Why does this not return c = 1 and d = 0 in version 5.2?

It says that it can't find a solution.

3 Replies
POSTED BY: Sander Huisman
In[1]:= FindInstance[c + d Sqrt[3.] == 1, {c, d}, Integers]

Out[1]= {{c -> 1, d -> 0}}

Thank you. I see now that using the floating point clears it up.

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