Hi All. Just wondering why answer to (i) is not 4.9e+4. an why answer to (iii) is not (9x)/2 or 4.5 x. Many thanks. Brian
% (i) Find f(1.2) in the form ‘a x 10^n’ where a is correct to 1 decimal place
% (ii) Find x for which g(x) = 3.5
% (iii) Find g(f(x)) in simplest form
clear, clc
syms x
f = exp(9*x); g = log(sqrt(x));
% (i)
f_at_x = subs(f,x,1.2); % evaluates f(x = 1.2) as symbolic
f_at_x = double(f_at_x); % converts to double (real)
f_at_x = round(f_at_x,1) % ??? round to 1 decimal place
% (ii)
solve (g == 3.5, x)
% (iii)
g_f_x = (subs(g,x,f));
g_f_x = simplify(g_f_x)% (i) Find f(1.2) in the form ‘a x 10^n’ where a is correct to 1 decimal place
% (ii) Find x for which g(x) = 3.5
% (iii) Find g(f(x)) in simplest form
clear, clc
syms x
f = exp(9*x); g = log(sqrt(x));
% (i)
f_at_x = subs(f,x,1.2); % evaluates f(x = 1.2) as symbolic
f_at_x = double(f_at_x); % converts to double (real)
f_at_x = round(f_at_x,1) % ??? round to 1 decimal place
% (ii)
solve (g == 3.5, x)
% (iii)
g_f_x = (subs(g,x,f));
g_f_x = simplify(g_f_x) % (i) Find f(1.2) in the form ‘a x 10^n’ where a is correct to 1 decimal place
% (ii) Find x for which g(x) = 3.5
% (iii) Find g(f(x)) in simplest form
clear, clc
syms x
f = exp(9*x); g = log(sqrt(x));
% (i)
f_at_x = subs(f,x,1.2); % evaluates f(x = 1.2) as symbolic
f_at_x = double(f_at_x); % converts to double (real)
f_at_x = round(f_at_x,1) % ??? round to 1 decimal place
% (ii)
solve (g == 3.5, x)
% (iii)
g_f_x = (subs(g,x,f));
g_f_x = simplify(g_f_x) simplifying symbolic, rounding decimals MATLAB Answers — New Questions