1.JPG
2.JPG

댓글 수: 6

madhan ravi
madhan ravi 2019년 2월 24일
upload your code
syms x u C
f = (-1/3) * exp(-3*x);
u_of_x = (1/3)* (x^3);
du = diff(u_of_x);
divide_dx = f/du;
f_of_u = subs(f,x,u_of_x);
F_of_u = int(x^2 * exp(-(x^3)))+C
F_of_u=subs(F_of_u,u_of_x,u);
F=subs(F_of_u,u_of_x,u);
Falt = int(x^2 * exp(-(x^3)))+C
madhan ravi
madhan ravi 2019년 2월 24일
편집: madhan ravi 2019년 2월 24일
Why have you added a C(I know arises after integration) ?
Abdulrahman Al Ali
Abdulrahman Al Ali 2019년 2월 24일
편집: Abdulrahman Al Ali 2019년 2월 24일
yes, its what we do after integrating?
madhan ravi
madhan ravi 2019년 2월 24일
Just remove C.
Abdulrahman Al Ali
Abdulrahman Al Ali 2019년 2월 24일
I already tried removing C it didnt fix my problem

댓글을 달려면 로그인하십시오.

 채택된 답변

Naman Bhaia
Naman Bhaia 2019년 2월 27일

0 개 추천

Hey Abdulrahman,
Based on what I can understand I think there is a logical error in the 15th line of your code. F_of_u is a function of x and not u_of_x. Therefore there is nothing the subs command can replace. Also if needed you can refer to the documentation for the subs() function.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기

질문:

2019년 2월 24일

답변:

2019년 2월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by