summaryrefslogtreecommitdiff
path: root/2915/CH6/EX6.19/Ex6_19.sce
blob: 32d451137ebef262f791741326b92d51c500ba0f (plain)
1
2
3
4
5
6
7
8
9
10
11
clc,clear
//Example 6.19
//to express an equation in polar coordinates

//Given equation is : y=x
y_by_x =1; //ratio of y and x
tan_theta = y_by_x;
theta=atand(tan_theta); //azimuth angle

printf('The given equation in polar coordinates is :  theta = %.0f degree\n',theta)
printf('\nNote: Polar form is same regardless of value of r ')