How to use the constant e?
1.397 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Kenneth Gabriel
el 14 de Sept. de 2016
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?
Respuesta aceptada
Star Strider
el 18 de Abr. de 2023
Editada: MathWorks Support Team
el 18 de Abr. de 2023
Use the exponential function exp(y) to compute e^y. For example:
x = 0.2;
Result = (x^2)*exp(4)
Result =
2.1839
0 comentarios
Más respuestas (2)
Cai Walsh
el 13 de Mzo. de 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 comentario
Steven Lord
el 13 de Mzo. de 2022
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)
Ver también
Categorías
Más información sobre Exponents and Logarithms en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!