When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
55 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
Is there a mistake in the formula ??
did you try print-debugging the individual variables?
wdym??
just try printing each variable out after you input it
Yes.
are you there??
it looks like you've got %.f in the print statement
can you crct me?
it should be %f
ok...
Recheck the distance formula.
no
d=√((x2 – x1)² + (y2 – y1)²).
yes
sqrt((x2-x1)(x2-x1)-(y2-y1)(y2-y1));
in the compiler, i mentioned this
whats wrong??
......
Show what you have now, paste as text.
Distancebetweentwopoints = sqrt((x2-x1)(x2-x1)+(y2-y1)(y2-y1))
after correction:
the answer should be 11.1803
but i got diff
is there still something wrong with the formula ??
hello... are you there??
Just take a deep breath and keep trying to solve it while you wait. Saying this every time you have to wait 2 seconds doesn't help
ahh ok..
Are you sure that's the right formula for what you're trying to do? The math checks out
yah am sure...
the question is to find the distance between two points....
so i think i am using the correct formula
@floral mountain Has your question been resolved? If so, type !solved :)
no
Are you inputting the numbers correctly?
You take both the x coordinates first and then both the y coordinates, but perhaps you meant to take the first point's x and y and then the second point's x and y
Thank you and let us know if you have any more questions!
This thread is now set to auto-hide after an hour of inactivity