summaryrefslogtreecommitdiff
path: root/446/CH5/EX5.1/5_1.sce
blob: 0781366534e6ed34fc5096b8e933d34c1552c8e1 (plain)
1
2
3
4
5
6
clear 
clc
disp('Exa-5.1');//The solution involves very complex symbolic equation solving and approximations. Hence only answers are displayed
printf('The displacement and velocity of the ball are found out in 2 steps\n step1-before reaching the surface of water and \n step2-Inside water till it rises back to surface\n');
printf('The values are as follows: v1(t)=-g*t and y1(t)=H-((g/2)*t^2))\n');
printf('In region 2: v2(t)=(-B/m*sqrt(2*H/g))+(B/m-g)*t; y2(t)= H+ HB/mg -B/m*sqrt(2*H/g)+ (B/m-g)');