Home | Math Display Experiments | Trigonometry function graphs - Using JSXGraph (with an array)

Page by Murray Bourne, IntMath.com. Last updated: 21 Feb 2016

Trigonometry function graphs - Using JSXGraph (with an array)

Both of these are set to run at 30 frames per sec. The main difference with this one is the use of an array:

    singrph.updateDataArray = function() {
        this.dataX = sinX;    
        this.dataY = sinY;
    };

Many thanks to Alfred Wassermann for the optimization suggestions!

See also:

Using D3, and

Using JSXGraph (without data)

Sine case

t = θ = 0

y = 100 sin(0) = 0

Frame rate = 0 fps

Copyright © www.intmath.com

Cosine case

t = θ = 0

y = 100 cos(0) = 0

Frame rate = 0 fps

Copyright © www.intmath.com

Search IntMath, blog and Forum