blob: 91a06a065c254eacf3b5a08d5a55dec5614ec070 (
plain)
1
2
3
4
5
6
7
8
9
|
//Chapter 27 Ex2
clc;
clear;
close;
//the ratio of their distances is 7: 4 thus assuming dist of A as 7, dist of B is3
distA=7; distB=3; //from given conditions
gain=84;
distPost=gain/(distB/distA);
mprintf("The pole must be placed %.0f meter away from starting point",distPost);
|