Angles in sexagesimal units? - Messages
My inputs and outputs for all angular quantities are in sexagesimal units and may include decimals of a second.
Thanks
WroteIs 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 KiB) downloaded 55 time(s).
Wrote
Maths Convert [deg, min, sec].sm (7 KiB) downloaded 55 time(s).
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.
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 KiB) downloaded 33 time(s).
WroteHi. Here, my workaround.
DMS.sm (17 KiB) downloaded 52 time(s).
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?
WroteI am so inexperienced with SMath I can't figure out how to enter the summation portion.
Ah-ha! The vectorize function.
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:
Wrote
I think I will need to leave the negative angle input as [ -d -m -s ] with this approach. Would you agree?
Guess yes:
Best regards.
Alvaro.
-
New Posts
-
No New Posts