Can someone help me to solve this equation?

6 ビュー (過去 30 日間)
Amelos
Amelos 2016 年 9 月 19 日
編集済み: James Tursa 2016 年 9 月 19 日
syms alpha
gamma = asin(k3 * sin(alpha)/k2);
delta_k = k1 + k2 * cos(gamma) - k3 * cos(alpha);
phi = delta_k* l_cry;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%phase matching angle
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
eq0 = phi==0;
Alpha = solve (eq0, alpha);
Alpha = double(Alpha);
phaseMatchingAngle =Alpha; % [rad]
I get this error:
Warning: The solutions are parameterized by the symbols: x. To include parameters and conditions in the solution, specify the 'ReturnConditions' option.
> In solve>warnIfParams (line 510)
In solve (line 360)
In phaseMatchingNoncollAngle_uniaxial (line 24)
Warning: The solutions are valid under the following conditions: in(x, 'real') & (in((x + acos(100691026651348577645466123997729/101259576687255896431374526311264))/(2*pi),
'integer') & 0 <= (14308015215741192*cos(x))/3916498633832911 - 10615683778682338/3916498633832911 | in((x -
acos(100691026651348577645466123997729/101259576687255896431374526311264))/(2*pi), 'integer') & 0 <= (14308015215741192*cos(x))/3916498633832911 -
10615683778682338/3916498633832911). To include parameters and conditions in the solution, specify the 'ReturnConditions' option.
> In solve>warnIfParams (line 517)
In solve (line 360)
In phaseMatchingNoncollAngle_uniaxial (line 24)
Error using subsref

回答 (0 件)

カテゴリ

Help Center および File ExchangeNumber Theory についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by