C++ Program for Numerical ODE : SHO and Anharmonic Oscillator
$30-5000 USD
Fechado
Publicado há mais de 13 anos
$30-5000 USD
Pago na entrega
Need a C++ program for two [login to view URL] too complicated such as classes or structures or anything arrays functions etc. Please let results be shown in the console after compling it using g++ and [login to view URL] for the results. 1. Not??"So??"Simple Harmonic Oscillator. Upgrade your working SHO code (using RK4 with adaptive step sizes) to handle a damped and driven pendulum without assuming small angles: θ'' + qθ' + ωo^2sin θ = F sin(ωdt) Verify that your simulation works properly by testing the cases where a) q = F = 0 and θ ≪ 1 b) ωd = ωo c) θ ≫ 1. d) q 6= 0, F 6= 0, and ωo ∼ ωd. In each case, generate a position and a phase space plot. 2. (⋆) The Anharmonic Oscillator. Consider a particle of mass m moving in apotential V (x) = kx^p. Use numerical integration techniques to explore the oscillation frequency of this system for p = 4. Is the frequency fixed by the mass and the potential? Or does it depend on the initial conditions of the motion? How does the value of p affect the system? Generalize this problem to oscillators with arbitrary p values, and explore (in real and phase space) its behavior as a function of p.
## Deliverables
1) All deliverables will be considered "work made for hire" under U.S. Copyright law. Employer will receive exclusive and complete copyrights to all work purchased. (No 3rd party components unless all copyright ramifications are explained AND AGREED TO by the employer on the site per the worker's Worker Legal Agreement).
## Platform
Im using Unix in class i got Cygwin on my computer. Need it C++ thanks.