# name: Jiaxin Lin
# MacID: linj33
# studnet number: 1311752
# date: 2014/01/28

m= input(" Enter the maximum stress: ")
Sr= input (" Enther the slenderness ratio: ")
a= input (" Enther the parameter: ")

import math
A= m/(1.0+a/math.cos(0.001*Sr))
print "A= ", A

B= m/(1.0+2.0*a/math.cos(0.001*Sr))
print "B= ",B

C= abs((A-B)/B)*100
print "C= ",C


#Design Question
# m is the maximum stress, Sr is the slenderness ration and a is the parameter
# A good pragram variable name should be easy to read, easy to understand and easy to type



#Test Plan
 #Test 1
 #Input : [36000,50,0.1]
 # Expected Output :[ 32723.5502645, 29993.7447875, 9.10124926515]
 # Acutal output :[ 32727.2355368 , 29999.9374995  ,9.09101239765]
 # Result : Pass


 #Test 2
 # Input :[ 36, 5,1]
  # Expected Output :[17.99999997,11.99999997,50.0000]
 # Acutal output :[ 17.999998875  , 11.999999  ,50.000003125 ]
 # Result : Pass

 
#Test 3
 # Input :[50,0,-1 ]
  # Expected Output :[error]
 # Acutal output :[error]
 # Result : Pass
