|
|
|
|
|
by henrikeh
2029 days ago
|
|
Yes, the symbolic functions can be made "retroactively". The various conventional functions are overloaded with the symbolic input. >> syms x
>> f = @(x) log(sqrt(x)).^2
f = function_handle with value:
@(x)log(sqrt(x)).^2
>> f(x)
ans = log(x^(1/2))^2
>> finverse(f(x))
ans = exp(2*x^(1/2))
And to implement under: function u = under(f, g)
syms x
g_inv = matlabFunction(finverse(g(x)));
u = @(x) g_inv(f(g(x)));
end
|
|