Why can't I do the integral?
1 回表示 (過去 30 日間)
古いコメントを表示
Vania Ramirez
2021 年 5 月 20 日
回答済み: Sulaymon Eshkabilov
2021 年 5 月 20 日
syms x
f=1/x
a=2
b=7
D1=diff(f,x);
D2=diff(D1,x);
D3=diff(D2,x);
D4=diff(D3,x);
E=(1/(b-a))*D4
F=int(E,a,b)
Error using sym/subsindex (line 857) Invalid indexing or function definition. Indexing must follow MATLAB indexing. Function arguments must be symbolic variables, and function body must be sym expression. Error in Untitled2 (line 12) F=int(E,a,b),
0 件のコメント
採用された回答
Sulaymon Eshkabilov
2021 年 5 月 20 日
Clear up all variables should help or worst case, restrat your MATLAB. You may also need to have the floating point numbers in your answer. If so, use:
F=double(int(E,a,b))
0 件のコメント
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Symbolic Math Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!