Calculating Value of Inverse function
이전 댓글 표시
Hi
I have the function f(x) = x^2/(1+sqrt(x)) and I am trying to calulate the value of the invrese function at 2 i.e. F^-1(2)
I am trying to use 'finverse' but and have succefulle extracted the inverse function and seperatley calculating the value but nor during the same attempt.
this is the latest attempt
sym x
x = 2;
g = finverse(x.^2./(1+sqrt(x)),x);
f = @(x) g;
disp(f(2))
채택된 답변
추가 답변 (1개)
댓글 수: 6
Johan Ahlberg
2022년 10월 17일
Sam Chak
2022년 10월 17일
It thinks you used symbolic variable "x" as indices
syms x
x = 2; % <--- because of this line
f(x) = (x^2)/(1 + sqrt(x));
g = finverse(f)
You can comment out it.
Johan Ahlberg
2022년 10월 17일
VBBV
2022년 10월 17일
clear
check the workspace variables if it has x value assigned to 2, use clear and try again
Johan Ahlberg
2022년 10월 17일
카테고리
도움말 센터 및 File Exchange에서 Calendar에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


