Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jasongrout opened this issue Mar 28, 2008 · 2 comments
Closed

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

jasongrout opened this issue Mar 28, 2008 · 2 comments

Comments

@jasongrout
Copy link
Member

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

Component: calculus

Issue created by migration from https://trac.sagemath.org/ticket/2703

@jicama
Copy link
Mannequin

jicama mannequin commented Sep 1, 2008

comment:2

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

@jicama jicama mannequin changed the title make _fast_float_ work on inequality testing [Invalid (?)] make _fast_float_ work on inequality testing Sep 1, 2008
@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Sep 2, 2008

comment:3

Thanks Jason,

this is invalid - another ticket gone :)

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed Sep 2, 2008
@sagetrac-mabshoff sagetrac-mabshoff mannequin removed this from the sage-3.1.2 milestone Sep 2, 2008
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants