# dharmatech/Symbolism

Point components of Obj are initialized

1 parent 91106c4 commit 99ffb6ed37870efc657d57602c16ec202596b9f4 committed Mar 9, 2013
1 PSE 5E Example 4.5 Thats Quite An Arm/Program.cs
 @@ -37,7 +37,6 @@ static void Main(string[] args) var objB = new Obj() { - position = new Point(), velocity = new Point(objA.velocity.x, 0), acceleration = _g, };
1 PSE Example 4.3 The Long-Jump/Program.cs
 @@ -46,7 +46,6 @@ static void Main(string[] args) var objB = new Obj() { - position = new Point(), velocity = new Point(objA.velocity.x, 0), acceleration = _g };
6 Physics/Physics.cs
 @@ -90,9 +90,9 @@ public MathObject Norm() public class Obj { - public Point position; - public Point velocity; - public Point acceleration; + public Point position = new Point(); + public Point velocity = new Point(); + public Point acceleration = new Point(); public MathObject time;
11 Tests/Program.cs → Tests/Tests.cs
 @@ -159,9 +159,8 @@ static void Main(string[] args) // Console.WriteLine((x + x + x + x) / x); } + #region PSE 5E Example 4.3 { - // PSE Example 4.3 - var thA = new Symbol("thA"); // angle at point A var vA = new Symbol("vA"); // velocity at point A @@ -181,7 +180,6 @@ static void Main(string[] args) var objB = new Obj() { - position = new Point(), velocity = new Point(objA.velocity.x, 0), acceleration = _g }; @@ -222,10 +220,10 @@ static void Main(string[] args) == 0.72215756424454336); } + #endregion + #region PSE 5E EXAMPLE 4.5 { - // PSE 5E EXAMPLE 4.5 - // A stone is thrown from the top of a building upward at an // angle of 30.0° to the horizontal and with an initial speed of // 20.0 m/s, as shown in Figure 4.12. If the height of the building @@ -250,7 +248,6 @@ static void Main(string[] args) var objB = new Obj() { - position = new Point(), velocity = new Point(objA.velocity.x, 0), acceleration = _g, }; @@ -320,7 +317,7 @@ static void Main(string[] args) new DoubleFloat(35.805027579936315), 0.1); } - + #endregion Console.WriteLine("Testing complete");
2 Tests/Tests.csproj
 @@ -43,7 +43,7 @@ - +