mathematical symbol in the result
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Fadzli
el 3 de Mzo. de 2017
Comentada: Walter Roberson
el 3 de Mzo. de 2017
Hi all,
I just run a program in Matlab and it gives a result of "5.6490e-006 +9.7844e-006i". I know what does it means by "5.6490e-006" but I'm not sure about "+9.7844e-006i", why there is "i" symbol at the back. Maybe this is more to mathematical definition but anyone can help? Thanks
0 comentarios
Respuesta aceptada
Walter Roberson
el 3 de Mzo. de 2017
The i represents sqrt(-1), so your result was 5.6490e-006 + sqrt(-1) * 9.7844e-006
0 comentarios
Más respuestas (1)
Fadzli
el 3 de Mzo. de 2017
1 comentario
Walter Roberson
el 3 de Mzo. de 2017
You have negative x values, leading to a negative value to the 1/3 power.
You might perhaps be expecting the real root, but when you use ^ the operation is defined in terms of log and exp, which leads to complex values for most roots of negative values. You can use nthroot
https://www.mathworks.com/help/matlab/ref/nthroot.html
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!