-
Notifications
You must be signed in to change notification settings - Fork 0
/
SampleOfMathSequences.cpp
63 lines (58 loc) · 2.09 KB
/
SampleOfMathSequences.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// Written by Rostisval Gogolauri /2017//
// Telegram @Map_Inc//
#include "stdafx.h"
#include <iostream>
#include <conio.h> // debug library//
#include <string>
#include <math.h>
#define PI 3.14159265
using namespace std;
int main()
{
int ink = 1;
float x0, x, y0, y, z0, z, c, k, x1, y1, z1; //coordinates * координаты//
system("Color 2"); // f0 - white and black change text and background color of console * цвета для фона, текста //
while (ink == 1) { // loop for inputing without exiting command line * Ввод след. без закрытия консоли //
cout << "Choise one statement which you need to solve (1-7)" << endl;
cout << " " << endl;
cout << "1: General equation of line Ax+By+C=0" << endl;
cout << "2: Equation of line using line segments x/a+y/b=1 " << endl;
cout << "3: Equation of line with angle coefficient y=kx+b" << endl;
cout << "4: Equation of line going through 2 points (x-x1)/(x2-x1)=(y-y1)/(y2-y1)" << endl;
cout << "5: Normal equation of line x*cos(a)+y*sin(a)-p=0" << endl;
cout << "6: Equation of line with parameters x=x1+a*(lambda)" << " y=y1+b*(lambda)" << endl;
cout << "7: Equation of line in the open space" << endl;
cout << "8: Angle between plane and line (alpha)" << endl;
cout << "9: Scalar equation of the plane ax+by+cz=d" << endl;
int caser;
cin >> caser;
switch (caser) {
case 1:
break;
case 2:
break;
case 3:
break;
case 4:
break;
case 5:
break;
case 6:
break;
case 7:
break;
case 8:
break;
case 9:
break;
default:cout << "Select the existing number from the table, thank's!" << endl;
cout << "Try once more.";
}
ink = 0;
cout << " continue? press 1" << endl;;
cin >> ink;
system("cls"); // clears the screen * Оч. скрин
}
// debug point//
system("pause");
}