Group Abstract Group Abstract

Message Boards Message Boards

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

Solve diophantine systems?

Posted 10 years ago
POSTED BY: Mark Jonson
3 Replies
POSTED BY: Daniel Lichtblau
In[5]:= Reduce[mat.vars == r, vars, Integers]

Out[5]= (C[1] | C[2]) \[Element] Integers && a == 2 + 8 C[1] && 
 b == 6 + 9 C[1] + 15 C[2] && c == -12 - 30 C[1] - 18 C[2] && 
 d == 9 + 20 C[1] + 11 C[2]
POSTED BY: Frank Kampas
In[3]:= mat = {{3, 4, 18, 24}, {27, 16, 28, 24}}; r = {30, 
  30}; vars = {a, b, c, d};

In[4]:= Reduce[Thread[mat.vars == r], vars, Integers]

Out[4]= (C[1] | C[2]) \[Element] Integers && a == 2 + 8 C[1] && 
 b == 6 + 9 C[1] + 15 C[2] && c == -12 - 30 C[1] - 18 C[2] && 
 d == 9 + 20 C[1] + 11 C[2]
POSTED BY: Frank Kampas
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard