Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import autograd.numpy as np
- from autograd import grad
- import math
- print("Привет шкрэкус. Это программа поможет тебе по геометрии. by VEGAS")
- input("Нажми Enter что бы продолжить.")
- print(" ")
- print("Шо я умею:")
- print("1.Найти середину отрезка")
- vibor = input("Выбери то что тебе надо, указав цифру: ")
- if vibor == "1":
- print("Введи x1 y1 z1, а потом x2 y2 z2")
- ############################################# Тут я узнаю числа
- ##
- oneX = int(input("x1: ")) ##
- oneY = int(input("y1: ")) ##
- oneZ = int(input("z1: ")) ##
- ############################################# X Y Z
- ##
- twoX = int(input("x2: ")) ##
- twoY = int(input("y2: ")) ##
- twoZ = int(input("z2: ")) ##
- #############################################
- AresultX = float(oneX + twoX) ## Тут я прибавляю X1 и X2
- BresultX = float(AresultX / 2) ## Тут я сумму X1 и X2 делю на 2
- AresultY = float(oneY + twoY) ## ТОже что и в первом только с:
- BresultY = float(AresultY / 2) ## Y
- ##
- AresultZ = float(oneZ + twoZ) ## Z
- BresultZ = float(AresultZ / 2) ##
- print(" ")
- print("X:" + str(BresultX), "Y:" + str(BresultY), "Z:" + str(BresultZ)) ##Вывел на экран Координаты точки
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement