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

3
LINES

< > BotCompany Repo | #1035327 // zeroToOneSine - sine function where both input and output domains are [0, 1]

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

Transpiled version (43L) is out of date.

static double zeroToOneSine(double x) {
  ret 0.5*(1+sin(x*(pi()*2)));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1035327
Snippet name: zeroToOneSine - sine function where both input and output domains are [0, 1]
Eternal ID of this version: #1035327/4
Text MD5: 8c1e1d0d63f85250a7fbe809ed9e7f95
Author: stefan
Category: javax / math
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-05-01 04:58:37
Source code size: 74 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 62 / 97
Version history: 3 change(s)
Referenced in: [show references]