blob: d1f0e9e7d61cbeac55c63109ff904ff844a43053 (
plain)
1
2
3
4
5
6
7
8
9
|
//Example 1_52
clc();
clear;
//To find diameter of 25th ring
dm=0.62 //units in cm
ds=0.3 //units in cm
d25=2*(dm^2-ds^2)+ds^2 //units in cm^2
d25=sqrt(d25) //units in cm
printf("Diameter of 25th ring is %.3f cm",d25)
|