3つの未知数を含む3​式の3次方程式の組み​合わせの計算

12 views (last 30 days)
泰誠 平山
泰誠 平山 on 26 Jul 2023
Commented: 泰誠 平山 on 27 Jul 2023
下記の式のδとHvにdata1~3を代入した3つの未知数を含む3式の3次方程式の組み合わせの計算し,a,b,Δを求めたいのですが,fsolve関数を用いているのですが,解が得られません。これを実現できるコードをご教授頂きたいです。

Accepted Answer

Atsushi Ueno
Atsushi Ueno on 26 Jul 2023
Moved: Atsushi Ueno on 26 Jul 2023
solve関数で良いと思います。(数値解を表示する為vpasolve関数を使っています)
syms Delta a b
sigma = [650.79; 2060.569; 3069.291];
Hv = [260.4983; 155.0493; 133.3068];
eq = a./sigma.^2.*Delta.^3 - 3*a./sigma.*Delta.^2 + 3*a.*Delta + Hv - b == 0;
vpasolve(eq) % solve(eq)
ans = struct with fields:
Delta: 556.18948362319137896775814373735 a: 0.17289013795918067420082101392092 b: 372.66787664953881970246228598271
  1 Comment
泰誠 平山
泰誠 平山 on 27 Jul 2023
非常に参考になりました!ありがとうございました!

Sign in to comment.

More Answers (0)

Categories

Find more on Symbolic Math Toolbox in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!