Trig function yield incorrect results

Trig function yield incorrect results - Trig results incorrect value - Сообщения

#1 Опубликовано: 23.07.2025 21:40:19
Matthew Steele

Matthew Steele

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

Группа: User

Hello,

I have been having trouble for a while with the trig functions. Please review my attachment (geodetic_to_geocentric). In the following worksheet, the psi result near the bottom is incorrect, so I used an equivalent formula to cross check the result (using "x"). The results matched exactly, but incorrectly. So, I decided to check the value of pi and then compute the tangent of the angle shown. As you can see, the result is not correct. Lastly, I opened a new worksheet (trig_test) and it produced the correct result.

The correct value for psi is: 42.03382deg by the way.

This has been happening to me quite a bit recently. After working on a sheet, the math suddenly become erroneous and I have to copy/paste to a new worksheet to continue.

Any help would be appreciated, Thanks!.

files attached...

matt

image.png

image.png
trig_test.sm (2 КиБ) скачан 40 раз(а).geodetic_to_geocentric.sm (12 КиБ) скачан 55 раз(а).
#2 Опубликовано: 23.07.2025 22:18:17
Alvaro Diaz Falconi

Alvaro Diaz Falconi

1 020 сообщений из 1 692 понравились пользователям.

Группа: User

Hi Matthew. You redefine the tan function, try something like this

image.png

Also, you can use units in ϕ in the same way that you use them in β

image.png

geodetic_to_geocentric.sm (11 КиБ) скачан 44 раз(а).

Best regards.
Alvaro.
1 пользователям понравился этот пост
Andrey Ivashov 25.07.2025 12:46:18
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений