Stretto

145 Reputation

5 Badges

1 years, 69 days

MaplePrimes Activity


These are questions asked by Stretto

How does one set the size of a 3D plot? I get tired of dragging it's size when it resets it to the default size. size=[w,h] does not work with plot3d.

 

matrixplot(A, style=surfacewireframe,heights=histogram);

when A has zero values they are graphed, is there any way to not have them show? Choose any matrix for A I just want to see non-zero elements.

 

Also when looking down on the 3d graph I'd like the tops of the histogram cells to be colored as if I'm looking at a 2d plot. When I do it now I can't tell any difference between any of the cells. This looks to be a lighting issue I suppose. There is some variation but it is very difficult to tell. Some light settings work better than others. Z-Hue seems to be the best but still a little washed out.

I've always found that the way maple handles rotating graphs to be very unintuitive. It is very difficult for me to get the exact view I want by rotating the graph.

 

Usually i want to view for 1 2d projection then rotate to view the other. In most programs one can do this easier and there usually is some modifier key. In maple this is not the case and how it handles rotation is bizzaire.

For example, if I set the orientation to be x axis and start to rotate by dragging the mouse horizontally the 3d graph starts to rotate all 3 axis. It seems to depend on where the mouse is exactly at in the graph. That is, if I drag only in the horizontal but the mouse starts at the top then it is different than when it starts at the bottom. This is not intuitive it it requires me to know exactly how maple does things and thing work backwards...

Many programs have a modifier key that will snap one direction/angle to not change. This is idea. rather than have all 3 angles changing arbitrarily(it is nice when one just wants to perview the graph in 3D but not good when one wants to get a specific angle).

 

Is there any easy way to get what I want? I know I can set the orientation manually. That is not what I'm after. I'm after changing the rotation algorithm that maple uses or to add a modifier key to restrict rotation to only 2 angles.

 

 

I know how to define functions and generally how to pass them to another function and usually everything works out... rarely though I run in to problems and my lack of how maple works internally becomes a stumbling block. I usually just hack things together. I'd rather understand what exactly is happening.

 

It seems that apply and unapply have something to do with this.

 

I usually define functions like this, e.g.,

 

f := x->x^2 + 3;

g := (f,x)->cos(f(x));

 

and things like g(f,x) work as expected.

But this doesn't always work.

 

E := proc(f, depth)
    if depth <= 0 then return f; fi:
     E(f(x), depth-1); # Trying to actually compute f(f(x)), say. I know we can just loop.
end proc:


E(x->2*x, 3);

2*x(x)(x)

 

rather than 8x

 

I see that maple is somehow applying the function but in some odd way(it seems to be creating a function from the variable x and then another function from that).

 

Anyways, I don't understand the mechanics of it. In some cases f works other one must add the variablef(x), etc...

 

There seems to be some subtle difference between f and f(x)...  In a programing language like C. f is sort of a function pointer and f(x) is an evaluation of f at x. I guess there is something similar goingn on with maple but i've not been able to figure it out. Any ideas?

(D@@2)(T)(0) + :-O(1) + 1/2*sin(1/2*Pi*T(x))^2 + 1/12*sin(1/2*Pi*T(x))*Pi*diff(T(x), x)*cos(1/2*Pi*T(x)) + :-O(2/3*(3/2*Pi^2*diff(T(x), x)*cos(1/2*Pi*T(x))^2*diff(T(x), x, x) - Pi^3*diff(T(x), x)^3*cos(1/2*Pi*T(x))*sin(1/2*Pi*T(x)) + sin(1/2*Pi*T(x))*Pi*diff(T(x), x, x, x)*cos(1/2*Pi*T(x)) - 3/2*sin(1/2*Pi*T(x))^2*Pi^2*diff(T(x), x, x)*diff(T(x), x))/Pi^2)

 

How can I remove the Big O terms from an expression?

4 5 6 7 8 9 10 Page 6 of 11