A unit circle for derivation of the cosine sum formula using distance formula

						JXG.Options.axis.ticks.majorHeight = -1;
JXG.Options.axis.ticks.insertTicks = false;
JXG.Options.axis.ticks.ticksDistance = -1;

var board = JXG.JSXGraph.initBoard('box1', {
    axis: true, boundingbox: [-1.3, 1.3, 1.3, -1.3], showcopyright: false,showNavigation:false, keepaspectratio: true, zoom: true, axis: false,
    });
	
var p1, p2, p3, c, a, s;

var p1 = board.create('point', [0, 0],{name:'O',size: 1,fixed:true, label: {offset:[-15,-10], color:'blue'
}} );

p2 = board.create('point',[1,0],{size: 1,label:{ color:'blue'}})

p3 = board.create('point',[0,1],{size: 1,label: {offset:[8, 8], color:'blue'}});
p4 = board.create('point',[-1,0],{size: 1,label: {offset:[-15, 10], color:'blue'}});
p5 = board.create('point',[0,-1],{size: 1,label: {offset:[10, -10], color:'blue'}});


c1 = board.create('circle',[p1, p2]);

a1 = board.create('angle',[p2, p1, p3], {radius:.3});

a1.setAngle(function() {
    return Math.PI / 3;
});
a2 = board.create('angle',[p3, p1, p4], {radius:.4});
a2.setAngle(function() {
    return Math.PI / 3;
});
a3 = board.create('nonreflexangle',[p2, p1, p5], {name:'β',radius:.2});

a3.setAngle(function() {
    return    -Math.PI / 3;
});

board.update();
var l1 = board.create('axis', [[0.0, 0], [1, 0]]);
var l2 = board.create('axis', [[0.0, 0], [0, 1]]);

var l3 = board.create('segment', [p1, p2]);
var l4 = board.create('segment', [p1, p3]);
var l5 = board.create('segment', [p1, p4]);
var l6 = board.create('segment', [p1, p5]);
var l7 = board.create('segment', [p2, p4],{dash:2});
var l7 = board.create('segment', [p3, p5],{dash:2});
					

The image appears in the following posts

Triangle posted 1 year ago

Scroll to Top