vv

14257 Reputation

20 Badges

11 years, 13 days

MaplePrimes Activity


These are replies submitted by vv

@acer 

The multiplication order seems to be Ok. And also the corrected description I gave. (Probably the Psi-Phi switch in the display is just an error).
This can be seen in the following simple animation:
 

cx:=plot3d([v, cos(u),sin(u)],u=0..2*Pi,v=0..10, color=red,style=surface):
cy:=plot3d([cos(u),v,sin(u)],u=0..2*Pi,v=0..10, color=yellow,style=surface):
cz:=plot3d([cos(u),sin(u),v],u=0..2*Pi,v=0..10, color=blue,style=surface):  L:=-15..15:
p:=(a,b,c) -> plots:-display(cx,cy,cz, 
orientation=[a,b,c], view=[L,L,L],labels=["x","y","z"],axes=normal,tickmarks=[0,0,0],
title=cat("theta=",a," phi=",b," psi=",c)):
a,b,c:=20,40,60:
p(a,b,c);
P:=NULL:
for k to c do P:=P,p(0,0,k) od: for k to b do P:=P,p(0,k,c) od: for k to a do P:=P,p(k,b,c) od:
plots:-display(P, insequence=true);

However I am not sure whether the senses ot the rotations are correct in the matrices. E.g. theta -> - theta or Pi - theta or something like that.
There are too many possibilities, so maybe someone from Maplesoft will be merciful ... [for the PROJECTION stuff too].

Best regards,
V.A.

 

 

@Markiyan Hirnyk 

The problem with these angles is that they are not intuitive (except theta).
If you keep e.g. theta and psi and play only with phi, it is not easy to anticipate the effect (at least for me). AFAIK everybody chooses theese angles by trial and error interactively.
I have used Explore to understand better the situation.
Maybe this could be useful for other users:

cx:=plot3d([v, cos(u),sin(u)],u=0..2*Pi,v=0..10, color=red,style=surface):
cy:=plot3d([cos(u),v,sin(u)],u=0..2*Pi,v=0..10, color=yellow,style=surface):
cz:=plot3d([cos(u),sin(u),v],u=0..2*Pi,v=0..10, color=blue,style=surface):  L:=-12..12:
p:=(a,b,c) -> plots:-display(cx,cy,cz, orientation=[a,b,c], view=[L,L,L],labels=["x","y","z"],axes=normal,tickmarks=[0,0,0]):
Explore(p(a,b,c),a=0..360, b=0..360, c=0..360); 



 

@acer 

Very nice!
Are there other structures in PLOT3D which are not documented? And why?

 

Actually it does not.
colorscheme=["xyzcoloring", (x, y, z)->0]);
should be red.

 

@Melvin Brown 

@student_md 

You will have to give explicit expressions for Xn, Fn.
(Not to mention the problematic diff(f,g) when g is not a symbol).

Otherwise this is just like asking: compute  limit(a(n), n=infinity) 
for an arbitrary a(n).

@John Fredsted 
I also guess that a straightforward answer is
M, Diag := LinearAlgebra:-JordanForm(A, output=['Q','J']);

@tomleslie 
You have used F(0)=0 instead of F(0)=1; the solution dsol4 does not verify Eq1 at 0
eval(Eq1, dsol4(0));
    .870507024896616 = 0
Actually if F(0)=F(1)=F(-1)=0 then F=0 is a solution.
If F is unique then F must be even, see the answer below.

@Christian Wolinski 

You should write a "debugable" version e.g. inserting print(...) in your strategic places. Then someone could execute it and post the results.
[Otherwise "someone" will have to "decompile" it in order to check the expected results].  

"The scope of the package is intended to cover basic precalculus mathematics"
exp(x+I*sin(I*t)) does not look like a function used in precalculus, so we should not expect to work without any problem.
But the fact that the keywords are so "irregular"  and inconsistent is indeed a problem.

 

@toandhsp 

Here it is solve's fault:

solve([x2/(x2+x5) = a1, x3/(x2+x5) = a2, x5/(x2+x5) = a3], {x2, x3, x5});
                    {x2 = 0, x3 = 0, x5 = 0}

On the other side  the first n-1 parameters are supposed to be "independent"
which is not the case:  log[10](2) + log[10](5) = 1.
lnrel(log[10](2), log[10](3), log[10](150));  #works

 


 

 

 

The code looks to me as unnecessarily complicated, almost obfuscated.
Please compare with the similar general solution in the provided link.

@Preben Alsholm 


 

> 

restart;

> 

r:=solve([7/18-(1/2)*cos(15625*Pi*x)=0, 6/125<=x, x<=7/125],x,explicit, allsolutions);

Warning, returning only the first 100 solutions, increase _MaxSols to see more solutions

 

