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?
采纳的回答
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
0 个评论
更多回答(2 个)
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
2022-3-13
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)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Exponents and Logarithms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!