Recent postsView all

Unit Plans
2 Jun 19
Getting started?
27 May 19
Practical work (and Paper 3)
18 May 19
Group 4 Project
12 May 19
Single slit distraction
9 May 19
Extended Essay
5 May 19
Activities
26 Apr 19
IA 2019 reflections
21 Apr 19
Assessment
21 Apr 19
Individual investigation
13 Apr 19
Revision
6 Apr 19
1000 questions
30 Mar 19

Animated Sombrero

Tuesday 20 March 2018

My first year classes are doing Introduction to waves activity which involves building a wave simulation in Geogebra. I thought I'd refresh my skills by trying to build a 2D version. I did it by using a sequence in a sequence to define a grid of points, a sin function gives the oscillation in the y component. To get the circular wave the phase of the oscillation is dependent on the distance from the centre which is calculated using Pythagoras. Lost?

Here is the code:

Sequence[Sequence[(a, b, sin(f t - sqrt(a² + b²))), a, -10, 10, 1], b, -10, 10, 1]


César
21 Mar 2018
It's a gas
10 Mar 2018

Comments


To post comments you need to log in. If it is your first time you will need to subscribe.