ffc team mailing list archive
-
ffc team
-
Mailing list archive
-
Message #01296
Re: Absolute value difficulties.
Quoting Marie Rognes <meg@xxxxxxxxxxx>:
> Kristian Oelgaard wrote:
> >
> >> The next problem is
> >>
> >> >>> ffc.abs(1) < 0.001
> >> True
> >>
> >>
> >> which is a bit more puzzling for me in itself and in how to fix.
> >>
> >> Anyone want to take a look?
> >>
> >
> > ffc.abs(1)
> >
> > returns a Form
> > try
> > ffc.abs(1).__doc__
> >
> > what you could do is
> > f = ffc.Form(1)
> > f.monomials[0].numeric < 0.001
> > which will be false
> >
> >
> In other words - the most sensible thing to do would be to implement
> less-than and greather-than for Forms in the above manner?
Yes, I think so.
> Will do, unless anyone objects.
I don't mind
Kristian
> --
> Marie
>
References