Hello, can MATLAB solve equations like the one below? I mean, can MATLAB find the conditions for z that satisfy this relationship, instead of just numerical solutions?

2 次查看(过去 30 天)

采纳的回答

Fangjun Jiang
Fangjun Jiang 2025-1-9

更多回答(1 个)

Walter Roberson
Walter Roberson 2025-1-10
If the * stands for conjugation, then it seems to be universally true for finite values
syms z
eqn = sqrt(conj(z)) - conj(sqrt(z));
sol = solve(eqn, 'returnconditions', true)
Warning: Unable to find explicit solution. For options, see help.
sol = struct with fields:
z: [0x1 sym] parameters: [1x0 sym] conditions: [0x1 sym]
F = @(z12) sqrt(z12(:,1) - z12(:,2)*1i) - conj(sqrt(z12(:,1) + z12(:,2)*1i));
points = [randn(10,1), randn(10,1)];
Fp = F(points);
mask = abs(Fp) < 1e-10;
[points(mask,1), points(mask,2)]
ans = 10×2
-0.6113 0.7367 -1.7766 0.4581 -0.0074 -1.1701 -0.7251 -0.7878 -0.2333 -0.7190 -0.2703 0.9049 -0.2190 -0.0145 2.1642 0.6960 -0.2029 -0.0401 1.6399 0.6714
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>
Fp
Fp = 10×1
0 0 0 0 0 0 0 0 0 0
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>
subs(eqn, z, points(:,1)+points(:,2)*1i)
ans = 

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

产品


版本

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by