python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Making a clock that takes 2560ms to complete a revolution in JavaScript
I'm trying to make a clock for a Libet task - a cognitive task used by psychologists. By convention these clocks take 2560 ms to complete a revolution. Mine seems to be running quite a lot slower and ...
M.L.
Votes: 0
Answers: 4
Converting from degrees to radians and back leaves a very small leftover
So I have the following javascript code:
function dosine(){
var num = document.getElementById('num').value;
console.log(num);
num = (num*Math.PI)/180;
num = Math.sin(num);
numinver...
CoderMan
Votes: 0
Answers: 1
Why doesn't mean square error work in case of angular data?
Suppose, the following is a dataset for solving a regression problem:
H -9.118 5.488 5.166 4.852 5.164 4.943 8.103 -9.152 7.470 6.452 6.069 6.197 6.434 8.264 9.047 2.222
...
user366312
Votes: 0
Answers: 3
Python: Not being able to compare radians with pi values
I am writing an algorithm which should be able to determine in which quadrant a radian is based on two values that the user inputs. I think that the code is calculating the radian but I know that thos...
Timur Urcan
Votes: 0
Answers: 3