<![CDATA[Intersection between a group of inequalities and an equation.]]>
https://help.geogebra.org/topic/intersection-between-a-group-of-inequalities-and-an-equation
Sat, 10 Apr 2021 00:42:58 +0000Thu, 08 Apr 2021 16:42:16 +0000Zend_Feed<![CDATA[I don't think there is a simple, "native" solution in Geogebra, so you have to tell Geogebra how to construct that segment. Attached is a way to do it. It should be able to handle any number of linear inequalities with a single linear equality, as long as the final intersection is bounded (i.e. no whole line or ray). I couldn't find a way to "deconstruct" the region and get the inequalities back to work with those, so as a starting point it's assumed that the system of inequalities is given as a standardized matrix-vector inequality (Ax<=b). The matrix A and vector b should have proper sizes (I didn't include any checks for that). The region satisfying the inequality is then constructed from the matrix A and the vector b. (It's a bit complicated via an auxiliary list, but I couldn't find an easy way to do it.) To get the the intersection of that region with the line that represents the given equality, first the intersections of that line with the boundary lines of each inequality is computed. (Geogebra only gives a proper result when the lines are not parallel, but only those are needed anyway.) The resulting list of points is then trimmed, keeping only the points that are in the inequality region, and each of those points only once. Because the list can only contain points on the boundary of the region and because the region is convex, this means that the list contains at most two points in the end. If two then those are the endpoints of the segment; if one then it's just assumed that the interersection is a single corner point (I didn't handle the case of an infinite region where the intersection might be a whole ray); if none then the intersection is assumed to be empty (I didn't handle the case of an infinite region where the intersection might be the whole line). Then the segment (if it exists) is drawn, and some text output is generated.]]>
https://help.geogebra.org/topic/intersection-between-a-group-of-inequalities-and-an-equation#comment-302766
Fri, 09 Apr 2021 15:56:01 +0000<![CDATA[The Vertex() command can be helpful in some cases.]]>
https://help.geogebra.org/topic/intersection-between-a-group-of-inequalities-and-an-equation#comment-302770
Fri, 09 Apr 2021 18:12:59 +0000<![CDATA[In other cases the command ClosestPointRegion()]]>
https://help.geogebra.org/topic/intersection-between-a-group-of-inequalities-and-an-equation#comment-302772
Fri, 09 Apr 2021 18:35:14 +0000<![CDATA[Und noch einen.... an equation given as f(x)=... and with CAS part ]]>
https://help.geogebra.org/topic/intersection-between-a-group-of-inequalities-and-an-equation#comment-302774
Fri, 09 Apr 2021 18:43:45 +0000<![CDATA[Ah, nice. I didn't know that Vertex command. Much easier that way.]]>
https://help.geogebra.org/topic/intersection-between-a-group-of-inequalities-and-an-equation#comment-302778
Fri, 09 Apr 2021 19:40:05 +0000<![CDATA[have a look here https://help.geogebra.org/t... https://wiki.geogebra.org/e...]]>
https://help.geogebra.org/topic/intersection-between-a-group-of-inequalities-and-an-equation#comment-302782
Fri, 09 Apr 2021 20:26:53 +0000<![CDATA[Thank you very much for your amazing support, I see that there are several ways to achieve the result. I'll be testing them all and see which one fits my use case the best. Thank you again]]>
https://help.geogebra.org/topic/intersection-between-a-group-of-inequalities-and-an-equation#comment-302784
Sat, 10 Apr 2021 00:42:59 +0000