Hi,
Is it possible to define a funtion, say f, and have it be the maximum (or minimum) of another function and a constant?
Example (pseudo-script): if g(x)=log(abs(x)), let f(x)=g(x) if g(x)<0, and f(x)=0 for all g(x)<0
Thanks N.C.
1 | initial version | asked 2012-04-17 09:08:11 +0100 Anonymous |
Hi,
Is it possible to define a funtion, say f, and have it be the maximum (or minimum) of another function and a constant?
Example (pseudo-script): if g(x)=log(abs(x)), let f(x)=g(x) if g(x)<0, and f(x)=0 for all g(x)<0
Thanks N.C.
2 | No.2 Revision |
Hi,
Is it possible to define a funtion, say f, and have it be the maximum (or minimum) of another function and a constant?
Example (pseudo-script): if g(x)=log(abs(x)), let f(x)=g(x) if g(x)<0, g(x)>0, and f(x)=0 for all g(x)<0
Thanks N.C.
3 | retagged |
Hi,
Is it possible to define a funtion, say f, and have it be the maximum (or minimum) of another function and a constant?
Example (pseudo-script): if g(x)=log(abs(x)), let f(x)=g(x) if g(x)>0, and f(x)=0 for all g(x)<0
Thanks N.C.