Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how do i write this equation?

1 回表示 (過去 30 日間)
Reza Ghasemi
Reza Ghasemi 2020 年 5 月 28 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
hello, how do i write this?
my code is
k = abs(x).*exp(-abs(x))
  2 件のコメント
Walter Roberson
Walter Roberson 2020 年 5 月 28 日
Your k (lowercase) is fine for that; now you just have to integrate that according to the methods of your assignment.
Reza Ghasemi
Reza Ghasemi 2020 年 5 月 28 日
yup i got it thank you

回答 (1 件)

Nishant Gupta
Nishant Gupta 2020 年 5 月 30 日
You can use 'int' function to perform integration as following:
syms x;
k = int(abs(x).*exp(-abs(x)),x,[-3,3]);
  1 件のコメント
Walter Roberson
Walter Roberson 2020 年 5 月 30 日
This Question was really the continuation of another Question, in which the assignment was to use a riemann sum to approximate the integral.

Community Treasure Hunt

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

Start Hunting!

Translated by