apps.dynamics

Newtons2nd

object Newtons2nd extends App

The Newtons2nd object is used to illustrate the RungeKutta (RK) and DormandPrince (DP) ODE solvers by applying them to Newton's Second Law of Motion, f = ma = -gm. The flight of a golf ball is simulated from impact until the ball hits the ground. Note, a more realistic simulation would take additional forces into account: drag, lift and spin.

See also

http://claymore.engineer.gvsu.edu/~lait/312/golfball.pdf The accurracies of RK and DP versus the exact solution (EX) are compared.

http://home2.fvcc.edu/~dhicketh/DiffEqns/Spring11projects/Brett_Burglund_Ryan_Street/Diff%20Q/pdfscreen/projectoutline.pdf

Linear Supertypes
App, DelayedInit, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Newtons2nd
  2. App
  3. DelayedInit
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val a: Double

  7. val aa: Double

  8. def args: Array[String]

    Attributes
    protected
    Definition Classes
    App
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def delayedInit(body: ⇒ Unit): Unit

    Definition Classes
    App → DelayedInit
  12. val dt: Double

  13. def dx_dt(t: Double, x: Double): Double

  14. def dy_dt(t: Double, y: Double): Double

  15. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  17. def exactSolution(t: Double): VectorD

  18. val executionStart: Long

    Definition Classes
    App
  19. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. val g: Double

  21. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. val m: Double

  25. def main(args: Array[String]): Unit

    Definition Classes
    App
  26. val n: Int

  27. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  30. val odes: Array[(Double, Double) ⇒ Double]

  31. val p0: VectorD

  32. val p_d: MatrixD

  33. val p_e: MatrixD

  34. val p_r: MatrixD

  35. val s: Double

  36. val sf: Double

  37. val ss: Double

  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  39. var t: Double

  40. val tm: Double

  41. def toString(): String

    Definition Classes
    AnyRef → Any
  42. val tt: VectorD

  43. val v0: VectorD

  44. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from App

Inherited from DelayedInit

Inherited from AnyRef

Inherited from Any

Ungrouped