JAMET

125 Reputation

3 Badges

3 years, 115 days

MaplePrimes Activity


These are replies submitted by JAMET

restart; unprotect(O, D); On considère une ellipse de foyers F et F' dans laquelle la distance focale FF'=2c est égale à la longueur 2b du petit axe ; la longueur du grand axe est 2a; M étant un point quelconque de cette ellipse, calculer les longueurs MF=x et MF=y en fonction de a et le l'angle α. Quelle est la valeur maximum de A ? with(geometry): with(plots): EQ := proc (M, N) RETURN((y-M[2])/(x-M[1]) = (N[2]-M[2])/(N[1]-M[1])) end: Vdot := proc (U, V) add(U[i]*V[i], i = 1 .. 2) end: dist := proc (M, N) sqrt(Vdot(expand(M-N), expand(M-N))) end: _EnvHorizontalName := x: _EnvVerticalName := y: O:=[0,0]:M:=[a*cos(alpha),a/sqrt(2)*sin(alpha)]:F:=[a/sqrt(2),0]:Fp:=[-a/sqrt(2),0]: ell := x^2/a^2+2*y^2/a^2 = 1; dist(M, F); MF := subs(cos(alpha) = u, sin(alpha) = v, %); dist(M, Fp); MFp := subs(cos(alpha) = u, sin(alpha) = v, %); eq := MF+MFp = 2*a; simplify(subs(v = sqrt(-u^2+1), %)); allvalues(solve(%, u, explicit)); Warning, solutions may have been lost a := 7; ELL := implicitplot(ell, x = -a .. a, y = -a .. a, color = blue); display([ELL], scaling = constrained); This is the begining of my solution

Here is my worksheet with Explore command that don't work; Thank you for your help.
restart; unprotect(O, D);
On considère un cercle fixe O(R) et un diamètre fixe AB de ce cercle. Un point M décrit la droite D perpendiculaire en C à AB. Les tangentes MP' et MQ' au cercle (O) coupent la tangente Δ en A, respectivement en P et Q. Les droites BP' et BQ' coupant la droite Δ en P'' et Q''.
1°: Montrer que la droite P'Q' passe par un point fixe et que les points P et Q sont respectivelment les milieux des segments AP'' et AQ''.
with(geometry): with(plots):
EQ := proc (M, N) RETURN((y-M[2])/(x-M[1]) = (N[2]-M[2])/(N[1]-M[1])) end:
Vdot := proc (U, V) add(U[i]*V[i], i = 1 .. 2) end:
dist := proc (M, N) sqrt(Vdot(expand(M-N), expand(M-N))) end:
_EnvHorizontalName := x: _EnvVerticalName := y:
O:=[0,0]:R:=7:c:=-2:A:=[-R,0]:B:=[R,0]:C:=[c,0]:M:=[c,My]:

cir := x^2+y^2 = R^2:
tg1 := x*M[1]+y*M[2] = R^2:
sol := solve({cir, tg1}, {x, y}, explicit):
Pp := [subs(sol[1], x), subs(sol[1], y)]: Qp := [subs(sol[2], x), subs(sol[2], y)]:

eqMP := solve(EQ(Pp, M), y): P := [-R, subs(x = -R, eqMP)]:
eqMQ := solve(EQ(Qp, M), y): Q := [-R, subs(x = -R, eqMQ)]:
eqBPp := solve(EQ(B, Pp), y): Ppp := [-R, subs(x = -R, eqBPp)]: 
eqBQp := solve(EQ(B, Qp), y): Qpp := [-R, subs(x = -R, eqBQp)]:
eqPpQp := solve(EQ(Pp, Qp), x): F := [subs(y = 0, %), 0]:#coordonnées de F indépendantes de My
eqPpQp := solve(EQ(Pp, Qp), y):
is(dist(P, A) = dist(P, Ppp));
My := -12;
evalf(dist(P, A)); evalf(dist(P, Ppp));
evalf(dist(Q, A)); evalf(dist(Q, Qpp));
NULL;
simplify(dist(A, Ppp)*dist(A, Qpp));
circle(c1, (x-B[1])^2+(y-B[2])^2 = 4*R^2);
point(P1, P); point(Q1, Q);
line(lPQ, [P1, Q1]);
inversion(cir2, lPQ, c1);
point(O1, O); point(P1, P); point(Q1, Q); point(M1, M);
geometry:-circle(c3, [O1, P1, Q1], [x, y], 'centername' = Op);

