matlab - Human sensible outputs from finverse -
i using finverse
, giving strange simplifications example
>> syms x >> f = -0.0185*x^2 + 12.4698; >> finverse(f) ans = (2^(1/2)*185^(1/2)*(62349 - 5000*x)^(1/2))/185
rather simpler
sqrt(12.4698 - x) / sqrt(0.0185)
or effect. there way force "human sensible outputs"? tried simplify
didn't much.
you can used function simple
syms x f = -0.0185*x^2 + 12.4698; z = finverse(f) v = simple(z); z = (2^(1/2)*185^(1/2)*(62349 - 5000*x)^(1/2))/185 >> v v = (23069130 - 1850000*x)^(1/2)/185
remove ; @ end of function calls, see @ different simplification.
Comments
Post a Comment