Union de 2 courbes

Mahamat Hamid shared this question 2 years ago
Answered

Je suis nouveau sur Ggb,Est-ce possible de créer une courbe comme union de deux courbes différentes. Je veux que l'objet à la fin soit interpréter comme une courbe?

Best Answer
photo

Why should that not be possible?

something like NextPoint(<actualP>,<actualP-1>, <segment>, <arc>) Output is 1 new Point on segment or on arc. Then use this custom-tool in a IterationList()

Or alternative create the recursive Iteration in the spreadsheet.

247881344634ea1eb2df5387193a1fd8

Comments (17)

photo
1

give an example, please

do you mean the union of arcs, parametric curves, implicit curves?

interpréter comme une courbe

do you mean one expression, one path?

photo
1

Pour une courbe paramétrique!! J'ai réussi à faire une courbe en utlisant la commande " Si " mais la courbe paramétrique résultante ne comprend pas la commande " tangente"

photo
1

given two points on the truncated circle, I want to create a list that contains the points that bounce off the truncated circle. Thanks in advance for the help.

photo
photo
1

try Curve((5cos(t) - 4 + abs(5cos(t) + 4)) / 2, 5sin(t), t, 0, 2π)

photo
1

Merci pour votre réponse mais le cas où la troncature dépasse la moitié du cercle n'est pas pris en compte.

photo
photo
1

I think it is much easier to work with a segment and an arc then with a Curve() (for a billard-solution)

photo
1

Oui bien sûr mais je veux qu'à la fin ggb l'interprète comme un seul objet: un macro

photo
2

Why should that not be possible?

something like NextPoint(<actualP>,<actualP-1>, <segment>, <arc>) Output is 1 new Point on segment or on arc. Then use this custom-tool in a IterationList()

Or alternative create the recursive Iteration in the spreadsheet.

247881344634ea1eb2df5387193a1fd8

photo
1

J'aurai besoin d'un peu d'aide s'il vous plait. étant donné les 2 points P_{0} et P_{1} sur le cercle tronqué et n un entier, je veux construire une liste qui de points {P_{0} ; P_{1} ; P_{2} ; . . . . ; P_{n}} tels que: P_{k} soit la réflexion de P_{k-2} sur le cercle tronqué. J'ai essayé itérationliste mais ça plante à partir d'un certain ordre d'itération.

photo
1

Exactement Rami comme dans l'image, Comment aviez vous fait s'il vous plait?

photo
1

Could you show me how you have done??

photo
1

I added Billad_0 with the perpendicular to the tangent, then mirrored actualP-1 to it and used actualP as well as the mirrored point to create a ray that intersects either the arc or the segment. In addition, you have to take into account that actualP is excluded when intersecting.

j=ray d=arc, g=segment

P_2 = Element(RemoveUndefined(Flatten(Join({{Intersect(d, j)}, {Intersect(j, g)}}))) \ {P_1}, 1)


Then I transferred those objects to a row in the Spredsheet and copied that row down about 15 times.

alternatively you could create a CustomTool with the above description and apply it in IterationList.(IterationsListe has a clumsy/confusing syntax and without CustomTool it probably won't work).

photo
1

Je l'ai essayé mais je rencontre toujours un problème avec l'implémentation.

Pouvez vous m'aider encore plus. Merci

photo
1

J'ai enfin réussi à le faire avec CustomTool et IterationListe. Mille mercis à toi Rami.

Serait-il possible d'optimiser un peu parce que le position du segment [DC] ne peut dépasser la moitié du rayon du cercle?

photo
2

Is this what you are looking for?

compare with my description above

photo
1

Waouh!!! C'est parfait, merci beaucoup Rami. Désolé de te demander encore une dernière chose. Mais comment puis-je avoir la list des points (α_1, θ_1), (α_2, θ_2) , . . . , (α_n θ_n).

photo
1

with IterationList()

Note: If you play with the parameters then the program will abort after a while (ggb 5.0.627)

Probably a memory overflow because the garabge collection was not called by ggb.

photo
© 2023 International GeoGebra Institute