summaryrefslogtreecommitdiff
path: root/3753/CH2/EX2.1/Ex2_1.sce
blob: 1845d07b6be6217dbce07a543e9af68269a2d790 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//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.")