What does 'li' mean?
142 views (last 30 days)
I have solved an equation in matlab using the following code:
ththa2 = (2*exp(5*x))/(3*exp(2*x)+1*exp(-2*x))
y = diff(ththa2)
eqn = y == 0
S = solve(eqn)
The answer is
Would you please tell me what does this '1i' mean in the answer? What kind of a value is this?
James Tursa on 20 Oct 2021
Edited: James Tursa on 20 Oct 2021
1i is used to ensure it isn't confused with a variable named i that you might have in the workspace. I.e., 1i is always sqrt(-1), whereas just i might be sqrt(-1) or a variable that you created named i. It is common to see 1i used in MATLAB for sqrt(-1) because it is always unambiguous.