Post Reply 
problem with CHS
03-01-2019, 06:56 PM
Post: #6
RE: problem with CHS
On XCas, rand(n, 1, 10) does not really meant n random numbers, ranged 1 to 10

I think it meant n random samples from list 1 to 10, thus all elements are unique.
If I try rand(10, 1, 2), XCas session is *crashed*

The random sign sx, sy list may be shortened as 1 liner:

[sx, sy] := makemat(x -> rand(2)*2 - 1, 2, n);
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
problem with CHS - Tyann - 03-01-2019, 09:22 AM
RE: problem with CHS - StephenG1CMZ - 03-01-2019, 01:42 PM
RE: problem with CHS - rprosperi - 03-01-2019, 01:56 PM
RE: problem with CHS - Tyann - 03-01-2019, 02:44 PM
RE: problem with CHS - Tyann - 03-01-2019, 05:26 PM
RE: problem with CHS - Albert Chan - 03-01-2019 06:56 PM
RE: problem with CHS - Didier Lachieze - 03-01-2019, 09:49 PM
RE: problem with CHS - Tyann - 03-02-2019, 05:50 AM



User(s) browsing this thread: