//Example number 2.1, Page number 2.33 clc;clear;close // Variable declaration I=1/2 // unitless // Calculation theta1=acos(1/sqrt(2))*(180/%pi) // radian theta2=acos(-1/sqrt(2))*(180/%pi) // radian // Result printf("theta=%.f degrees",theta1) printf("\ntheta=%.f degrees",theta2) printf("\n\n The value of theta can be +(or)- 45 degrees and +(or)-135 degrees.")