blob: 7d835c953ca7de8d7e9e200b8d0aa59d1a46b2a4 (
plain)
1
2
3
4
5
6
7
8
9
10
|
//Example 7_1
clc();
clear;
//To convert angles to radians and revolutions
theta=70 //units in degrees
deg=360 //units in degrees
rad=theta*2*%pi/deg //units in radians
rev=1 //units in revolution
rev=theta*rev/deg //units in revolution
printf("70 degrees in radians is %.2f radians \n 70 degrees in revolutions it is %.3f revolutions",rad,rev)
|