Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

test if a curve is above another

I have defined 2 curves.
The definition is more complex than showed. This is only to be easily reproductible

c1: y= 2
c2: y=x+1 

I now want a curve c3 so that y=1 if c1 if above c2 and y=2 if c2 is above c1.

I wrote c3: y=If(y(c1)>y(c2),1,2)

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

No errors are raised by geogebra but it only print a line defined like this y=2.

Why does my test fail and how to fix it

>Solution :

You aren’t using the correct syntax. This one works for me:

f(x) = 2
g(x) = x + 1
h(x) = If(f(x) > g(x), 1, 2)

Geogebra f(x), g(x), h(x)

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading