Message Boards Message Boards

0
|
4433 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Use solve function with conditions?

Posted 4 years ago

When I use Solve-function,You may get answers you don't want to know. For example,

 In:=Solve[a+b+c+d.....&&..........,{a,b,c,d},Integers]

Out= {a -> 1, b -> 3, c -> 1, d -> 2}, {a -> 1, b -> 4, c -> 1, d -> 2}, {a -> 1, b -> 5, c -> 1, d -> 2}, {a -> 1, b -> 6, c -> 1, d -> 2}......

When you do not want to know the answers of a and b. I just want to know what happens to the values ?? of c and d. As the number of results increases, it becomes more difficult to find the combination of numbers c and d. What should I do in this case? So,I do this.

 In:=Solve[a+b+c+d.....&&..........,{c,d},Integers]

Out=c -> ConditionalExpression[2,.....

However, it did not work. What should I do?

POSTED BY: Keito Tanemura
2 Replies
Posted 4 years ago

Thank you so much, You've been very helpful

POSTED BY: Updating Name

You can use the option "MaxExtraConditions->Automatic".For Example,enter image description here

POSTED BY: Wang JhONG
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