line(lMO, [M1, O1]);
sol := solve({Equation(c3), Equation(lMO)}, {x, y}); L := [subs(sol[2], x), subs(sol[2], y)];
dr := draw([c1(linestyle = 3), cir2(color = green, filled = true, transparency = .95), c3(color = green), lMO(color = black), Op], axes = none);
Op := coordinates(Op);
display(dr,plot([O, A, B, C, M, P, Q, Pp, Qp,Ppp,Qpp,F,L], style = point, color = blue, symbolsize = 10), 
implicitplot(cir, x = -10 .. 10, y = -10 .. 10, color = blue), 
plot([c, t, t = -20 .. 8], color = red), 
plot([-R, t, t = -35 .. 8], color = green), 
plot(eqMP, x = -8 .. 3, color = black), 
plot(eqMQ, x = -8 .. 11, color = black), 
plot(eqPpQp,x=-25..10,color=red),
plot(eqBPp,x=-10..10,color=gold),
plot(eqBQp,x=-10..10,color=gold),

textplot([[O[], "O"], [A[], "A"], [B[], "B"], [C[], "C"], [M[], "M"], [P[], "P"], [Q[], "Q"],
[Qp[],"Q'"],[Pp[],"P'"],[Qpp[],"Q''"],[F[],"F"],[L[],"L"],[Op[],"O'"]],
 color = black, 'align' = {'above', 'right'}), 
axes=normal,view=[-25..10,-35..10],scaling = constrained,size=[600,600]):
#printf("%s", msg1);
Fig:=proc(_My) 
local   My,tg1,tg2,sol,eqMP,eqMQ,eqPpQp,M,P,Q,Pp,Qp:
global  O,R,c,A,B,C,F,cir:
My:=_My:
M:=[c,My]: 
tg1:=x*M[1]+y*M[2]=R^(2): 
sol:=solve({cir,tg1},{x,y},explicit): 
Pp:=[subs(sol[1],x),subs(sol[1],y)]:Qp:=[subs(sol[2],x),subs(sol[2],y)]: 
eqMP:=solve(EQ(Pp,M),y):P:=[-R,subs(x=-R,eqMP)]: 
eqMQ:=solve(EQ(Qp,M),y):Q:=[-R,subs(x=-R,eqMQ)]:
eqPpQp := solve(EQ(Pp, Qp), y):
display(plot([O, A,B,C,M,P,Q,F,Pp,Qp], style = point, color = blue, symbolsize = 10),
        implicitplot(cir,x=-10..10,y=-10..10,color=blue),
        plot([c, t, t = -15 .. 15], color = red),  #`droite D`
        plot([-R,t,t=-18..15],color=green), 
        plot(eqMP,x=-10..6,color=black), 
        plot(eqMQ,x=-8..3,color=black),
        plot(eqPpQp,x=-25..10,color=red), 
        textplot([[O[], "O"],[A[],"A"],[B[],"B"],[C[],"C"],[M[],"M"],[P[],"P"],
                 [Pp[],"P'"],[Q[],"Q"],[Qp[],"Q'"],[F[],"F"]], 
        color = black, 'align' = {'above', 'right'}),
        scaling=constrained,size=[500,500]):  
end:


Explore(`if\``(a < -7 or a > 7), Fig(fixed_a*t), t = -15 .. 15);

 In Fig(t) t is the data of point(M,Mx,t) and I want to explore Fig(t) when t in between -15. and -7. then between 7. and 15. Thank you very much.

With numerical values a=8, b=7, I find NF=5.198808560... and (c/a)*MF=5.198808559... the, property is therefore correct. How to demonstrate it? Thank you.

Very interesting demonstration of the first question of a problem given to the baccalaureat given in Clermont (France) with a program of 1945. Thank you.

the points of contact of the ellipse and tangents are not in the middles of the sides.
May i send you my worksheet ?  Thank you.

