How to write this expression in MatLab
1 view (last 30 days)
Show older comments
x*e^(ln(2)x)=1
0 Comments
Accepted Answer
Jan
on 7 Dec 2021
x * exp(log(2^x)) = 1
3 Comments
Yongjian Feng
on 7 Dec 2021
Edited: Yongjian Feng
on 7 Dec 2021
exp already means power, e^x is exp(x). matlab will even simplify this for you.
Jan
on 7 Dec 2021
@MARTINS Preimanis: Whenever you have such questions, there are two standard ways:
- Ask Matlab: doc exp
- Try it: exp(2)
More Answers (1)
Yongjian Feng
on 7 Dec 2021
Edited: Yongjian Feng
on 7 Dec 2021
e^x is exp(x) in matlab, and lnx is log(x).
0 Comments
See Also
Categories
Find more on Get Started with MATLAB 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!