Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Minimum of two functions

Tags:

geogebra

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).


1 Answers

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.

like image 122
jtimmons Avatar answered Sep 14 '25 17:09

jtimmons