MATLAB Answers

Help me find fx from gx,f(fx) ?

Asked by Nguyen Hoang Thien Phuoc on 4 Jan 2013

Find fx from gx and f(gx)


find f(1/2) with gx=1-x^2 and f(gx)=(x^4+x^2)/(1+x^2)

syms x;
a=input(' a= ');
g=input(' gx= ');
f=input(' fx = ');

...?????? I don't know...please help me ! Thanks a lot!



No tags are associated with this question.


1 Answer

Answer by bym
on 5 Jan 2013

here is a start

syms x
gx = input('gx = ','s');
fx = input('f(gx) = ','s');
a = input('f(n) = ','s');  % 1/2 in your example
n = solve([gx '-' a],'x')
% f(1/2) = ? for you to complete
doc subs


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!