summaryrefslogtreecommitdiff
path: root/593/CH6/EX6.11/ex6_11.sce
blob: 7dc8bbf0af535fb1f7abd33a953151c4fb58aa99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
clear;
//clc();

// Example 6.11
// Page: 121
printf("Example-6.11  Page no.-121\n\n");

//***Data***//
x_b = 0;
x_a = 1;
// We have
//dv_a/dx_a = 3*x_b^(2)+2*x_b
// We have the equation 
// dv_b/dx_a = -(dv_a/dx_a)/(x_b/x_a)
// So
// dv_b/dx_a = -(x_a/x_b)*(3*x_b^(2)+2*x_b) 
dv_b_by_dx_a = x_a*(-3*x_b-2);
printf("Value of the dv_b/dx_a at x_b =0 is %0.0f",dv_b_by_dx_a);