# how to draw angle (d theta) between two curve lines?

Math123 shared this question 3 years ago

Pls see attachment . How can draw differential angle between two curve lines? improved (see al1T) 1

Bonjour ,

une solution avec Point on Object 2

or

Maybe you are looking for angle between the tangents 2

improved (see al1T) 1

Hi rami thanks for the reply. Can you pls explain you used commands (l1 , l2 , l3 and tangent) in project.

Secondly how can i show text for only function (x^2 - y^2 = c )current value c at point A also ( xy = k ) current value of k at point A.

Third i want input box for both functions so i can change function and see the effect.  2

l1 and l2 are lists based on command Sequence()

Note: <variable i> is an arbitrary (local) name that exists only within (this) Sequence(). This name is used in <expression> to modify the <expression> for each list item. In this example the RigthSide of the equation.

.

l3 generates a list of all intersections of l1 and l2. This happens in a nested Sequence(Sequence())

The outer Sequence() traverses the (integer) indices of l1 and returns this index named "m" to the <expression> of the inner Sequence() (it could also be the <expression> of the outer sequence (), but that is not needed here).

.

The <expression> of the outer Sequence() is also a Sequence() and is called as inner sequence. The inner Sequence() traverses the (integer) indices of l2 and returns this index named "n" to the <expression> of the inner Sequence(). This creates one element in the list l3 for each conceivable combination of l1 and l2 (respectively m and n).

.

Flatten() causes the curly braces of the inner lists to be resolved, resulting in a simple (one-dimensional) list (instead of a matrix). Depending on the equations used, it is conceivable that an intersection point was generated twice. Unique() removes these duplicate list items.

.

Tangent looks exotic. This is because there is a GGB-bug (wrong syntax-error) in the context of If(RightSide(<equ>)==0, Line(), Tangent())

The Problem: a tangent to a line (index==11 in l1 and l2) is not possible, the result is undefined. Both possibilities (tangent and line) are created in a list and undefined are deleted and only the first element is used.

.

Your points 2 and 3 are realized in the attachment. The left part of the equation is created as text. Note the script in eql1 and eql2, which transform this text into an expression, which are used in l1 and l2.