summaryrefslogtreecommitdiff
path: root/24/CH1/EX1.3/Example1_3.sce
blob: f37e24943a06642b48e013071b03828c35575b09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Given that
//the crossection to be approximately squre
Radius = 2 //in meter
side = 4 * 10^-3  //converted from mm to meter

//Sample Problem 1-3
printf("**Sample Problem 1-3**\n")
//making the volume equal
Length = 4/3 * %pi * Radius^3 / side^2
L_km = Length/10^3
order = round(log(L_km)/log(10)) //will give us order of magnitude
printf("The order of length of string is 10^%d km", order)