Christopher2222

MaplePrimes Activity


These are answers submitted by Christopher2222

Yes, a different random set of points per frame is what I want but I can't get your code to work right now for some reason
Error, (in TranslateOne["color"]) improper op or subscript selector
Error, (in plots:-display) expecting plot structures but received: [frame[0], frame[1], frame[2], frame[3], frame[4], frame[5]...

I am also trying something else but very similar, using this code I get a single random point per frame.  I want the display to add the points continually in succession so the plot gradually fills up with points. 

with(plots):
a := [seq((rand(1 .. 50))(), i = 1 .. 50)]:
b := [seq((rand(1 .. 50))(), i = 1 .. 50)]:
c := [seq([a[i], b[i]], i = 1 .. nops(a))]:
display(seq(pointplot(c[i]), i = 1 .. nops(c)), insequence = true);

Do I need to do a nested sequence? 

I tried    display(seq(seq(pointplot(c[i]),i=1..t),t=1..20)),insequence=true)   in hopes to display 1st the one point then 2nd the first and the second point then 3rd the first, second, third point ... etc   It didn't work out exactly as I wanted. 

from the help page on add, it reads below.  You can extrapolate from there.

L:=[seq(i,i=1..5)]
                                   L:=[1,2,3,4,5]

add(i,i=L)
                                    15

 

Okay, found a silly mistake, but for some reason I thought there was a limit on the number of elements in a list.

How can I animate random points?

Thanks, and for plotting random points on x2 in 3-space I have

with(plots):
f:=[seq((rand(-50..50))(i),i=1..100)]:
g := [seq(f[i]^2, i = 1 .. 100)]:
h := [seq((rand(-50 .. 50))(i), i = 1 .. 100)]:
j := seq([f[i], g[i], h[i]], i = 1 .. nops(f)):
pointplot3d({j},color=black);
 

How would I do that same thing using your method? 

Also I run into the known limitation of lists having a maximum of 100 points of data so I couldn't use lists for a large number of data points ie. 101 points. 

 

That would be a cool implementation for browsing a matrix under the image tab.  ie Visualizing data structures in a matrix array. 

Do you mean using image tools to clean up the lines?

How about

with(plots):
f := x -> x^2;
display([plot(f(x),x=1..4,color=blue,filled=true),plot(f(x),x=-5..5),color=red,thickness=2)]);  # shades area x=1 to x=4 under the curve.

This works on Maple V R3 so it should work on version 5 as well.

Strangely, while is not in the help pages of Maple on it's own. 

However it is a C programming language construct so prior knowledge of C helps.

wohoo!  More finds, but NOT from Maplesoft I can add one more to my list.  

I managed to find the Maple 6 product brochure.  Now I just need 7 8 9 which should be out there somewhere and 5 which I'm not sure that one actually exists.

Thanks for the Maple history on the website but it doesn't quite contain as much information as in the product brochures.  and Thanks to search for the Maple updates in the help file, it's not exactly what I want but it could do. 

I thought at one point Maple had all of them on their website at one point but now they've removed the older stuff.  I believe right around when Maple 10 was in it's final phases they started phasing out older download updates from their website. 

Doesn't anyone have the product brochures for the older versions? 

I see now thanks. 

a:=1:
n:=30:
for i from 1 to n do
   a:= nextprime(a):
   printf("%d,%d  ",i,a);
od:

 

... and how can I display the successive results in a row?

So I would have to use convert then?

convert(a, Array);

I'm currently not near a computer with maple installed so I can't check right away but would the array then autosize to the largest indici value?  ie.  If i had a[5,6]:=7;  then would Maple automatically make the array 5x6 and fill in zeros for the undefined positions? 

If I assign positions of a matrix or array but do not define it as such, Maple does not return the values if I type in a; 

For example: if I type in a[1,1]:=5: a[1,2]:=6: a[2,1]:=7: a[2,2]:=8:  and then type in a;  Is it because I have not assigned those values to represent a matrix or array in .. a .. that it does not return the values?  How would I force Maple to recognize the values I assigned to the positions of a so that when I type a, I would get the 2x2 matrix without using the Matrix or Array commands?

** edit ** ooops I meant to put this in as a new topic.

I believe using the frequencyscale=absolute option is what you are looking for. 

 

First 40 41 42 43 44 45 46 Page 42 of 48