Skip to content

Fix unicode variable names #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/geom/voronoi/cell.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "../../math/abs";

function d3_geom_voronoiCell(site) {
function d3_geom_voronoiCell(site) {
this.site = site;
this.edges = [];
}
Expand Down
8 changes: 4 additions & 4 deletions src/math/random.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
d3.random = {
normal: function(µ, σ) {
normal: function(mu, sigma) {
var n = arguments.length;
if (n < 2) σ = 1;
if (n < 1) µ = 0;
if (n < 2) sigma = 1;
if (n < 1) mu = 0;
return function() {
var x, y, r;
do {
x = Math.random() * 2 - 1;
y = Math.random() * 2 - 1;
r = x * x + y * y;
} while (!r || r > 1);
return µ + σ * x * Math.sqrt(-2 * Math.log(r) / r);
return mu + sigma * x * Math.sqrt(-2 * Math.log(r) / r);
};
},
logNormal: function() {
Expand Down