blob: b3eef3e0d5364b4661b0c0f756c5fdd7c1d16cc8 (
plain)
1
2
3
4
5
6
7
8
9
|
clc,clear
//Example 4.1
//To convert a degree measure to radians
deg=18 //degree measure
radian=deg*(%pi/180) //radian measure
printf('Radian measure is %f rad\n(or)\n',radian)
printf('Radian measure is (pi/%.0f)rad',1/(radian/%pi))
|