{x = (1/15625)*(750*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(752*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(754*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(756*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(758*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(760*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(762*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(764*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(766*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(768*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(770*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(772*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(774*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(776*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(778*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(780*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(782*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(784*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(786*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(788*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(790*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(792*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(794*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(796*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(798*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(800*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(802*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(804*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(806*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(808*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(810*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(812*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(814*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(816*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(818*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(820*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(822*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(824*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(826*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(828*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(830*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(832*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(834*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(836*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(838*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(840*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(842*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(844*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(846*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(848*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(850*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(852*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(854*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(856*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(858*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(860*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(862*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(864*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(866*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(868*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(870*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(872*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(874*Pi+arccos(7/9))/Pi}, {x = (1/15625)*(752*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(754*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(756*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(758*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(760*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(762*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(764*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(766*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(768*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(770*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(772*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(774*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(776*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(778*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(780*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(782*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(784*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(786*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(788*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(790*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(792*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(794*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(796*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(798*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(800*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(802*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(804*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(806*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(808*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(810*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(812*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(814*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(816*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(818*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(820*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(822*Pi-arccos(7/9))/Pi}, {x = (1/15625)*(824*Pi-arccos(7/9))/Pi}

(1)
> 

evalf(r);

{x = 0.4801384620e-1}, {x = 0.4814184621e-1}, {x = 0.4826984620e-1}, {x = 0.4839784620e-1}, {x = 0.4852584621e-1}, {x = 0.4865384620e-1}, {x = 0.4878184620e-1}, {x = 0.4890984621e-1}, {x = 0.4903784621e-1}, {x = 0.4916584620e-1}, {x = 0.4929384621e-1}, {x = 0.4942184621e-1}, {x = 0.4954984620e-1}, {x = 0.4967784621e-1}, {x = 0.4980584621e-1}, {x = 0.4993384620e-1}, {x = 0.5006184620e-1}, {x = 0.5018984621e-1}, {x = 0.5031784620e-1}, {x = 0.5044584620e-1}, {x = 0.5057384621e-1}, {x = 0.5070184621e-1}, {x = 0.5082984620e-1}, {x = 0.5095784621e-1}, {x = 0.5108584621e-1}, {x = 0.5121384620e-1}, {x = 0.5134184621e-1}, {x = 0.5146984621e-1}, {x = 0.5159784620e-1}, {x = 0.5172584620e-1}, {x = 0.5185384621e-1}, {x = 0.5198184620e-1}, {x = 0.5210984620e-1}, {x = 0.5223784621e-1}, {x = 0.5236584621e-1}, {x = 0.5249384620e-1}, {x = 0.5262184621e-1}, {x = 0.5274984621e-1}, {x = 0.5287784620e-1}, {x = 0.5300584621e-1}, {x = 0.5313384621e-1}, {x = 0.5326184620e-1}, {x = 0.5338984620e-1}, {x = 0.5351784621e-1}, {x = 0.5364584620e-1}, {x = 0.5377384620e-1}, {x = 0.5390184621e-1}, {x = 0.5402984621e-1}, {x = 0.5415784620e-1}, {x = 0.5428584621e-1}, {x = 0.5441384621e-1}, {x = 0.5454184620e-1}, {x = 0.5466984621e-1}, {x = 0.5479784621e-1}, {x = 0.5492584620e-1}, {x = 0.5505384620e-1}, {x = 0.5518184621e-1}, {x = 0.5530984620e-1}, {x = 0.5543784620e-1}, {x = 0.5556584621e-1}, {x = 0.5569384621e-1}, {x = 0.5582184620e-1}, {x = 0.5594984621e-1}, {x = 0.4811415380e-1}, {x = 0.4824215379e-1}, {x = 0.4837015379e-1}, {x = 0.4849815380e-1}, {x = 0.4862615379e-1}, {x = 0.4875415379e-1}, {x = 0.4888215380e-1}, {x = 0.4901015380e-1}, {x = 0.4913815379e-1}, {x = 0.4926615380e-1}, {x = 0.4939415380e-1}, {x = 0.4952215379e-1}, {x = 0.4965015380e-1}, {x = 0.4977815380e-1}, {x = 0.4990615379e-1}, {x = 0.5003415379e-1}, {x = 0.5016215380e-1}, {x = 0.5029015379e-1}, {x = 0.5041815379e-1}, {x = 0.5054615380e-1}, {x = 0.5067415380e-1}, {x = 0.5080215379e-1}, {x = 0.5093015380e-1}, {x = 0.5105815380e-1}, {x = 0.5118615379e-1}, {x = 0.5131415380e-1}, {x = 0.5144215380e-1}, {x = 0.5157015379e-1}, {x = 0.5169815379e-1}, {x = 0.5182615380e-1}, {x = 0.5195415379e-1}, {x = 0.5208215379e-1}, {x = 0.5221015380e-1}, {x = 0.5233815380e-1}, {x = 0.5246615379e-1}, {x = 0.5259415380e-1}, {x = 0.5272215380e-1}

(2)
> 

 


 

 

@J4James 

691-694

@taro 

Actually remove expects the result of the procedure to be Boolean-"evaluable", i.e. creates a Boolen context.
This is not a problem because evalb(evalb(u)) = evalb(u).

@J4James 

See e.g.

Burden R.L.,Faires J.D. - Numerical Analysis, 9th Ed., Brooks/Cole 2011
(pseudocode provided, Maple oriented).

First 132 133 134 135 136 137 138 Last Page 134 of 178