vv

12453 Reputation

19 Badges

10 years, 1 days

MaplePrimes Activity


These are replies submitted by vv

@Axel Vogt 


 

a1:=-1+sqrt(1+RootOf(_Z^8-8*_Z^7-22*_Z^6+228*_Z^5+17*_Z^4-624*_Z^3-352*_Z^2+256*_Z+256, index = 2)):

a2:=1:

h:= a ->
RootOf(
a^16-8*a^15*b-4*a^14*b^2-48*a^13*b^3+154*a^12*b^4+40*a^11*b^5-304*a^10*b^6-56*a^9*b^7+451*a^8*b^8-56*a^7*b^9-304*a^6*b^10+40*a^5*b^11+154*a^4*b^12-48*a^3*b^13-4*a^2*b^14-8*a*b^15+b^16-8*a^15-8*a^14*b-192*a^13*b^2-56*a^12*b^3+96*a^11*b^4+456*a^10*b^5+296*a^9*b^6-560*a^8*b^7-560*a^7*b^8+296*a^6*b^9+456*a^5*b^10+96*a^4*b^11-56*a^3*b^12-192*a^2*b^13-8*a*b^14-8*b^15-4*a^14-192*a^13*b-480*a^12*b^2-1104*a^11*b^3+1564*a^10*b^4+3040*a^9*b^5-404*a^8*b^6-4048*a^7*b^7-404*a^6*b^8+3040*a^5*b^9+1564*a^4*b^10-1104*a^3*b^11-480*a^2*b^12-192*a*b^13-4*b^14-48*a^13-56*a^12*b-1104*a^11*b^2+720*a^10*b^3+4616*a^9*b^4+3464*a^8*b^5-4864*a^7*b^6-4864*a^6*b^7+3464*a^5*b^8+4616*a^4*b^9+720*a^3*b^10-1104*a^2*b^11-56*a*b^12-48*b^13+154*a^12+96*a^11*b+1564*a^10*b^2+4616*a^9*b^3+6008*a^8*b^4-1792*a^7*b^5-7416*a^6*b^6-1792*a^5*b^7+6008*a^4*b^8+4616*a^3*b^9+1564*a^2*b^10+96*a*b^11+154*b^12+40*a^11+456*a^10*b+3040*a^9*b^2+3464*a^8*b^3-1792*a^7*b^4-3896*a^6*b^5-3896*a^5*b^6-1792*a^4*b^7+3464*a^3*b^8+3040*a^2*b^9+456*a*b^10+40*b^11-304*a^10+296*a^9*b-404*a^8*b^2-4864*a^7*b^3-7416*a^6*b^4-3896*a^5*b^5-7416*a^4*b^6-4864*a^3*b^7-404*a^2*b^8+296*a*b^9-304*b^10-56*a^9-560*a^8*b-4048*a^7*b^2-4864*a^6*b^3-1792*a^5*b^4-1792*a^4*b^5-4864*a^3*b^6-4048*a^2*b^7-560*a*b^8-56*b^9+451*a^8-560*a^7*b-404*a^6*b^2+3464*a^5*b^3+6008*a^4*b^4+3464*a^3*b^5-404*a^2*b^6-560*a*b^7+451*b^8-56*a^7+296*a^6*b+3040*a^5*b^2+4616*a^4*b^3+4616*a^3*b^4+3040*a^2*b^5+296*a*b^6-56*b^7-304*a^6+456*a^5*b+1564*a^4*b^2+720*a^3*b^3+1564*a^2*b^4+456*a*b^5-304*b^6+40*a^5+96*a^4*b-1104*a^3*b^2-1104*a^2*b^3+96*a*b^4+40*b^5+154*a^4-56*a^3*b-480*a^2*b^2-56*a*b^3+154*b^4-48*a^3-192*a^2*b-192*a*b^2-48*b^3-4*a^2-8*a*b-4*b^2-8*a-8*b+1,
b, -3/10 .. -27/100)   :

plot3d([ [k*u, k*h(u), k], [k*u, k, k*h(u)], [k*h(u), k*u,  k],
[k*h(u), k, k*u], [k, k*h(u), k*u], [k, k*u, k*h(u)] ],  u=a1..a2, k=0..10);

 

# The solutions (k >=0,  u in a1..a2    ;(a1=0.75...,  a2=1)

S:=[ [k*u, k*h(u), k], [k*u, k, k*h(u)], [k*h(u), k*u,  k],[k*h(u), k, k*u], [k, k*h(u), k*u], [k, k*u, k*h(u)] ]:

 

c0 := -1:
b0 := +3:
a0 := RootOf(_Z^16-4*_Z^15+24*_Z^14-68*_Z^13+156*_Z^12-416*_Z^11-152*_Z^10
   -784*_Z^9-5096*_Z^8+1912*_Z^7-16976*_Z^6+8144*_Z^5-15492*_Z^4+368*_Z^3
   +10128*_Z^2-9152*_Z+10816,index = 1)^2 + 3: # ~ 3.685162858

evalf([k=a0, u= b0/a0]);

[k = 3.685162858, u = .8140752840]

(1)

evalf( eval(S[6], evalf([k=a0, u= b0/a0])    ));

[3.685162858, 3.000000000, -1.000000021]

(2)

 

Download a0b0c0.mw

@Axel Vogt 

If f is homogeneous (actually only positively), any solution is a positive multiple of a solution from [-1,1]^3. I hope that this is clear.

