Solving a symbolic equation with integer variables

后端 未结 0 1879
醉梦人生
醉梦人生 2021-01-16 17:21

Why does the following return an empty solution?

syms a b positive integer
s = solve(a + b == 5, \'ReturnConditions\', 1)

This does work:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题