Skip to main content

Questions tagged [trigonometry]

For challenges where trigonometry plays an important role.

9 votes
4 answers
224 views

A math teacher wants to give his students an interesting geometry problem. He has the following idea (Fig. 1): Let \$AB\$ and \$CD\$ be two chords of a circle with center \$M\$, intersecting ...
Glory2Ukraine's user avatar
9 votes
8 answers
1k views

There are 3 (commonly used) trigonometric functions sin cos and tan each of these functions ...
bsoelch's user avatar
  • 6,105
20 votes
9 answers
2k views

Most people would cut circular pizzas into circular sectors to divide them up evenly, but it's also possible to divide them evenly by cutting them vertically like so, where each piece has the same ...
Yousername's user avatar
  • 4,310
15 votes
9 answers
1k views

Ptolemy's Almagest contains a table of chords that effectively served as the world's only comprehensive trigonometric table for over a millennium. In modern form it looks like this: \begin{array}{|l|...
Parcly Taxel's user avatar
  • 4,749
2 votes
0 answers
361 views

Challenge I've checked that there is a question Compute the Discrete Cosine Transform which is a competition for implementing a shortest solution to compute the one dimensional discrete cosine ...
JimmyHu's user avatar
  • 403
12 votes
10 answers
2k views

Integers in cosine From trigonometry we know that \$\sin(a) =-\cos(a + \frac{(4*m + 1)\pi}{2})\$ where \$a\$ is an angle and \$m\in\mathbb{Z}\$ (integer). The task For an input of a positive integer \$...
Gábor Fekete's user avatar
25 votes
11 answers
2k views

Background Given a triangle \$ABC\$, extend its three sides by the opposite side length, as shown in the figure below. Then the six points surprisingly lie on a circle called the Conway circle, whose ...
Bubbler's user avatar
  • 79.5k
25 votes
14 answers
3k views

Given (in any structure; flat list, two lists of lists, a tuple of matrices, a 3D array, complex numbers,…) the coordinates for two non-degenerate triangles ...
Adám's user avatar
  • 31.9k
33 votes
15 answers
4k views

Write a program or function that can distinguish the following 12 trigonometric functions: sin, cos, ...
Laikoni's user avatar
  • 26.5k
14 votes
21 answers
3k views

Given latitude/longitude of two points on the Moon (lat1, lon1) and (lat2, lon2), compute the distance between the two points in ...
mdahmoune's user avatar
  • 3,062
22 votes
2 answers
851 views

Trigonometry has LOTS of identities. So many that you can expand most functions into sines and cosines of a few values. The task here is to do that in the fewest bytes possible. Identity list Well, ...
Nissa's user avatar
  • 3,674
26 votes
25 answers
3k views

The Dottie number is the fixed point of the cosine function, or the solution to the equation cos(x)=x.1 Your task will be to make code that approximates this constant. Your code should represent a ...
Wheat Wizard's user avatar
  • 104k
6 votes
7 answers
757 views

Challenge Given a number, x where -1 ≤ x ≤ 1, and the integers a and ...
Beta Decay's user avatar
  • 23.7k
4 votes
8 answers
725 views

Implement the Discrete Cosine Transform (DCT). This may implemented as either a function or a program and the sequence can be given as either an argument or using standard input. Your program must be ...
user avatar
2 votes
18 answers
2k views

This challenge is very simple: Given an angle measure in degrees or radians (your choice), output the angle between 0 and 2π non-inclusive [0º, 360º) that is coterminal with it. Input A positive ...
Daniel's user avatar
  • 6,747

15 30 50 per page