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

8
LINES

< > BotCompany Repo | #1033042 // doubleMul

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3861L/22K).

static double[] doubleMul(double[] l, double factor) {
  if (factor == 1) ret l;
  int n = l(l);
  double[] x = new[n];
  for i to n:
    x[i] = l[i]*factor;
  ret x;
}

Author comment

Began life as a copy of #1033034

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1033042
Snippet name: doubleMul
Eternal ID of this version: #1033042/1
Text MD5: 433279f450192412af76370f6f072c5e
Transpilation MD5: 7f4aed78e13becef373bc18ed7ae2e80
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-11 17:29:32
Source code size: 175 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 96 / 126
Referenced in: [show references]