Now, indeed, for c=-1 there exist solutions with a,b outside [-1,1], but we are not interested in these. They will be automatically included in the general solution. You can check easily that for some k and u (in the answer above) your solution will be obtained [you did not provide the values for a,b, otherwise I could show you the values for k and u and the permutation].

 

 

@Carl Love 
- The reason for which I did not try to use evalhf or other optimizations is that I think that anyway fsolve is the bottleneck.
- The equation is not linear; it is  f(X0 + r*V) = 0 where X0, V are constants in R^3.
- I am not sure if the body is star-shaped. It would not be complicated to test this (numerically) inside the procedure: fsolve should be replaced with a procedure which gives a warning if there are more than one root in 0..R, but probably this would be too time-consumming.

Edit: I tested with an adhoc fsolve and the body seems to be star-shaped.

@Ronan 
If you look at the exact solution (see my answer below), it should be clear that Maple (or any other CAS) has no chance to find it by itself.

@Markiyan Hirnyk 
OK, I'll watch this thread waiting to see a solution on your taste.

The parametrization I have obtained looks a little better but I am still not satisfied and I think that it would be very difficult to find an acceptable general method. The discretization (mesh) is too "odd". The picture is in the worksheet, you can rotate it an see the irregular grids.

-param3d.mw

@one man 

AFAIK the method is about natural parametrization of implicit curves in R^(n+1), a curve being given as an intersection of n implicit surfaces. You have applied it for n=2.
Do you have a reference for the original paper?
PS. Why do you spell Draghilev? The author is probably Russian. But the spelling AFAIK is not unique in such cases, just think about Chebyshev/Tchebysheff/Cebâşev. And in Russian, all the western names are also spelled phonetically!
[In Zentralblatt MATH he appears as "Dragilev, A.V."]

@one man 
It is not that complicated. The metod is the same as the one I have posted above except that you obtain first a discrete parametrization of the implicit surface (you have a post about this).

P.S. I wrote 2 procedures inspired by your method. Actually the main ingredient is the Dragilev method for the natural parametrization of an implicit curve in R^3.
It works OK for local parametrizations (obtaining a MESH structure) but for global surfaces it is hard to obtain a convenient initial curve and even harder  to find the "orthogonals" other than the planar ones you have used. (The planar "orthogonals" are not good enough; you may convince yourself trying to parametrize a rotated ellipsoid.)
That's why I have not posted them.

BTW, to color both sides of an implicit surface one may use e.g.

f1:=(x1^2+x2^2-0.4)^2+(x3+sin(x1*x2+x3))^4-0.1:
a:=plots:-implicitplot3d([f1=0], x1 = -1 .. 1., x2 = -1 .. 1., x3 = -0.1 .. 1.9, color=[green], numpoints=10000, style=surface):
b:=plots:-implicitplot3d([f1=0.001], x1 = -1 .. 1., x2 = -1 .. 1., x3 = -0.1 .. 1.9, color=[red], numpoints=10000, style=surface):
plots:-display(a,b,orientation=[37,61,-171]);


 

@Carl Love 
Yes, I was once the author of such an "infringement", but I cannot understant how posting the result of a Maple command (showstat in this case) could be interpreted as a copyright problem.

@Carl Love 

plots:-transform works if the surface is simple wrt one of the axes (y in this case).
It will not work e.g. for
S1:= plot3d([1, theta, phi], theta= 0..3*Pi/2, phi= 0..Pi, coords= spherical):
But in such cases, for general parametric plots a small normal perturbation will work
(see http://www.mapleprimes.com/posts/203796-Equidistant-Surface-)

CP:=(v,w)->[v[2]*w[3]-v[3]*w[2], v[3]*w[1]-v[1]*w[3], v[1]*w[2]-v[2]*w[1]]: #Cross Product
IP:=(v,w)->v[1]*w[1]+v[2]*w[2]+v[3]*w[3]: # Inner Product
UV:=v -> v/~sqrt( IP(v,v)): #Unit Vector

r:=[sin(phi)*cos(theta), sin(phi)*sin(theta), cos(phi)]:  # Example
Nr:=UV( CP( diff(r,theta), diff(r,phi) ) ):  # Unit Normal vector to r
Er:=simplify(r + 1/200*Nr):;           # Equidistant to r

plot3d( [r,Er], theta= 0..3*Pi/2,  phi= 0.001..Pi,color=[red,green] );

 

The procedure `hypergeom/check_parameters` checks whether the upper parameters which are integer <=0 are at least as many as the lower ones. [maybe this could be relaxed].

I have noticed that:
limit( hypergeom([1, -1, 1/2], [k,-3], 1),  k=-12 ); 
      71/72

@lyakhovda 
But my previous reply answers to your question for r=23 too; it is NO.

@John Fredsted 

The OP wants to choose himself the free parameters.
Actually for a random linear system, this can be done with probability 1, but not for each and every system.

@lyakhovda 

If the rank is 6, then there will be 29-6=23 free variables, so {Z20,...,Z28} are not enough.
And you cannot know whether e.g. Z24 can be a free variable because the system could contain the equation Z24 = 7.

Yes, Maple has big problems with oscillating integrals.

J := int(abs(cos(1/t)), t = 0 .. 1);
is wrong (undefined).
And it is a challenge to compute J with 10 (or 30) digits in Maple!

 

First 117 118 119 120 121 122 123 Last Page 119 of 166