Solving a complex integral

1 回表示 (過去 30 日間)
Sergio Manzetti
Sergio Manzetti 2018 年 2 月 9 日
コメント済み: Sergio Manzetti 2018 年 2 月 9 日
Hi, I have a complex integral to solve, however, there are some weird things here:
syms x h a b c n k
F = cos.^2(n.*pi.*x);
G = cos.^2(n.*pi.*x).*x.^2;
a = i.*h.^3.*diff(F,x,3);
b = -k.*[diff(G,x,3)];
c = 1/4.*k.*x.^4.*(cos.^2(n.*pi.*x));
f = a.*b.*c
result2a = int(f, x)
result2b1 = vpa(result2a)
result2b2 = double(result2a)
However, F = cos.^2(n.*pi.*x); is not accepted, why?

採用された回答

Birdman
Birdman 2018 年 2 月 9 日
編集済み: Birdman 2018 年 2 月 9 日
F = cos(n.*pi.*x).^2;
and the same goes for other cos terms.
  1 件のコメント
Sergio Manzetti
Sergio Manzetti 2018 年 2 月 9 日
Indeed, thanks!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by