Sine & Cosine Graphing Calculator from Landmarks
Enter minimum and maximum values with either a known period or two timed wave landmarks. Compare equivalent sine and cosine forms, inspect quarter turns and check how closely another timed landmark fits.
Reconstruct a sine wave from its landmarks
Start from timed landmarks or enter a known period and phase.
Wave inputs
Use the same time unit throughout. Enter the wave’s low and high values and select how to define its timing.
The landmarks define a period of 8.
Wave equation and timing
- Period
- 8
- Amplitude
- 4
- Midline
- 6
- Rising reference time
- 1
- Peak reference time
- 3
- Frequency per time unit
- 0.125
Landmark A to B spans 2 quarter turns.
Sine · y = 6 + 4 sin(2π × (t − 1) / 8)
Cosine · y = 6 + 4 cos(2π × (t − 3) / 8)
Wave and landmark graph
Time from 1 to 9.
- Input landmarks
- Observed check
- Expected check
- Query point
- Time
- 3
- Phase in turns
- 0.25
- Height
- 10
Landmark timing check
Rising midline observed at 8.5. Nearest predicted time 9.
Observed minus predicted -0.5.
Evaluation at time 4
Height 8.828427125 (approximate) · phase 0.375 turns.
Export the sinusoid worksheet
Download the model, landmark check, query and exact quarter-turn values.
View CSV text
How to use this calculator
- Enter the minimum and maximum heights. Use the same time unit for every time or period value.
- Choose Known parameters for a period and a rising midpoint reference. Choose Timed landmarks to reconstruct the period from a typed pair and the number of extra cycles.
- Compare the equivalent sine and cosine equations. Inspect quarter turns across one cycle or the full interval between landmarks.
- Enter an optional check landmark or query time. Review the timing residual and download all worksheet values.
The Formula
The mathematical logic powering this calculation is:
Given low L and high H, the amplitude is (H−L)/2 and the midline is (H+L)/2. In sine form y(t) = midline + amplitude × sin[2π(t−t₀)/T], where t₀ is a rising midpoint time and T is the positive period. The equivalent cosine form uses peak time t₀+T/4. Frequency is 1/T in cycles per entered time unit.
A rising midpoint, peak, falling midpoint and trough occur at phase turns 0, 1/4, 1/2 and 3/4. From landmark A to a later B take the smallest positive forward gap in quarters, using four for repeated landmark types. Add four quarters for each extra complete cycle entered. Period T equals four times the elapsed time divided by the total quarter count. The rising reference is landmark A's time minus its phase times T.
For a check of one landmark type, all predicted occurrences are a fixed phase offset from t₀ plus integer multiples of T. Choose the nearest occurrence, using the earlier time when tied. The signed residual is observed minus predicted. A query uses phase (t−t₀)/T reduced to [0,1) before evaluating sine. Quarter turns and rational sine values at some twelfth turns are exact, while other heights use numerical approximation.
Use a common time unit, with signed decimal inputs from −1 billion to 1 billion and up to six decimal places. Zero to 60 extra complete cycles can be added. Enter a high value above the low and a strictly later landmark B. The two timestamps alone cannot identify how many cycles passed. The workspace evaluates a single sinusoid under the selected cycle count.Worked Example
If you input:
- Low / high: 2 / 10
- Timed landmarks: Peak at 3 and trough at 7
- Rising midpoint check: 8.5
Result:
The period is 8, amplitude 4 and midline 6. The rising reference is 1. The closest predicted rising midpoint to 8.5 occurs at 9, for a residual of −0.5.
Frequently Asked Questions
How can two landmarks identify a period?
Each landmark type fixes a quarter-turn phase. Their selected forward phase gap and elapsed time determine the period. The number of extra complete cycles is supplied by you.
What if both measurements are peaks?
The smallest positive gap is one period. Enter one extra cycle if the timestamps are separated by two periods.
How do sine and cosine forms describe the same wave?
The sine model starts at a rising midline. The cosine model starts at a peak one quarter period later. Both give the same heights.
What does a negative check residual mean?
The observed landmark occurred earlier than the nearest predicted occurrence of the same type.
Can I enter wave amplitude and midline instead of high and low?
Convert them first. High is midline plus amplitude and low is midline minus amplitude, with amplitude positive.
Similar Calculators
Trigonometric Equation Roots Calculator
Solve first- and second-harmonic trigonometric equations. Count exact roots, distinguish crossings and touches, and graph one complete period.
Trigonometric Identities Calculator
Prove supported sine and cosine identities by comparing exact coefficients. Inspect rewrites, graph both sides and explain a mismatch.
Inverse Trig & Angle Solutions Calculator
Find arcsin, arccos or arctan and all matching angles in a chosen window. See exact special angles, principal ranges and periodic solution graphs.
