Похожие чаты

You sure your number 13 line's code is right ?

4 ответов

8 просмотров

I tried to write the formula in proper syntax.

Пользователь-61653 Автор вопроса
Vimal Zardaa
I tried to write the formula in proper syntax.

#include<iostream> #include<cmath> using namespace std; int main() { double l1, l2, g1, g2, d; double pi = 3.1416; //std::cout << "Enter the value of l1, l2 , g1 and g2\n"; //std::cin >> l1 >> l2 >> g1 >> g2; l1 = 28.7041; l2 = 22.5726; g1 = 77.1025; g2 = 88.3639; l1 = l1 * (pi / 180); l2 = l2 * (pi / 180); g1 = g1 * (pi / 180); g2 = g2 * (pi / 180); d = 3963*(acos((sin(l1) * sin(l2)) + ((cos(l1) * cos(l2)) * cos(g2 - g1)))); std::cout << d; }

Пользователь 61653
#include<iostream> #include<cmath> using namespace...

Yea that's what i wonder, where is the problem? I was thinking of the pi value but i used a long value of pi amd still got same result.

Похожие вопросы

Обсуждают сегодня

Типа вызывать GetParent и проверять на соответствие GetModuleHandle?
The Bird of Hermes
67
Do any of you guys have interesting projects one could join? I'm a Middle Full-Stack developer (JS/TS, React & Node)
Lev Shapiro
40
$res = json_decode($наша строка из респонса); $res1 = array_map(fn($o) => $o->name, $res->breadcrumbs[0]->entities); Как такое будет на Хаскеле?.. В начале весь джейсон, в ко...
Хаскель Моисеевич Гопник
27
Hello, I have a question. Can anyone help me? I want to make my cryptocurrencies, like Tron, untraceable by anyone, even government organizations. I was told that to do this,...
 ➛ Eᒪᕼᗩᗰ
14
I read yesterday that in the near future most cryptos will be gone. It's like there is a lot of bullshit within the crypto sphere and this corruption some way is going to be c...
Kanah The Great
41
В чем сила брат, в NASM или FASM?
Isaac Kleiner
18
Вопрос по диагностике ошибок (я знаю в чем, в данном конкретном примере, я знаю, как исправить, пример модельный, понятно, что в реальности бывает намного запутаннее). module...
ⰄⰎⰋⰐⰐⰑⰛⰤⰧⰧⰩⰄ ⰊⰑⰁⰓⰡⰛⰦⰕⰫ
11
Хтось використовував Vapor на Windows?
Jaroshevskii
15
Hi Everybody I bought BCH when it’s 600 and I’m new in crypto what should I do ?
Khush
12
Тут кста кто-нибудь NeoVim использует?
Simple Sorcerer
13
Карта сайта