latitudes of a serie of points out of the spherical coordinates

ccambre shared this idea 3 years ago
Under Consideration

Hi, in https://www.geogebra.org/m/... I want to extract the latitudes of the 30 points of a list.

With the command arg(C) I can define the longitude (2nd coordinate of the spherical coordinates) as a separate number to use in transformations as Mercator. I don't know a similar command for the latitude (3rd coordinate). Indeed I can use asind (z(C) / R) with R the radius of the globe because in this command I can define the number range grom -inf to inf. But when I use this command in a sequence command: latitudes = Sequence(asind(z(Element(list, nn) / 5)), nn, 1, 30) the result is a list with numbers (that's OK) in which I can only define the range starting from 0° to get only positive latitudes. (Il add a file ).

A workaround I did was to define all the angles between (x(C), y(C), 0)), the origin O and C in a list and then conditionally change the sign for those angles corresponding that had a negative z-value...

So two alternatuves would make it much easier: a direct command for the 3rd spherical coordinate or the possibility to define the angles in a list also from -inf to inf as it is for a separate angle.

In the file added: if C is dragged beneath the xOy plane its latitude will become negative, but the values in the list won't.

chris

Comments (6)

photo
1

Hi Chris


alt()?

photo
1

merci bien Noel, c'est bien ça ce ne trouvais pas. Les commandes on peut les trouver facilement dans les catégories mais cette fonction je ne l'avais pas apperçu. Certainement je l'ajouterai au tutoriel sur les coordonnées sphériques parce qu'il n'y a rien dedans sur celà.

chris

photo
1

je ne sais pourquoi la page


https://wiki.geogebra.org/f...


n'a pas sa page traduite en "dutch"

photo
1

de même pour cette page


https://wiki.geogebra.org/f...


où j'ai fait apparaître plus clairement que dans la page "en"


Longueur[A] , arg(A) et alt(A) pour les coordonnées sphériques.

photo
1

En effet, ce n'est pas dans le manuel néerlandais https://wiki.geogebra.org/n.... Le page date de 2015 et le problème avec le manuel est qe l'on n'est jamais averti de versions nouvelles ou additions (on le fait maintenant pour les tutoriels). En plus pour 'alt' me fait penser aux combinaisons sur le clavier (qui se trouvent en haut du page) et pas a une fonction à soi même.

Mais bref, Je l'ajouterai au tutoriel GG Classic et aux pages dans le manuel.

photo
1

J'ai utilisé la fonction 'alt' et comme avec asind() ça marche pour un point, mais utilisé dans une séquence les latitudes ne gardent pas leurs valeurs négatives parce qu'il n'ya pas l'option de valeurs négatives.

The alt function gives the third of the spherical commands of a 3D point, but when used in a sequence, negative values turn into values between 180° and 360° because angles in a list doesn't have the option for values between -inf and +inf.

It would be fine to have this opportunity, however I can cope with it

photo
© 2023 International GeoGebra Institute