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
home2.fvcc.edu/~dhicketh/DiffEqns/Spring11projects/Brett_Burglund_Ryan_Street/
Diff%20Q/pdfscreen/projectoutline.pdf
claymore.engineer.gvsu.edu/~lait/312/golfball.pdf The accuracies of 'RK' and 'DP' versus the exact solution (EX) are compared. > runMain apps.dynamics.Newtons2nd
- Alphabetic
- By Inheritance
- Newtons2nd
- App
- DelayedInit
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val a: Double
- val aa: Double
- final def args: Array[String]
- Attributes
- protected
- Definition Classes
- App
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- val dt: Double
- def dx_dt(t: Double, x: Double): Double
- def dy_dt(t: Double, y: Double): Double
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def exactSolution(t: Double): VectorD
- final val executionStart: Long
- Definition Classes
- App
- val g: Double
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val m: Double
- final def main(args: Array[String]): Unit
- Definition Classes
- App
- val n: Int
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val odes: Array[Derivative]
- val p0: VectorD
- val p_d: MatrixD
- val p_e: MatrixD
- val p_r: MatrixD
- val s: Double
- val sf: Double
- val ss: Double
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- var t: Double
- val tm: Double
- def toString(): String
- Definition Classes
- AnyRef → Any
- val tt: VectorD
- val v0: VectorD
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def delayedInit(body: => Unit): Unit
- Definition Classes
- App → DelayedInit
- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) the delayedInit mechanism will disappear
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated