Ticket #2703 (closed enhancement: invalid)

Opened 10 months ago

Last modified 4 months ago

[Invalid (?)] make _fast_float_ work on inequality testing

Reported by: jason Assigned to: was
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: calculus Keywords:
Cc:

Description

It would be really nice if this worked:

sage: var('x y')
sage: f=x^2+y^2<=1
sage: g=f._fast_float_('x','y')
sage: g(1,2)
False
sage: g(0.5,0.5)
True

Here is a toy implementation:

def ff(func,*args):
    g1 = func.left()._fast_float_(*args)
    g2 = func.right()._fast_float_(*args)
    oper = func.operator()
    def ret(*sub_args):
        return oper(g1(*sub_args), g2(*sub_args))
    return ret

Change History

03/28/2008 11:06:57 AM changed by mabshoff

  • owner changed from mabshoff to was.
  • component changed from Cygwin to calculus.
  • milestone set to sage-2.11.

09/01/2008 08:22:03 AM changed by jwmerrill

  • summary changed from make _fast_float_ work on inequality testing to [Invalid (?)] make _fast_float_ work on inequality testing.

This looks like a near duplicate of #2768, where it was decided that this functionality was a bad idea. See comment by robertwb.

09/02/2008 03:18:02 AM changed by mabshoff

  • status changed from new to closed.
  • resolution set to invalid.
  • milestone changed from sage-3.1.2 to sage-duplicate/invalid.

Thanks Jason,

this is invalid - another ticket gone :)

Cheers,

Michael