summaryrefslogtreecommitdiff
path: root/1553/CH25/EX25.29/25Ex29.sce
blob: b690bf440f6fce4c13d4a5023cf7b3e52c3fe833 (plain)
1
2
3
4
5
6
7
8
9
//Ch25_Ex29
clc;
clear;
close;
dw=4; rw=dw/2; //diameter and radius wire
ds=18; rs=ds/2;//diamerer and radius of sphere
volS=(4/3)*%pi*rs^3;
hw=volS/(%pi*rw^2);
mprintf("THe length of wire is %.0f m",hw);