In GeoGebra, is there a way to define a function of two variables which is the pointwise minimum of two functions.
Like h(x, y):= min(x² + y², x + y)
.
(The GeoGebra Min
command does something different.)
I could work around by means of the abs
function, whichis available, using min(a, b) = (a + b - |a - b|) / 2
, but this is not very convenient (actually I need to take the minimum of more than two functions).
You could use a Conditional Function to create a piecewise function that is equal to f(x) if f(x) < g(x) and g(x) otherwise. The definition of this is:
If(f(x) < g(x), f, g)
Here's an example of this in action.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With