How to use the constant e?

1,125 次查看(过去 30 天)
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 个评论
Neliswa
Neliswa 2025-4-18
when i am using this normal e the code does not work mos, what should i do?
Stephen23
Stephen23 2025-4-18
编辑:Stephen23 2025-4-18
"when i am using this normal e the code does not work mos, what should i do?"

请先登录,再进行评论。

采纳的回答

Star Strider
Star Strider 2023-4-18
编辑:MathWorks Support Team 2023-4-18
Use the exponential function exp(y) to compute e^y. For example: 
x = 0.2;
Result = (x^2)*exp(4)
Result =
2.1839

更多回答(2 个)

Harsh
Harsh 2021-10-18
e=exp
then use bracket
i.e. e^5=exp(5) in matlab

Cai Walsh
Cai Walsh 2022-3-13
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 个评论
Steven Lord
Steven Lord 2022-3-13
T = 2;
R = 5;
C = 7;
y = exp(-T/R*C)
y = 0.0608
z = exp(-14/5)
z = 0.0608
Or did you want to divide by the product of R and C?
w = exp(-T/(R*C))
w = 0.9445
q = exp(-2/35)
q = 0.9445

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Exponents and Logarithms 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by