Recent postsView all

Money
14 Feb 19
Gp4 hands off / hands on
10 Feb 19
Wolf blood moon
22 Jan 19
New lab :-)
11 Jan 19
Happy New Year! (EM)
3 Jan 19
Google classroom idea
2 Jan 19
Making connections
21 Nov 18
Cross and dot
31 Oct 18
The wow factor
23 Oct 18
Causing tension
13 Oct 18
Physics gender gap (EM)
13 Oct 18
How many zlings in your plodge?
29 Sep 18

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.