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

1 回表示 (過去 30 日間)
Nguyen Hoang Thien Phuoc
Nguyen Hoang Thien Phuoc 2013 年 1 月 4 日
Find fx from gx and f(gx)
Ex:
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!

回答 (1 件)

bym
bym 2013 年 1 月 5 日
here is a start
clc;clear
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

タグ

タグが未入力です。

製品

Community Treasure Hunt

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

Start Hunting!

Translated by