how to create a sequence of objects from 2 sequence of numbers?
Hi,
I have these 2 sequences:
Sequence(z * 360 / b, z, 0, b, 1)
Sequence(Angle((x(A1) + floor(q / b) - n floor(q / b / n)+0.5, y(A1) + floor(q / b / n)),(x(A1) + floor(q / b) - n floor(q / b / n), y(A1) + floor(q / b / n)), 360 / b), q, 0, a, 1, z, 0, b, 1)
This has worked well so far... BUT... I need to combine them this way:
Sequence(Angle((x(A1) + floor(q / b) - n floor(q / b / n)+0.5, y(A1) + floor(q / b / n)),(x(A1) + floor(q / b) - n floor(q / b / n), y(A1) + floor(q / b / n)), z*360 / b), q, 0, a, 1, z, 0, b, 1)
And I don't know how to make it understand both what z is and what q is at the same time. Apparently, I can make z OR q work. I don't get how to join.
This is what I expect:
1) From certain q value (which shows where the center of a circle is), I want GeoGebra to make multiple central angles within that circle, starting at an initial point in the circle named A1 and going all round till it reaches A1 again. For that purpose, I am creating the variable "z".
2) Once it has finished with that circle, I want to swich to another q value (which is the center of another circle) and making again multiple angles all the way round.
So basically I need multiple angles for EACH circle. I get how to make 1 angle in each circle OR multiple angles in 1 circle, but I need both (multiple angles in multiple circles). So I need the angle function to understand both where the center of each circle is, and so many values for so many angles.
Cuando yo creé el archivo puse J4 = Sequence(Length(J3(k2)), k2, 1, Length(J3)) y luego ordeno J3 según J4 y creo J5
eso hace que el orden de rellenado dependa de cuál sea el punto central más cercano al punto B
si por ejemplo usases J4 = Sequence(max(x(J3(k2)),y(J3(k2))), k2, 1, Length(J3)) , espero que no falten paréntesis, el orden de aparición dependería de la métrica máximo de x,y que es más cuadrada que la métrica euclidiana, también podrías probar abs(x)+abs(y) que también es muy cuadrada pero sesgada 45º
como dicen por aquí: poco a poco
Please post your file.
Also, please note that `z` is a reserved name for GeoGebra. See https://wiki.geogebra.org/e...
lo dudo porque no se pueden poner dos contadores en un comando secuencia y lo anterior tiene q y z de contador
quizás lo que quieres es
Sequence(Sequence(Angle((x(A1) + floor(q / b) - n floor(q / b / n)+0.5, y(A1) + floor(q / b / n)),(x(A1) + floor(q / b) - n floor(q / b / n), y(A1) + floor(q / b / n)), z*360 / b), q, 0, a, 1), z, 0, b, 1)
naturalmente cambiando z por otra letra que no sea reservada
pero eso no lo sabremos hasta que veamos el archivo
Here is my next try (attached file)...
I have managed to create points in the circle using trigonometry. BUT... Now I need segments. I need to create a segment from the center of the circle to each of the points of that same circumference. Still need to get how to join: center is certain list and the other point is in another list. AND I need GeoGebra to understand which points are in the same circle (I don't want to cross to another circle).
Comments have been locked on this page!