# [R] Finding Infimum in R

Bert Gunter bgunter.4567 at gmail.com
Mon Apr 10 06:34:18 CEST 2017

```Then it's trivial. Check values at the discontinuities and find the
first where it's <0 at the left discontinuity and >0 at the right, if
such exists. Then just use zero finding on that interval (or fit a
line if everything's linear). If none exists, then just find the first
discontinuity where it's > 0.

Cheers,
Bert

Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )

On Sun, Apr 9, 2017 at 5:38 PM, li li <hannah.hlx at gmail.com> wrote:
> Hi Burt,
>     Yes, the function is monotone increasing and points of discontinuity are
> all known.
> They are all numbers between 0 and 1.  Thanks very much!
>    Hanna
>
>
> 2017-04-09 16:55 GMT-04:00 Bert Gunter <bgunter.4567 at gmail.com>:
>>
>> Details matter!
>>
>> 1. Are the points of discontinuity known? This is critical.
>>
>> 2. Can we assume monotonic increasing, as is shown?
>>
>>
>> -- Bert
>>
>>
>>
>>
>> Bert Gunter
>>
>> "The trouble with having an open mind is that people keep coming along
>> and sticking things into it."
>> -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
>>
>>
>> On Sun, Apr 9, 2017 at 1:28 PM, li li <hannah.hlx at gmail.com> wrote:
>> > Dear all,
>> >   For a piecewise function F similar to the attached graph, I would like
>> > to
>> > find
>> >                                         inf{x| F(x) >=0}.
>> >
>> >
>> >  I tried to uniroot. It does not seem to work. Any suggestions?
>> >  Thank you very much!!
>> >     Hanna
>> >
>> > ______________________________________________
>> > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> > https://stat.ethz.ch/mailman/listinfo/r-help