Solution : Cible

# -*- coding: utf-8 -*-
"""
Created on Thu Nov  8 10:24:58 2018

@author: vmahout
"""

import Func_Cible

###############################################################
print("Application 3")

A = float(input("Valeur de l'abscisse : "))
B = float(input("Valeur de l'ordonnée : "))

Appartient = Func_Cible.Inside_V1(A,B)

if (Appartient == 1 ) :
    print("Le point (",A,",",B,") appartient au cercle unité ")
else:
    print("Le point (",A,",",B,") n'appartient pas au cercle unité ")

Appartient2 = Func_Cible.Inside_V2(A,B)

if (Appartient2) :
    print("Le point (",A,",",B,") appartient au cercle unité ")
else:
    print("Le point (",A,",",B,") n'appartient pas au cercle unité ")

###############################################################
print("Application 4")
Appartient4 = Func_Cible.Inside_V2("A",B)
###############################################################
print("Application 5")
if (((A >= -1 ) and (A <= 1)) and ((B > 0.3) or (B < -0.3)) ):
    
    
    Appartient_test = Func_Cible.Inside_V2(2,'e')
    Appartient5 = Func_Cible.Inside_V2(A,B)
    if (Appartient2) :
        print("Le point (",A,",",B,") appartient au cercle unité ")
    else:
        print("Le point (",A,",",B,") n'appartient pas au cercle unité ")
else :
    print ("Le point n'est pas dans les intervalles autorisés")