From 3d3bf993bd6471d5f7d4ada1e601edacf044f431 Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Sun, 27 Jan 2019 16:56:22 -0600 Subject: ? --- ee1301/wk0/hw0/HW1_snell.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ee1301/wk0') diff --git a/ee1301/wk0/hw0/HW1_snell.cpp b/ee1301/wk0/hw0/HW1_snell.cpp index e27428c..6d77cee 100644 --- a/ee1301/wk0/hw0/HW1_snell.cpp +++ b/ee1301/wk0/hw0/HW1_snell.cpp @@ -6,16 +6,16 @@ using namespace std; int main() { double inAngle, firstRI, secondRI; - cout << "Input incident angle: "; + cout << "Input incident angle in degrees: "; cin >> inAngle; - cout << "Input index of refraction of first medium: "; + cout << "Input index of refraction of first medium in degrees: "; cin >> firstRI; - cout << "Input index of refraction of second medium: "; + cout << "Input index of refraction of second medium in degrees: "; cin >> secondRI; inAngle = inAngle *M_PI / 180.0; // convert to radians double outAngle = 180/M_PI * asin(firstRI/secondRI * sin(inAngle)); //snell's law - cout << "Refracted angle: " << outAngle <