Processing math: 100%
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 9 years ago

fidbc gravatar image

Not entirely sure why you assume v is complex and want to plot it when v[1,7].

Perhaps this is what you want to use (?).

complex_plot(lambda v: abs(matrix(CC, [[0,1,0,0],[-v,1-v,0,0],[0,-v,1-v,0],[0,0,1,0]]).eigenvalues()[0]),(-10,10),(-10,10))

Sample output:

Output

Although, then you may want to drop the abs to get:

image description

click to hide/show revision 2
No.2 Revision

Not entirely sure why you assume v is complex and want to plot it when v[1,7].

Perhaps this is what you want to use (?).use.

complex_plot(lambda v: abs(matrix(CC, [[0,1,0,0],[-v,1-v,0,0],[0,-v,1-v,0],[0,0,1,0]]).eigenvalues()[0]),(-10,10),(-10,10))

Sample output:

OutputOutput 1

Although, then you may want to drop the abs to get:

image descriptionoutput 2

If you are just interested in the case where vR and want to plot the module of the eigenvalue then

plot(lambda v: abs(matrix(CC, [[0,1,0,0],[-v,1-v,0,0],[0,-v,1-v,0],[0,0,1,0]]).eigenvalues()[0]),(x,-20,10))

will do the job.

output 3

Update: Added case where v[1,7].

click to hide/show revision 3
No.3 Revision

Perhaps this is what you want to use.

complex_plot(lambda v: abs(matrix(CC, [[0,1,0,0],[-v,1-v,0,0],[0,-v,1-v,0],[0,0,1,0]]).eigenvalues()[0]),(-10,10),(-10,10))

Sample output:

Output 1

Although, then you may want to drop the abs to get:

output 2

If you are just interested in the case where vR and want to plot the module of the eigenvalue then

plot(lambda v: abs(matrix(CC, [[0,1,0,0],[-v,1-v,0,0],[0,-v,1-v,0],[0,0,1,0]]).eigenvalues()[0]),(x,-20,10))

will do the job.

output 3

Update: Added case where v[1,7].vR.