How to use the constant e?
조회 수: 1,005 (최근 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!