Permalink
Browse files

Update PSE 5E Problem 4.11

  • Loading branch information...
1 parent cfe7970 commit 2864dc06e08fe771eb26931d312b7d621187193d @dharmatech committed Mar 15, 2013
Showing with 33 additions and 0 deletions.
  1. +33 −0 PSE 5E Problem 4.11 Snowball Fight/Program.cs
@@ -86,10 +86,43 @@ static void Main(string[] args)
var th2 = Calc.InitialAngle(obj2A, obj2B, 1, 0);
+ ("At what angle should the second (low-angle) snowball " +
+ "be thrown if it is to land at the same point as the first?").Disp();
+
+ "".Disp();
+
+ "symbolic:".Disp();
+
+ th2.Disp(); "".Disp();
+
+ "numeric:".Disp();
+
+ th2
+ .ToDegrees()
+ .Substitute(yA, 0)
+ .Substitute(th1A, (70).ToRadians())
+ .Substitute(vA, 25)
+ .Substitute(g, 9.8)
+ .Substitute(Trig.Pi, Math.PI)
+ .Disp();
+
+ "".Disp();
+
obj2A.velocity = Point.FromAngle(th2, vA);
var time2B = Calc.Time(obj2A, obj2B, 1);
+ ("How many seconds later should the second snowball be thrown if it " +
+ "is to land at the same time as the first?").Disp();
+
+ "".Disp();
+
+ "symbolic:".Disp();
+
+ (time1B - time2B).Disp(); "".Disp();
+
+ "numeric:".Disp();
+
(time1B - time2B)
.Substitute(yA, 0)
.Substitute(th1A, (70).ToRadians())

0 comments on commit 2864dc0

Please sign in to comment.