blob: e20806793252f7de1ba121a4c75e0abdcf995d55 (
plain)
1
2
3
4
5
6
7
8
9
|
clc,clear
//Example 4.5
//To determine angle in radians and degrees
r=5 //radius of circle
s=2 //length of arc
theta = s/r //central angle in radian
printf('Measure of central angle = %.2f rad\n',theta)
printf('Measure of central angle = %.2f degree',theta*(180/%pi))
|