Message Boards Message Boards

0
|
6705 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

In version 11.0.1 it does not give any solutions but it does say it can't solve it, and returns it back unevaluated.

If one changes Sqrt[3] to Sqrt[3.0] then it does return {{c -> 1, d -> 0}}

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

Group Abstract Group Abstract