How to write this expression in MatLab

 Accepted Answer

x * exp(log(2^x)) = 1

3 Comments

should't this (log(2^x)) be raised in power to the exp
exp already means power, e^x is exp(x). matlab will even simplify this for you.
@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

Products

Release

R2018a

Tags

Asked:

on 7 Dec 2021

Commented:

Jan
on 7 Dec 2021

Community Treasure Hunt

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

Start Hunting!