How to restrict point on vertical and horizontal line as well as free when line hidden?

Math123 shared this question 3 years ago
Answered

Pls see attached. How to restrict vector tail on vertical line and horizontal line. So i can move vector on the line without change its direction and length. Also i can change the position of line (vertical and horizontal separately) . It is also possible when i hide the line vector can move freely.

Best Answer
photo

It's not same as mathmagic's solution.

But maybe that what you want.

Comments (19)

photo
2

hello

Files: foro.ggb
photo
1

HI mathmagic, Thanks for the reply.

Is it also possible to make lines simple without points because there is no. also when we hide the lines vector is free to move all over the plane not on the line.

photo
photo
1

For me is not clear what you mean.

But maybe this in the attachment.

photo
1

Pls see mathmagic attachment. This is the solution i want but it is only restricted to horizontal and vertical line. I want we can hide lines as we hide lines vector free to move all over the plane. (Pls make simple lines without point)

But vector always remain the same when we travel along x-direction or y-direction or freely move.

photo
1

I think my vector can move all over the plan (and he need no lines to do that)

BUT you can ask the x / y coordinates of footer (A) and head (B) of vector.


attached the x and y components (question in this thread)

photo
1

Thanks for your effort rami. but i want my vector (with xand y component) move exactly along x-direction and y-direction, let say x=2 so my vector restricted to move along this line so i change line x=3, and so on same in y=2 etc.. as i can hide these line so i am free to move vector free all over plane.

Pls see mathmagic attachment. he did exactly what i want, but it is only restricted to line , i want also vector free when i hide lines.

photo
photo
2

It's not same as mathmagic's solution.

But maybe that what you want.

photo
1

Thanks rami , this is exactly what i want. Looks good and as well my solution also.

Once again thanks for your support.

photo
1

Rami i need one more favor. if F(x,y) = P(x,y) i+ Q(x,y) j

How to show P_x (in x-component) P_y (y-component) when my vector on horizontal line and hide when on vertical line.

Also show Q_x (in x-component) Q_y (y-component)when my vector on Vertical line and hide when on Horizontal line.

,

photo
1

What is P,Q,i,j,P_x,P_y,Q_x,Q_y

For me it is easiest when you speak with the terms in this applet

(A,B,O,OXY,x=x(O),y=y(O), u, u_x, u_y)

photo
1

Assume a , b , c , d are numbers

If i move vector u along horizontal line of OXY then i want to show x-component u_x vector with let say "a" as well as and y component u_y vector with "b". and as i move my vector to the vertical line of OXY "a" , "b" hide and then u_x = c & u_y = d.

Moving vector u to the horizontal line u_x = a & u_y = b (hide c & d)

Moving vector u to the vertical line u_x = c & u_y = d (hide a & b)

Also their original value of u_x and u_y also shown , i want additionally shown a,b,c,d on condition of where i am on horizontal or vertical line.

photo
2

Same in pseudo-code (my interpretation of your text)

When "A fixed" is ON and

.....(A lies on horizontal of OXY then:

..........u_x become the value of Number a as additional caption

..........u_y become the value of Number b as additional caption)

.....(A lies on vertical of OXY then:

..........u_x become the value of Number c as additional caption

..........u_y become the value of Number d as additional caption)

ELSE

.....no additional captions

photo
1

Thanks rami.. Superb and outstanding. Can you pls look my other question beacuase i have holidays 2-3 days i want to complete my projects and need you and GGB team to my queries , so i can complete my projects otherwise i will become busy.

Once again thank you so much for the support.

photo
1

Hi rami, Pls look suggest the solution. I need also name a,b,c,d . it also change name with value on moving.

photo
1

Thanks rami, found solution i added " a = " a in command it change name as well. Pls see other question and suggest solution.

photo
1

Better: If(Distance(A, y = y(O)) < 0.01, Name(a) " = " a, Name(c) " = " c)

If the name change (for example a is new aX), then the Name in the text change automatic.

----------------------

what other question you mean (link). In 12 hours I will look after it.

photo
1

Can you pls see my other questions i recently opened. If you have time i think it will be easier for you to answer.

photo
1

Hi rami how to do the same when in 3D, (I tried to change for 3D but it did not work)

Example command you shared : If(Distance(A, y = y(O)) < 0.01, a, c)

Let say a,b,c d,e,f g,h,i are numbers..

Vector components moving along x-axis:

u_x = a (when vector u along x-axis line)


u_y = b (when vector u along x-axis line)


u_z = c (when vector u along x-axis line)


Vector Components Moving along y-axis:

u_x = d (when vector u along y-axis line)


u_y = e (when vector u along y-axis line)


u_z = f (when vector u along y-axis line)


Vector Components moving along z-axis:

u_x = g (when vector u along z-axis line)


u_y = h (when vector u along z-axis line)


u_z = i (when vector u along z-axis line)

photo
1

Thanks rami, I found the solution. I apply two if conditions on visibility.

photo
© 2023 International GeoGebra Institute