I'm studying probability and I have come across some integral equations, where the upper bound of integral is a function $f(x) = \text{max}(g(x), const.)$ for some function $g(x)$.
My problem is with using solve
in Matlab, which returns the following error:
Input arguments must be convertible to floating-point numbers.
I tried some Googling – the command feval(symengine,'max', g(x) , const.)
doesn't help either.
Any ideas about how to tackle this problem? Even very trivial code like
K = 5 ;
syms x real
solve(max(K,x)+3 == 10,x);
results in error. Any advice would be greatly appreciated.