How to use the constant e?

1.092 Ansichten (letzte 30 Tage)
Kenneth Gabriel
Kenneth Gabriel am 14 Sep. 2016
Bearbeitet: Stephen23 am 18 Apr. 2025
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 Kommentare
Neliswa
Neliswa am 18 Apr. 2025
when i am using this normal e the code does not work mos, what should i do?
Stephen23
Stephen23 am 18 Apr. 2025
Bearbeitet: Stephen23 am 18 Apr. 2025
"when i am using this normal e the code does not work mos, what should i do?"

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

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

Weitere Antworten (2)

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

Cai Walsh
Cai Walsh am 13 Mär. 2022
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 Kommentar
Steven Lord
Steven Lord am 13 Mär. 2022
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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Exponents and Logarithms finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by