rlewis

40 Reputation

5 Badges

13 years, 90 days

MaplePrimes Activity


These are replies submitted by rlewis

@acer Thak you!  That's perfect!  I had no idea that was available.

Now obviously Maple is very complicated with many functions, but I really feel this should be given a much more prominent place in the documentation!  I searched around quite a bit and found no mention of it.

@Kitonum That's nice.  That's Bricard's Case 2.  I've done Case 3.  Thanks to the responders here, I got it to work.  My colleagues and I believe that case three has never been animated before.

@acer I tried this and it seems to work:

g1 := tt -> polygonplot3d(eval([[0, 0, 0], [x1e, y1e, 0], [1, 0, 0]], t = 1/100*tt), color = blue)

seven more liek that, then

P1 := animate([g1, g2, g3, g4, g5, g6, g7, g8], [t], t = 0 .. 104, frames = 105, lightmodel = Light1)

@dharr I tried:

g1 := tt -> pointplot3d(eval(polygon[[0, 0, 0], [x3e, y3e, z3e], [1, 0, 0]], t = 1/100*tt), color = pink);

This produced no error.  x3e, y3e, z3e are defined earlier. They are functions of sin(t) and cos(t).

Similarly for g2, g3, g4.

Then I entered this and got an error:

P1 := animate([g1, g2, g3, g4], [t], t = 0 .. 314, frames = 315);

Error, (in plots/animate) points are not in the correct format

Help!

@dharr Thanks for your answer. I will try again here to upload.

Kitonum, this works pretty well.  It is missing the uppermost part of the graph where there is a smooth cap.

However, more important, of the two curves shown one is spurious.  I expected to see two because the equations for f and g  are degree four.  It looks like your method creates arrays full of data.  I want to weed out the spurious points.

I know another equation that the true data points must satisfy.  I paste it below.  How can I use this?

Thanks.

256 - 32 x^2 + x^4 - 32 y^2 + 2 x^2 y^2 + y^4 + 128 z +  8 x^2 z + 8 y^2 z + 48 z^2 + 2 x^2 z^2 + 2 y^2 z^2 + 

 8 z^3 + z^4 = 0, or maybe realistically, that the absolute value < 10^-12 or so.

Thank you Kitonum.  I will study this.

Thank you Kitonum.  From also graphing g (as you did f) I see that the Maple commands produce the part of the graph between t = 2.27 and t = 3.47.  It is reasonable and seems correct.

BUT THEN:  what do I need to do to get the entire graph plotted?  There is much more than this.  I tried a competing CAS and I can get much more plotted, indeed too much, as there is a spurious feature.  

Perhaps a Maple command that does not use ODEs?

@Markiyan Hirnyk  Thank you for the idea.  But then what??  You have defined f, g, and h as procedures, but what would the rest of the process be?  

@Preben Alsholm Do you mean like this:

ics:=solve(%,x=x0, y=y0, z=z0);    for the correct numeric values of x0, y0, z0 ?

@Kitonum Unfortunately the real problem of interest is far too complex to eliminate the t. 

@Preben Alsholm I wil try this thanks.  However, won't      eval(eqs2,t=0);

  find several initial points? (Maybe not on the trivial example I posted)  I already know the correct initial point.  I don't want a very messy graph with lots of spurious curves.

@one man I'm not sure what you mean by "solve this sytem for only one t".  The simple example has low degree polynomials that could be solved analytically.  My real problem is far too complex for that.

@acer Grrr.  I have no idea why it stoppoed working with Maple 2015.  For the next two days, I only have access to Maple 12.0.

The Maple 12 instructions given above work.  HOWEVER,

- the gif produced is rather small (apparently 512x512 pixels).  I found some documentation online about plotoptions to change width and height, but it doesn't work, i.e., plotsetup accepts the specifications for height and width, but the animation does not; the gif remains empty with no error message.

- Worse, the obeserver's perpective in the animation is not good.  How do I specify that in the animate command?

- Animation does one forward pass.  How do I make it at least do forward and back?

@rlewis Or rather, I can't save anymore to gif.  I went to the machine where I run Maple 2015 and saved wondeful animated gifs two days ago to tweak it and save again.  Nope.  It refuses to save.  I restarted Maple, did everything I can think of.   It creates a gif of size 0 and will not put anything into it.

I save by right-clicking on the anmation, choosing export -> gif.  

BTW, saving on the machine (Mac) with Maple 12.0 never worked, in spite of the advice posted abpve.

1 2 Page 1 of 2