Thanks! If you make a symbol z = sp.symbol('x') then create an equation eq = sp.Eq(z ** 2, -1) and write sp.solveset(eq, z) then you should get all the complex solutions (namely i and -i). Do you not get this?
The system of linear equations results in 1 set of 1 tuple with 3 elements. to unpack use list(sol)[0][element]. It may come in future videos, but the function sp.solve directly creates a list rather than a set, which does need to be converted. If you know the solutions are finite, is there a reason not to use solve ?
These videos are hidden gems
Really great vids till now, precise and to the point.
Thanks, we're glad you like them :)
These videos are really very great.
Great video! Thank you!
Great job done, Thumbs up!
got a question: make z is a complex symbol as shown in the video
why solveset(z**2+1=0) gives no solution?
Thanks!
If you make a symbol
z = sp.symbol('x')
then create an equation
eq = sp.Eq(z ** 2, -1)
and write
sp.solveset(eq, z)
then you should get all the complex solutions (namely i and -i). Do you not get this?
@@TMQuest yeah, thanks, it works now!😄
The system of linear equations results in 1 set of 1 tuple with 3 elements. to unpack use list(sol)[0][element]. It may come in future videos, but the function sp.solve directly creates a list rather than a set, which does need to be converted. If you know the solutions are finite, is there a reason not to use solve ?
I think in this case, using solve would also work fine :)
Great. Is is there a GitHub repo?
No, not for this project. We're planning on adding github repos for future projects :)