PERATAAN HITUNGAN BUNDLE ADJUSTMENT

#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
int ba1=100; ba2=150; ba3=110; ba4=120; ba5= 130; bb1= 90; bb2=130; bb3=100; bb4=110; bb5=120; A=100; HA=100; d1=45; d1=40; d3=50; d4=55; d5=60; m1=30; m2=35; m3=40; m4=45; m5=50;
float ti=1.5; s1=10.0; s2=15.2; s3=20.5; s4=25.0; s5=25.5; bt1; bt2; bt3; bt4; bt5; h1; h2; h3; h4; h5;
clrscr();
bt1=(ba1+bb1)/2/1000;
bt2=(ba2+bb2)/2/1000;
bt3=(ba3+bb3)/2/1000;
bt4=(ba4+bb4)/2/1000;
bt5=(ba5+bb5)/2/1000;
h1=d1+m1/60.0+s1/3600;
h2=d2+m2/60.0+s2/3600;
h3=d3+m3/60.0+s3/3600;
h4=d4+m4/60.0+s4/3600;
h5=d5+m5/60.0+s5/3600;
D1=A*(ba1-bb1)/1000*h1;
D2=A*(ba2-bb2)/1000*h2;
D3=A*(ba3-bb3)/1000*h3;
D4=A*(ba4-bb4)/1000*h4;
D5=A*(ba5-bb5)/1000*h5;
cout<<“program untuk menghitung jarak optis”<<endl;
cout<<“\n masukkan tinggi alat (m)=”;
cin>> ti;
for (int i=1; i<=5, i++)
{
cout<<“\n untuk hitungan ke 1″<<(i+1)<<endl;
cout<<“masukkan nilai ba=”;
cin>>ba[i];
cout<<“masukkan nilai bt =”;
cin>>bt[i];
cout<<“masukkan nilai bb=”;
cin>>bb[i];
cout<<“masukkan nilai h=”;
cin>>h[i];
cout<<“baca skala (dms)=”;
cin>> d[i]>>m[i]>>s[i];
pi=atan(1)*4.0;
d[i]=A*((ba[i]/1000.0)-(bb[i]/1000.0))*pow(cos(h[i]),2);
bda[i]=d[i]*tan(h[i])+ti-(bt[i]/1000.0);
}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s