From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 3772/CH1/EX1.6/Ex1_6.sce | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 3772/CH1/EX1.6/Ex1_6.sce (limited to '3772/CH1/EX1.6') diff --git a/3772/CH1/EX1.6/Ex1_6.sce b/3772/CH1/EX1.6/Ex1_6.sce new file mode 100644 index 000000000..eb447d1cd --- /dev/null +++ b/3772/CH1/EX1.6/Ex1_6.sce @@ -0,0 +1,30 @@ +// Problem 1.6,Page no.12 + + +clc;clear;close; + +//Rectangle-1 +a_1=51200 //mm**2 +x_1=160 //mm +y_1=80 //mm + +//Triangle-2 +a_2=6400 //mm**2 +x_2=80*3**-1 //mm +y_2=320*3**-1 //mm + +//Semicircle-3 +a_3=1250*%pi //mm**2 +x_3=210 //mm +y_3=(160-(4*50-(3*%pi)**-1)) //mm + + +//Calculation + +X_bar=(a_1*x_1-a_2*x_2-a_3*x_3)*(a_1-a_2-a_3)**-1 //mm +Y_bar=(a_1*y_1-a_2*y_2-a_3*y_3)*(a_1-a_2-a_3)**-1 //mm + +//Result +printf("The centroid of the given area is %.2f mm",X_bar) +printf("\n The centroid of the given area is %.2f mm",Y_bar) +//Answer given in the textbook is wrong. -- cgit