# Questions tagged [trigonometry]

For challenges where trigonometry plays an important role.

31 questions
Filter by
Sorted by
Tagged with
2k views

2k views

### Help me I'm lost in the ocean!

Introduction Today I went fishing alone with my canoe, unfortunately I fell asleep and the stream brought me away, I lost my oars, now it's night and I am lost in the ocean! I can't see the coast so ...
846 views

### Distance Between Two Points Travelling on a Polar Graph Chart

Brief Problem Explanation Write a program to find the minimum distance between two points traveling only on rays emanating from the origin and circles centered on the origin. Explanation of Premise ...
919 views

### Write a Sine-Deriving Machine

The Challenge Your challenge is to write a program that evaluates the following function: f(x, t) = d^x / dt^x (sin t) That is, the x-th derivative of sin t. In case you aren't familiar with ...
1k views

### g​o​l​f​ ​a​t​a​n​2

Sometimes it really is a struggle to convert Cartesian coordinates (x,y) to Polar coordinates (r,phi). While you can calculate <...
2k views

### Matrix Trigonometry

Introduction The two most common trigonometric functions, sine and cosine (or sin and ...
933 views

### Print cos(2π/17) exactly

One way to construct a regular heptadecagon starts with drawing a horizontal line of length 1 from the center to a vertex. Then the distance along that line from ...
4k views

### Print sin, cos, and tan of special angles

In trigonometry, there are certain angles known as "special angles". This is because when you take sin, cos or tan of one of these angles, you get a result that is easy to remember because it is a ...
644 views

### Make a Surfin' Word

Your goal is to map a piece of text to a sine curve of the form: a sin ( mx - b ) Where a and m are non-zero rational numbers, b is a rational number, and the calculations are in radians. It doesn't ...
653 views

### Finding Exclusive Area in Circle Intersections

Here's a deceptively challenging geometry puzzle for you! Given a circle A, and n other circles ...
1k views

### Spherical excess of a triangle

Spherical excess of a triangle As we all know, the sum of angles of any planar triangle is equal to 180 degrees. However, for a spherical triangle, the sum of angles is always greater than 180 degrees....
8k views

### A single pixel moving in a circular path

This is a graphical output challenge where the task is to give the shortest code per language. Task Your code should plot a single purple pixel (hex value #800080 or rgb(128, 0, 128)), moving ...
2k views

### Find the angle between two points

Given two points A and B, find the angle from line AO to line ...
540 views

### Regular Polygrams

Given the number of vertices n ≥ 3 and the "step size" 1 ≤ m < n/2 (indicating the distance between two connected vertices), ...
2k views

### A Sine of Greatness

Introduction Everyone's heard of sine (sin), cosine (cos), tangent (tan), cotangent (cot), secant (sec), and cosecant (csc). Nearly every angle has them. Far less known, or remembered, are the ...
2k views

### Help me with trigonometry!

Thank you guys so much for your help with calculus. Now I need some help with my upcoming trigonometry test. On the test, I'll need to simplify expressions. I’ll be given input like ...
699 views

### Output an Animated Trigonometry Circle

I want you to write a program that outputs a trigonometry circle like the one below. I also want you to animate this circle, having the sine line move along the circumference with the other lines move ...
3k views

### Fast Trig Calculation

Fast Trigonometry Calculations Your task is to create a program which can calculate the sine, cosine and tangent of an angle in degrees. Rules No built-in trigonometry functions (not even secant, ...