restart; with(plots): _EnvHorizontalName := 'x';_EnvVerticalName := 'y'; _EnvHorizontalName := x _EnvVerticalName := y EQ := proc (M, N) RETURN((y-M[2])/(x-M[1]) = (N[2]-M[2])/(N[1]-M[1])) end proc: a := 5: b := 7; k := 9; A := [a, 0]; B := [0, b]; b := 7 k := 9 A := [5, 0] B := [0, 7] P := [t, 0]; Q := [0, k/t]; P := [t, 0] [ 9] Q := [0, -] [ t] cir := -a*x-b*y+x^2+y^2 = 0: sol := solve(subs(y = 5, cir), x): cen := [solve(diff(cir, x)), solve(diff(cir, y))]: x0 := sol[1]: y0 := 5: M := [x0, y0]; [5 1 (1/2) ] M := [- + - 65 , 5] [2 2 ] R := sqrt(cen[1]^2+cen[2]^2): beta := arctan(diff(solve(EQ(M, cen), y), x)): eq := t^2*(y0-b)+t*(a*b-a*y0+b*x0-k)-x0*(a*b-k) = 0: sol := solve(eq, t): t := sol[1]: tp := sol[2]: P1 := [t, 0]: Q1 := [0, k/t]: PQ1 := simplify(x*(-a*b+b*t+k)+y*t*(t-a)-t*(-a*b+b*t+k)) = 0: PQ2 := simplify(x*(-a*b+b*tp+k)+y*tp*(tp-a)-tp*(-a*b+b*tp+k)) = 0: P2 := [tp, 0]: Q2 := [0, k/tp]: Fig := proc (alpha) local Dr1, DR1, Dr2, DR2, N, u0, v0, Po, t, tp, sol; global a, b, k, cen, R; u0 := cen[1]+R*cos(alpha); v0 := cen[2]+R*sin(alpha); N := [u0, v0]; sol := solve(t^2*(v0-b)+t*(b*u0-a*v0+a*b-k)-u0*(a*b-k) = 0, t); t := sol[1]; tp := sol[2]; Dr1 := simplify(x*(-a*b+b*t+k)+y*t*(t-a)-t*(-a*b+b*t+k)) = 0; DR1 := implicitplot(Dr1, x = -4 .. 8, y = -4 .. 12, color = brown); Dr2 := simplify(x*(-a*b+b*tp+k)+y*tp*(tp-a)-tp*(-a*b+b*tp+k)) = 0; DR2 := implicitplot(Dr2, x = -4 .. 8, y = -4 .. 12, color = orange); Po := pointplot([N[]], symbol = solidcircle, color = [black], symbolsize = 8); display([Po, DR1, DR2]) end proc: DrPQ1 := implicitplot(PQ1, x = -4 .. 22, y = -4 .. 12, color = blue): DrPQ2 := implicitplot(PQ2, x = -4 .. 22, y = -4 .. 12, color = blue): CIR := implicitplot(cir, x = -4 .. 8, y = -4 .. 12, color = red): Points := pointplot([A[], B[], M[], P1[], P2[], Q1[], Q2[], cen[]], symbol = solidcircle, color = [green], symbolsize = 10): T := plots:-textplot([[A[], "A"], [B[], "B"], [M[], "M"], [P1[], "P1"], [P2[], "P2"], [Q1[], "Q1"], [Q2[], "Q2"], [cen[], "cen"]], font = [times, 10], align = {below, left}): n := 7: display([seq(Fig(2*i*Pi/n), i = 0 .. n), Fig(beta), CIR, DrPQ1, DrPQ2, Points, T], scaling = constrained, size = [500, 500]): display([Fig(beta), CIR, DrPQ1, DrPQ2, Points, T], scaling = constrained, size = [500, 500]); I hope my program will not be transform in pap. I am trying the elements of the ellipse : focus, a, b. Thank you.

Why and how the coordinates of H are given from the outset in the 4th line of 1.mw ?
THank you.

Thank you. I should like to find the affixe with complex only.

SORRY, I apologize very much I made a confusion between z1*z2 and z1+z2

This true that( z1^2+z2^2+2*z1*z2)/(z1+z2)=z2/z1+z1/z2+2 how to obtain this egality ? Thank you.

How to show directly that is((z1+z2)^2/(z1+z2)=z2/z1+z1/z2+2) is true ? Thank you.

How to find n triples with such a procedure :
Tri:=proc(Y,n)#Y a triple
local m:
global &*:#coming from previus calculations
m:=Y&*(Y&*(Y&*Y))):#n times
RETURN(m)
end:Thank you for your help.

I have an error for the third line : error, invalid input: f expects its 1st argument, T, to be of type And(list...) but received p.

How to correct. Thank you.

Thank you. An other question : represent module points between 1 and 2 and argument points Pi/4 ?

1 2 3 Page 1 of 3