列出变量与因素的所有可能组合

发布于 2025-01-29 09:19:53 字数 253 浏览 1 评论 0原文

因此,我正在尝试考虑如何列出5个变量的所有可能组合(具有设定值和第二个属性,例如收费,因此,例如,我将拥有x = 100,并且具有 + +的费用状态1)每个变量都有不同的因素(因此x可以在1到4之间变化,y仅在1到2之间)。 最后,我想拥有一个列表,其中包括变量的组合以及所有类似的总价值: 4 x+2 y+3*z = 1400(3+)

这可能吗?我试图将头缠绕在这个问题上,或者如果其中有太多变量。 我是初学者,所以像我愚蠢一样解释。

谢谢

So I am trying to think of how I can list all possible combinations of 5 variables (that have a set value AND a second property, like a charge for example, so for example I would have x = 100 and has a charge state of +1) with different factors to each variable (so x can vary between 1 and 4, y only between 1 and 2).
At the end I would like to have a list with the combination of variables and the summed value of all like this:
4x+2y+3*z = 1400 (3+)

Is this possible? I am trying to wrap my head around this or if there are too many variables in this.
I am a beginner, so explain it like I am dumb.

Thx

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文