Having difficulty solving the following instructions:
Solve the system of simultaneous transcendental equations (e^x+ ln(y) = 2 ; sin(x) + cos(y) = 1). Hint: Look for a solution pair (x,y) that meets both conditions.
- How do I get this to give me a value for both x and y?
- What do the error messages mean?
Here is my input and output:
In[32]:= eq1 = Exp[x] + Ln[y] -2
eq2 = Sin[x] + Cos[y] - 1
system = Solve[eq1 == 0 & eq2 == 0, {x, y}]
Out[32]= -2 + E^x + Ln[y]
Out[33]= -1 + Cos[y] + Sin[x]
During evaluation of In[32]:= Solve::ifun: Inverse functions are being used by Solve, so some solutions may not be found; use Reduce for complete solution information.
During evaluation of In[32]:= Solve::svars: Equations may not give solutions for all "solve" variables.
Out[34]= {{y -> -ArcCos[1 - Sin[x]]}, {y -> ArcCos[1 - Sin[x]]}}
Ln
in the help system here reference.wolfram.com/language/?source=nav and then look upLog
in the help system. You can also evaluateLn[1]
andLog[1]
and see what you get $\endgroup$&&
instead of&
$\endgroup$FindRoot
:Plot[{Exp[2 - Exp[x]], ArcCos[1 - Sin[x]]}, {x, 0, 4}, Epilog -> {PointSize[Large], Red, Point[{x, y} /. FindRoot[{Exp[x] + Log[y] == 2, Sin[x] + Cos[y] == 1}, {x, 0.8}, {y, 0.8}]]} ]
$\endgroup$Ln
"? Surprised you didn't get more diagnostic output. $\endgroup$