#Wrong value when calculate
70 messages ยท Page 1 of 1 (latest)
I'd suspect an int division where there should be a double division
But cannot tell without the code
missing parentheses or wrong parentheses are common causes too
full code
You're modifying the array, then re-using it
That might not be the error itself, but it shows you're not understanding the formula, at least
true
You're supposed to compute a sum. Don't do something else but compute a sum. Once that's done, do the rest of the calculation
?
so how to finish it
not familiar w/ Standard Deviation Formula
hi?
erm
the closest one I can get
but what I want is the 1.639(should be 1.64 as result)
๐ค
@whole hawk do you know how to calculate
Compute the sum first?
idk how to calculate it correctly
It's a sum... You did it for the sum of all values
I don't quite see what's different
Did you just ignore what I said above?
you only said "calculate the sum first"
and...
and?
and I said what else?
this
but I did it isnt it
๐ค
bath first
Well it's not 100% the same
But it's a sum and you know how to compute a sum
If there is something in the way, say exactly what is in the way
When people say "I don't know how to do it" without any details, they did not actually try to. They prefer to give up before trying
Don't do that.
Yes, because you didn't try
no, it doesn't work
it is more weird
changed into "Sum all the things first"
@whole hawk hi?
tested, and it doesn't work
Tried,
and as I expected
it ||fucked-up||works but wrong number.
But that's not a sum at all
Why do you do things absolutely not like you did the first sum?
sum = 0;
for all terms,
add the term to the sum
finished
Dude, stop being cryptic. When you struggle you're supposed to talk about your struggles
It's very weird what you're doing.
Yes, looks like it, but did you do it yourself?
ye