how do I write expression for this equation??
Show older comments
e ^x + 2^−x + 2 cos x − 6 = 0
1 Comment
Rik
on 10 Mar 2022
You must have tried something? What was it?
Answers (2)
Cris LaPierre
on 10 Mar 2022
1 vote
See Ch 2 of MATLAB Onramp
Sam Chak
on 10 Mar 2022
1 vote
I understand the frustration of a beginner. However, since you didn't provide much info, I can only guess and hope that they will be helpful to you in exploring what you want to learn. Some people may just want to solve the problem in the assignment for the sake of passing the coursework.
If you want to solve the nonlinear equation, then use fsolve.
If you want to plot the nonlinear function, then learn how to plot here:
When you have free time after solving the problem, try taking up the MATLAB Onramp courses as suggested by @Cris LaPierre.
Categories
Find more on Mathematics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!