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?

1 Ansicht (letzte 30 Tage)

Akzeptierte Antwort

Fangjun Jiang
Fangjun Jiang am 9 Jan. 2025

Weitere Antworten (1)

Walter Roberson
Walter Roberson am 10 Jan. 2025
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 = 

Kategorien

Mehr zu Mathematics finden Sie in Help Center und File Exchange

Produkte


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by