I have the below code, it does not give me the answer. can somebody help me?
With version 12.0 I get an answer with this:
Maximize[{F[r, c], FunctionDomain[F[r, c], c]}, c]
From your input I get the answer
{0.993421, {c -> 0.698707}}
I am using version 14.0.
i have version 12. currently can't updade it.
thank you so much it worked.
Adding in a restriction on $c$ so that you only get real numbers on $F$ seeems to work:
Subscript[M, r] = Maximize[{F[r, c], -1 < c < 1}, c] (* {0.993421, {c -> 0.698707}} *)
this didnt work it gives the below error:
NMaximize::nnum: The function value -F[0.2,-0.868794] is not a number at {c} = {-0.868794}.
Sounds like you'll need to use FindMaximum instead of Maximize.
FindMaximum
Maximize