How to write this expression in MatLab

1 view (last 30 days)
x*e^(ln(2)x)=1

Accepted Answer

Jan
Jan on 7 Dec 2021
x * exp(log(2^x)) = 1
  3 Comments
Yongjian Feng
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
Jan on 7 Dec 2021
@MARTINS Preimanis: Whenever you have such questions, there are two standard ways:
  1. Ask Matlab: doc exp
  2. Try it: exp(2)

Sign in to comment.

More Answers (1)

Yongjian Feng
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).

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Products


Release

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!