Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1032704 // diffsBetweenPairsOfDoubles

JavaX fragment (include)

static double[] diffsBetweenPairsOfDoubles(double[] l) {
  int n = l(l)/2;
  if (n < 1) ret emptyDoubleArray();
  double[] diffs = new[n];
  for i to n:
    diffs[i] = l[i*2]-l[i*2+1];
  ret diffs;
}

Author comment

Began life as a copy of #1032702

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032704
Snippet name: diffsBetweenPairsOfDoubles
Eternal ID of this version: #1032704/1
Text MD5: bac12337b759caf94f1e130fc0cf3a2e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-02 05:20:42
Source code size: 206 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 139 / 164
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)