diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2510/CH17/EX17.1/Ex17_1.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2510/CH17/EX17.1/Ex17_1.sce')
-rwxr-xr-x | 2510/CH17/EX17.1/Ex17_1.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/2510/CH17/EX17.1/Ex17_1.sce b/2510/CH17/EX17.1/Ex17_1.sce new file mode 100755 index 000000000..69e6d1ba3 --- /dev/null +++ b/2510/CH17/EX17.1/Ex17_1.sce @@ -0,0 +1,14 @@ +//Variable declaration: +w1 = 1.5 //Thicknessof fin (in) +L = 12.0 //Length of fin (in) +w2 = 0.1 //Thickness of fin(in) + +//Calculation: +Af = 2*w1*L //Face area of fin (in^2) +At = Af + L*w2 //Total area of fin (in^2) + +//Result: +printf("The face area of the fin is : %.0f in^2 ",Af) +printf("The face area of the fin is : %.2f ft^2 .",Af/12**2) +printf("The total area of the fin is : %.1f in^2 .",At) +printf("The total area of the fin is : %.3f ft^2 .",At/12**2) |