How to use the constant e?
古いコメントを表示
So the question is given x =0.2 calculate (x^2) *e^4. I know for pi you just type pi which is just pi in the command. But how do I type e in the command window. Also how to use exponents? Do you just go (x^2) ? Do I need those brackets?
9 件のコメント
Kenneth Gabriel
2016 年 9 月 14 日
James Tursa
2016 年 9 月 14 日
If Star's answer met your needs, please formally Accept it.
Xingyu Xia
2019 年 7 月 8 日
exp()=e^
x1 = exp(1j*8*pi/7)
DGM
2023 年 10 月 22 日
Use exp(). It's the same answer that's already been demonstrated several times on this page.
Neliswa
2025 年 4 月 18 日
when i am using this normal e the code does not work mos, what should i do?
"when i am using this normal e the code does not work mos, what should i do?"
採用された回答
その他の回答 (2 件)
Harsh
2021 年 10 月 18 日
6 投票
e=exp
then use bracket
i.e. e^5=exp(5) in matlab
Cai Walsh
2022 年 3 月 13 日
1 投票
say i needed Vout = VS (1 − e^-T/RC) , how would i write this as ive tried exp(-T/R*C) but wouldt work as theres a negative
1 件のコメント
T = 2;
R = 5;
C = 7;
y = exp(-T/R*C)
z = exp(-14/5)
Or did you want to divide by the product of R and C?
w = exp(-T/(R*C))
q = exp(-2/35)
カテゴリ
ヘルプ センター および File Exchange で Exponents and Logarithms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!