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