フィルターのクリア

using solve command does not return a single simplified soln

3 ビュー (過去 30 日間)
Jake G
Jake G 2016 年 6 月 22 日
回答済み: Jake G 2016 年 6 月 22 日
I am using the command solve however instead of returning a single number (which is possible because I can do it by hand) it returns 'some value1 + some value2'
w=63000;
s = 1j*w;
A = 0.3;
B = 8e-8;
C = 7e-5;
D = 3.5;
syms Kp Ki x
Gs=A*s/(B*s^2+C*s+D)
PI=Kp + Ki/s
eqn = x -pi/2 + angle(Gs) == 2*pi/3
soln = solve(eqn,x)
soln =
(7*pi)/6 + 7011494199134999/4503599627370496
the problem is that if I try and operate on 'soln' I dont get a simplified answer...how can I get matlab to simplify that answer into 1 number?
for example: tan(soln)
ans =
tan((7*pi)/6 + 7011494199134999/4503599627370496)

採用された回答

Jake G
Jake G 2016 年 6 月 22 日
I figured it out, using double(x) worked

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by