求解具有自由度的符号方程组

编程入门 行业动态 更新时间:2024-10-10 11:20:04
本文介绍了求解具有自由度的符号方程组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试解决具有自由度的符号系统.它假设使用参数,但它无法处理一些简单的事情,例如:

I'm trying to solve a symbolic system with degrees of freedom. It supposes to use parameters, but it fails to handle something simple such as:

syms x1 x2 x3 x4 x5 x6 x7 x8 real con = [ x1 + x2 + x3 + x4 + x5 + x6 + x7 + x8 == 1080 x2 + x3 == 0 x6 + x7 == 0 ]; s = solve(con, 'ReturnConditions', 1 ,'PrincipalValue', true)

输出:

Warning: Unable to find explicit solution. For options, see help. > In solve (line 317) In testm (line 10) In run (line 91) s = struct with fields: x1: [0×1 sym] x2: [0×1 sym] x3: [0×1 sym] parameters: [1×0 sym] conditions: [0×1 sym]

Lucien 的解决方案也适用于此:


Lucien's solution applies to this as well:

求解具有整数变量的符号方程

推荐答案

也许可以帮到你.

s = solve(con, [x1 x2 x3 x4 x5 x6 x7 x8], 'ReturnConditions', 1 ,'PrincipalValue', true);

更多推荐

求解具有自由度的符号方程组

本文发布于:2023-11-30 06:14:25,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1648991.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:方程组   自由度   符号

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!