How to find the Max of a Piecewise function
- To: mathgroup at smc.vnet.net
- Subject: [mg90411] How to find the Max of a Piecewise function
- From: Aaron Fude <aaronfude at gmail.com>
- Date: Tue, 8 Jul 2008 07:48:46 -0400 (EDT)
Hi, If f is deined according to f[x_] := Piecewise[{{1, x < 1}, {2, x > 1}}] then Max[f[Range[0, 1, .001]]] does not yield the desired result. What's the proper way to approach this? Thanks! Aaron
- Follow-Ups:
- Re: How to find the Max of a Piecewise function
- From: "W_Craig Carter" <ccarter@mit.edu>
- Re: How to find the Max of a Piecewise function