Christopher2222

MaplePrimes Activity


These are replies submitted by Christopher2222

Thanks, I'm using the GUI actually.  By clearing the screen, I mean Crtl-A <Delete>

Never thought of print copy and pasting back in.  It doesn't look too bad however I get error, unterminated procedure but it looks okay.  but the printproc should prove useful.

pnew := subs((i=30) = (i=50), eval(p));  doesn't work for me, it returns the original proc without substitution

And when I substitute for an i<50 case, I get Error, `=` unexpected

 

Thanks, I'm using the GUI actually.  By clearing the screen, I mean Crtl-A <Delete>

Never thought of print copy and pasting back in.  It doesn't look too bad however I get error, unterminated procedure but it looks okay.  but the printproc should prove useful.

pnew := subs((i=30) = (i=50), eval(p));  doesn't work for me, it returns the original proc without substitution

And when I substitute for an i<50 case, I get Error, `=` unexpected

 

convexhull can be used.  Building on Markiyan's suggestion.

with(simplex):
a:=convexhull(B00,output=[hull])
plot(a);

 

 

convexhull can be used.  Building on Markiyan's suggestion.

with(simplex):
a:=convexhull(B00,output=[hull])
plot(a);

 

 

subs, okay thanks. 

This is a global change, correct?  So just to be clear if I changed it to Normal(0,3) I would need to -

unprotect(ArrayTools[RandomArray]);
ArrayTools[RandomArray]:=subs(Normal(0,3)=Normal(0,1), eval(ArrayTools[RandomArray]));
protect(ArrayTools[RandomArray]);

 ... to return it back to the original, right?

 

subs, okay thanks. 

This is a global change, correct?  So just to be clear if I changed it to Normal(0,3) I would need to -

unprotect(ArrayTools[RandomArray]);
ArrayTools[RandomArray]:=subs(Normal(0,3)=Normal(0,1), eval(ArrayTools[RandomArray]));
protect(ArrayTools[RandomArray]);

 ... to return it back to the original, right?

 

@acer Incidentally, I came up with almost the exact approach as you last night, and also I think you are right that, that is what Herclau had intended.  But I didn't divide the RandomArray by 10 (never thought really if that would change the distribution relatively or not) but instead slightly changed the size of the circle to make the distribution more apparent.

t :=  (same as before)
x := Vector(N, i-> 5*sin(10*t[i])+5*I*cos(10*t[i]) + RandomArray(distribution = normal) + I * RandomArray(distribution = normal) ):
plots:-complexplot(convert(x,list),style=point,symbol=point);

Also I didn't include the datatype=complex[8] because it appeared to work the same without it.

Without adding noise on the imaginary component, I see that the noise is only generated in the x direction as pagan had earlier asked what type of distribution I wanted since I was very unclear about it.

@acer Incidentally, I came up with almost the exact approach as you last night, and also I think you are right that, that is what Herclau had intended.  But I didn't divide the RandomArray by 10 (never thought really if that would change the distribution relatively or not) but instead slightly changed the size of the circle to make the distribution more apparent.

t :=  (same as before)
x := Vector(N, i-> 5*sin(10*t[i])+5*I*cos(10*t[i]) + RandomArray(distribution = normal) + I * RandomArray(distribution = normal) ):
plots:-complexplot(convert(x,list),style=point,symbol=point);

Also I didn't include the datatype=complex[8] because it appeared to work the same without it.

Without adding noise on the imaginary component, I see that the noise is only generated in the x direction as pagan had earlier asked what type of distribution I wanted since I was very unclear about it.

@Erik : with regards to your minor quible - I might draw your attention to ?ArrayTools[RandomArray] the help explicitly states for distribution=normal The RandomArray(distribution = normal) function randomly generates a scalar value drawn from a normal distribution on the unit interval.  So being impossible as you say then the help file needs to be changed unless, of course, I interperetted it wrong.

@Acer : I am taking Eriks suggestion, he offers excellent advice, as do you.  But I also wanted to go a bit further. 

I appreciate all of your inputs.

@Erik : with regards to your minor quible - I might draw your attention to ?ArrayTools[RandomArray] the help explicitly states for distribution=normal The RandomArray(distribution = normal) function randomly generates a scalar value drawn from a normal distribution on the unit interval.  So being impossible as you say then the help file needs to be changed unless, of course, I interperetted it wrong.

@Acer : I am taking Eriks suggestion, he offers excellent advice, as do you.  But I also wanted to go a bit further. 

I appreciate all of your inputs.

I should have said curve instead of line and I was unsure of the type of separation I wanted.  Most likely radially I would think.

In Maple 12.02, it appears the threshold for exporting is symbolsize=6.  4 and 5 don't appear to change size and 3 produces a blank plot in the worksheet.

In Maple 12.02, it appears the threshold for exporting is symbolsize=6.  4 and 5 don't appear to change size and 3 produces a blank plot in the worksheet.

@pagan I wasn't sure how to include the imaginary component without errors.  How would you add the imaginary component in the plot.  If it is obvious, I do not see it, please show.

And I do see the signal is swamped by the noise, hence another question related to how to change the default distribution values in specific syntaxes which has not been completely addressed yet. 

 

@pagan I wasn't sure how to include the imaginary component without errors.  How would you add the imaginary component in the plot.  If it is obvious, I do not see it, please show.

And I do see the signal is swamped by the noise, hence another question related to how to change the default distribution values in specific syntaxes which has not been completely addressed yet. 

 

First 103 104 105 106 107 108 109 Last Page 105 of 155