#What's wrong..?

55 messages · Page 1 of 1 (latest)

native zealotBOT
#

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.

floral mountain
#

Is there a mistake in the formula ??

strange peak
#

did you try print-debugging the individual variables?

floral mountain
#

wdym??

strange peak
#

just try printing each variable out after you input it

floral mountain
#

is it in this way??

#

.....

lean mason
floral mountain
#

are you there??

strange peak
#

it looks like you've got %.f in the print statement

floral mountain
#

can you crct me?

strange peak
#

it should be %f

floral mountain
#

ok...

lean mason
floral mountain
#

now the how abou the formula??

#

sqrt((x2-x1)^2)-(y2-y1)^2) right??

strange peak
floral mountain
#

d=√((x2 – x1)² + (y2 – y1)²).

strange peak
#

yes

floral mountain
#

sqrt((x2-x1)(x2-x1)-(y2-y1)(y2-y1));

floral mountain
#

whats wrong??

#

......

quasi quartz
floral mountain
#

😭

#

okay

#

thanks

#

but still its wrong though>>

#

why

#

??

lean mason
#

Show what you have now, paste as text.

floral mountain
#

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??

quasi quartz
floral mountain
#

ahh ok..

quasi quartz
#

Are you sure that's the right formula for what you're trying to do? The math checks out

floral mountain
#

yah am sure...

#

the question is to find the distance between two points....

#

so i think i am using the correct formula

native zealotBOT
#

@floral mountain Has your question been resolved? If so, type !solved :)

floral mountain
#

no

quasi quartz
#

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

floral mountain
#

ohh ok

#

yahh i got it

#

thank you so much

#

!solved

native zealotBOT
#

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