Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: BastianAsmussen/dotfiles
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1ab88b2bfbbfa9b9836682d9776e8301535fa2b6
Choose a base ref
..
head repository: BastianAsmussen/dotfiles
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1a813493abc9fd19bef9311d0961636d4ce8f208
Choose a head ref
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/math/trigenometry.nix
4 changes: 2 additions & 2 deletions lib/math/trigenometry.nix
Original file line number Diff line number Diff line change
@@ -23,15 +23,15 @@
offset = normalized - (k * HALF_PI);
};

# Core sine computation using Taylor series
# Core sine computation using Taylor series.
computeSin = x: let
x2 = square x;
x3 = cube x;
part1 = S2 + x2 * (S3 + x2 * (S4 + x2 * (S5 + x2 * S6)));
in
x + x3 * (S1 + x2 * part1);

# Core cosine computation using Taylor series
# Core cosine computation using Taylor series.
computeCos = x: let
x2 = square x;
part1 = CS2 + x2 * (CS4 + x2 * CS6);