Vuvidos 3

20 Reputation

4 Badges

3 years, 311 days

MaplePrimes Activity


These are replies submitted by Vuvidos 3

If you could please see the orange graph below on picture: I am trying to reproduce a similar plot with the given function on my first post but not sure how I can set a limit on the y-axis such that it does not cut my graph

@Carl Love 

@tomleslie Thank you very much

This is exactly what I am trying to achieve. I appreciate it @tomleslie 


So basically what I want to do is tobe able to select a spin ( -1 and 1) randomly on the matrix ( I was trying to do it systematically)

 

restart

with(LinearAlgebra):

nR := 10:

r := rand(0 .. 1); s := proc () options operator, arrow; (-1)^r() end proc; C := RandomMatrix(nR, nC, generator = s)

C := Matrix(10, 10, {(1, 1) = 1, (1, 2) = 1, (1, 3) = 1, (1, 4) = -1, (1, 5) = 1, (1, 6) = -1, (1, 7) = -1, (1, 8) = -1, (1, 9) = 1, (1, 10) = -1, (2, 1) = -1, (2, 2) = -1, (2, 3) = 1, (2, 4) = 1, (2, 5) = -1, (2, 6) = 1, (2, 7) = -1, (2, 8) = 1, (2, 9) = -1, (2, 10) = 1, (3, 1) = -1, (3, 2) = -1, (3, 3) = -1, (3, 4) = -1, (3, 5) = 1, (3, 6) = 1, (3, 7) = 1, (3, 8) = -1, (3, 9) = 1, (3, 10) = -1, (4, 1) = 1, (4, 2) = -1, (4, 3) = -1, (4, 4) = 1, (4, 5) = 1, (4, 6) = -1, (4, 7) = -1, (4, 8) = -1, (4, 9) = -1, (4, 10) = 1, (5, 1) = 1, (5, 2) = 1, (5, 3) = -1, (5, 4) = 1, (5, 5) = -1, (5, 6) = 1, (5, 7) = -1, (5, 8) = 1, (5, 9) = -1, (5, 10) = 1, (6, 1) = 1, (6, 2) = -1, (6, 3) = 1, (6, 4) = 1, (6, 5) = 1, (6, 6) = 1, (6, 7) = 1, (6, 8) = -1, (6, 9) = 1, (6, 10) = 1, (7, 1) = -1, (7, 2) = -1, (7, 3) = 1, (7, 4) = 1, (7, 5) = 1, (7, 6) = 1, (7, 7) = 1, (7, 8) = 1, (7, 9) = -1, (7, 10) = -1, (8, 1) = -1, (8, 2) = 1, (8, 3) = -1, (8, 4) = -1, (8, 5) = -1, (8, 6) = 1, (8, 7) = -1, (8, 8) = 1, (8, 9) = 1, (8, 10) = 1, (9, 1) = 1, (9, 2) = -1, (9, 3) = -1, (9, 4) = 1, (9, 5) = 1, (9, 6) = -1, (9, 7) = 1, (9, 8) = -1, (9, 9) = 1, (9, 10) = -1, (10, 1) = -1, (10, 2) = 1, (10, 3) = 1, (10, 4) = -1, (10, 5) = -1, (10, 6) = 1, (10, 7) = 1, (10, 8) = -1, (10, 9) = 1, (10, 10) = 1})

(1)

``

``

``

``

``


 

Download rand.mw

@Joe Riel 

Thank you so much @tomleslie 

Thank you! @Kitonum 

Thank you, that worked @Carl Love 

Page 1 of 1