# Point or Vector

lionel21 shared this question 1 year ago

Hello,

I have some trouble with if.

I have three reals, x0, y0 and w0.

If w0 is equal to 0, I would have the vectors P0(x0,y0), else, I would have the point P0(x0,y0).

Thank you very much for yours answers.

Lionel

1

Salut Lionel!

Hmm, I think you have to specify your problem.

Saying that there is a "mysterious" if-command which delivers dependent on input a vector or a point .... which answer do you expect. ;-)

So I think for help it's better to post your file.

Greetings

mire2

1

Hi,

I put the file.

Lionel

1

Hi Lionel!

I'm very sorry, but I misunderstood the problem.

Greetings

mire2

1

Hi,

I put an example where P1 is a point or a vector.

Best Regards.

Lionel

1

https://wiki.geogebra.org/e...

`Both objects must be of the same type.`
Maybe you can use "Condition to Show Object" to do what you want?

1

Ok, once again and sorry for the trouble.

I hope that I understand now correct.

In Algebra it does not work (for me), but in CAS (for me) it works.

I deleted my previous post, because the picture in graphic-window doesn't change by changing from "point" to "vector" so I was a little bit confused.

But the logical "proof" confirmed the change.

Greetings

mire2