Adding two polynomial(anonymous)
20 ビュー (過去 30 日間)
古いコメントを表示
How do I add two anonymous function to define the polynomials.
a=@(x) x.^3 + 6*x.^2 + 11*x +6;
>> b=@(x) x.^2 - 2*x +1;
>> syms a, syms b
>> a+b
ans=
a + b
0 件のコメント
採用された回答
James Tursa
2017 年 2 月 4 日
編集済み: James Tursa
2017 年 2 月 4 日
E.g., using your original "a" and "b" functions, simply:
syms x
a(x) + b(x)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Calculus についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!