# Default Gallery Type Template

This is the default gallery type template, located in:

**/var/sites/d/ddxart.co.uk/public_html/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_gallery_display/templates/index.php**.

If you're seeing this, it's because the gallery type you selected has not provided a template of it's own.

*This design comes in two variants, one with uniform lines
and the other using brush strokes.*

When something is widely used, often in dense and complex expressions, it can be easy to forget that it’s actually very simple. So it is with sines and cosines. They are everywhere in maths, science and engineering, often embedded in fearsome-looking calculations. And yet they are the simplest things, and sometimes it is only necessary to remember that fact in order to unlock what seemed like an impenetrable problem.

Take a circle and draw a line out from the centre to the circumference – that’s a radius of the circle. Now draw a horizontal line through the centre. Finally, draw a vertical line, up or down as necessary, from the point where your radius meets the circumference to the horizontal line. You’ve made a triangle. It may be to the left or right of the centre, it may be above or below the centre, it doesn’t matter. It’s a right-angled triangle and the radius is the longest side.

We’re interested in one angle, which may or may not be inside the triangle. It’s the angle between the line that goes from the centre of the circle to the point where three o’clock would be on a clock face, then moving anticlockwise round to your radius. Finally, we’re going to call the length of your radius 1 unit – it doesn’t matter what length it is, for our purposes it’s 1 unit long. You’ve now ready to understand sines and cosines. No really. That’s it.

The sine of the angle we’re interested in is the vertical line you drew. The cosine is the part of the horizontal line between the centre and where it meets the vertical line. If you want that as a number, just compare the length of the line with the radius – that fraction or decimal is the number you want. Oh yes, and if the triangle is below the centre of the circle, stick a minus sign in front of the sine – it’s negative. In the same way, if the triangle is left of centre, the cosine is negative. That’s all there is.

Depending on the angle you draw the radius, the sine and the cosine will vary between 0 and 1. Draw the radius straight up or down and your triangle is really a straight line, the length of the sine is 1 (or -1) because it’s actually the same as the radius and the length of the cosine is 0 because there isn’t one. Conversely, if you draw the radius exactly horizontal, the cosine is 1 (or -1) because, again, it’s the same as the radius and the sine is 0 because there isn’t one.

Notice that because we’re dealing with a right-angled triangle, there’s one very simple and useful fact we already know. Remember Pythagoras? We’ve defined the radius as length 1, but the radius is also the hypotenuse, the longest side, of our triangle. So the squares of the other two sides must add up to… 1. In other words take the sine of one of the two non-right angles angle and square it, then take the cosine and square it and they add up to 1. Many apparently tricky problems disappear in a puff of smoke when you bring together pairs of cos^2 and sin^2 which magically melt into 1s.

Remembering Pythagoras can also help you remember the sines and cosines of some frequently-used angles. Take the angle 45°(π/4). It creates a triangle with two equal sides. Hmmm. What number, when squared and multiplied by 2 (since they’re equal) equals 1? Has to be 1/√2. A good start is simply to remember the sine and cosine of the following five angles:

0° (0 radians) – 0 & 1; 30°

(π/6) – 1/2 & √3/2;

45° (π/4) – 1/√2 & 1/√2;

60° (π/3) – √3/2 & 1/2;

90° (π/2) – 1 & 0.

And to make it even easier, notice that the value of the sines is actually, in turn, √0/2, √1/2, √2/2, √3/2 and √4/2.Then choose your cosine to add up to 1.

Those five will give you multiples all around the circle, just by making any necessary change of sign, so 120° (7π/6) is just the mirror image of 30°, so it gives -1/2 and -√3/2.

And that tangent. It’s just the sine of the angle divided by the cosine but it has a bit more attitude. It refuses to be limited to travelling between 0 and 1. When the angle is 0, it’s zero. At 45° it’s 1. And at 90° it’s off to infinity and beyond.

# Default Gallery Type Template

This is the default gallery type template, located in:

**/var/sites/d/ddxart.co.uk/public_html/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_gallery_display/templates/index.php**.

If you're seeing this, it's because the gallery type you selected has not provided a template of it's own.