how do i write this equation?

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 日

0 投票

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.

この質問は閉じられています。

質問済み:

2020 年 5 月 28 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by