#Wrong value when calculate

70 messages ยท Page 1 of 1 (latest)

heavy panther
#

idk why the answer is not as expected.

whole hawk
#

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

heavy panther
whole hawk
#

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

heavy panther
#

true

whole hawk
#

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

heavy panther
#

?

#

so how to finish it

#

not familiar w/ Standard Deviation Formula

#

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

whole hawk
#

Compute the sum first?

heavy panther
#

idk how to calculate it correctly

whole hawk
#

It's a sum... You did it for the sum of all values

#

I don't quite see what's different

heavy panther
#

so how to calculate...

#

(desperate)

whole hawk
#

Did you just ignore what I said above?

heavy panther
#

you only said "calculate the sum first"

heavy panther
whole hawk
#

and?

heavy panther
#

idk how to do

#

no clue

whole hawk
#

and I said what else?

heavy panther
#

but I did it isnt it

#

๐Ÿค”

#

bath first

whole hawk
#

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.

heavy panther
#

๏ผŸ

#

I rlly dk

whole hawk
#

Yes, because you didn't try

heavy panther
#

Should I ignore all mathematical symbols

#

And calculate the sums first

whole hawk
#

yes

#

That's what "first" means

heavy panther
#

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

heavy panther
#

and as I expected

#

it ||fucked-up||works but wrong number.

whole hawk
#

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

heavy panther
#

?

#

k nothing

whole hawk
#

Dude, stop being cryptic. When you struggle you're supposed to talk about your struggles

#

It's very weird what you're doing.

heavy panther
#

need to be this

#

๐Ÿ˜…

#

can close now

whole hawk
#

Yes, looks like it, but did you do it yourself?

heavy panther
#

ye