Angles in sexagesimal units?

Angles in sexagesimal units? - Сообщения

#1 Опубликовано: 23.02.2019 08:57:11
gskelly

gskelly

0 сообщений из 7 понравились пользователям.

Группа: User

Is there a way to use SMath so that, at face value, the document has angular values expressed in degrees, minutes and seconds?

My inputs and outputs for all angular quantities are in sexagesimal units and may include decimals of a second.

Thanks
#2 Опубликовано: 23.02.2019 09:59:32
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

Is there a way to use SMath so that, at face value, the document has angular values expressed in degrees, minutes and seconds?

My inputs and outputs for all angular quantities are in sexagesimal units and may include decimals of a second.



Maths Convert [deg, min, sec].sm (7 КиБ) скачан 56 раз(а).
#3 Опубликовано: 23.02.2019 11:05:28
gskelly

gskelly

0 сообщений из 7 понравились пользователям.

Группа: User

Wrote


Maths Convert [deg, min, sec].sm (7 КиБ) скачан 56 раз(а).



Thanks Jean. I understand your response to mean I will have to define functions to convert between the sexagesimal and decimal representations. Ideally I was hoping there was some way to use units.

The list approach would be preferred to the string since it would be easier to use as input. The function will need to handle negative values and test for cases where the floating point number representation may cause problems.


#4 Опубликовано: 23.02.2019 11:40:29
gskelly

gskelly

0 сообщений из 7 понравились пользователям.

Группа: User

Wrote


The list approach would be preferred to the string since it would be easier to use as input. The function will need to handle negative values and test for cases where the floating point number representation may cause problems.



The negative values are easy to handle. Maybe the program handles the imprecision of floating point numbers automatically?

Maths Convert [deg,min,sec]-gds.sm (11 КиБ) скачан 33 раз(а).
#5 Опубликовано: 23.02.2019 12:16:22
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: User

Hi. Here, my workaround.

DMS.gif

DMS.sm (17 КиБ) скачан 53 раз(а).

Best regards.
Alvaro.
2 пользователям понравился этот пост
frapuano 23.02.2019 12:28:00, sergio 23.02.2019 18:26:00
#6 Опубликовано: 23.02.2019 13:58:25
gskelly

gskelly

0 сообщений из 7 понравились пользователям.

Группа: User

Wrote

Hi. Here, my workaround.

DMS.gif

DMS.sm (17 КиБ) скачан 53 раз(а).

Best regards.
Alvaro.



Hmmm... The separate units use is interesting. I am so inexperienced with SMath I can't figure out how to enter the summation portion.

I think I will need to leave the negative angle input as [ -d -m -s ] with this approach. Would you agree?
#7 Опубликовано: 23.02.2019 14:02:52
gskelly

gskelly

0 сообщений из 7 понравились пользователям.

Группа: User

Wrote

I am so inexperienced with SMath I can't figure out how to enter the summation portion.



Ah-ha! The vectorize function.
#8 Опубликовано: 23.02.2019 14:06:06
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: User

Wrote


Hmmm... The separate units use is interesting. I am so inexperienced with SMath I can't figure out how to enter the summation portion.



Hi. Try this as general rule for SMath sintaxis:

type.gif

Wrote


I think I will need to leave the negative angle input as [ -d -m -s ] with this approach. Would you agree?



Guess yes:

DMS neg.gif

Best regards.
Alvaro.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений