Stephen Ryder

48 Reputation

4 Badges

15 years, 277 days

MaplePrimes Activity

These are answers submitted by Stephen Ryder

Thanks guys, got it to work now. Appreciate it Steve
I have read up when you construct an Array, consisting of a sample or something of that nature. I have taken a sample from a normal distribution n*m times m, n are parameters X:=RandomVariable(Normal(0,1/sqrt(n))); k:=Concatenate(2,Array([seq(0,i=1..m)]),Alias(Sample(X,m*n),[1..m,1..n])); Now I want to apply the function tanh to every element of k. k is of Array form. So I thought I could do this by applying Array again or is there some other way?
Sorry I got it wrong. I mean applying an initialiser function to an existing Array of sample data. If that makes any sense.
Page 1 of 1