Git Product home page Git Product logo

Comments (4)

cdrnet avatar cdrnet commented on May 24, 2024

One could indeed argue the One and MinusOne active patterns should not include approximative values. Maybe also Zero, although the floating point precicion is less of an issue there. A follow up question is then whether we still want 1.0/0.0 to simplify to complex infinity.

from mathnet-symbolics.

diluculo avatar diluculo commented on May 24, 2024

Thanks for quick answer. I got it. There are many hidden rules and layers. I thought simply it would be a good idea to add ExactOne.

from mathnet-symbolics.

cdrnet avatar cdrnet commented on May 24, 2024

Yes, either that, or add ApproxOne and change the existing One to no longer include approximative values.

from mathnet-symbolics.

cdrnet avatar cdrnet commented on May 24, 2024

I've recently removed the parts where 1.0 was interpreted as 1 and 0.0 was interpreted as 0. I agree with the reasoning.

Infix string Expression RealValue Note
1.2 Approximation (Real 1.2) 1.2
1.0 + 1/5 Approximation (Real 1.2) 1.2
1 + 1.0/5 Approximation (Real 1.2) 1.2 (Fixed)
1 + 1/5 Number 6/5N 1.2
6/5 Number 6/5N 1.2
6.0/5 Approximation (Real 1.2) 1.2
6.0/5 - 6/5 Approximation ... 2.2204460492503131E-16 Machine Epsilon

I think this resolved this issue? Thanks again for bringing this up!

from mathnet-symbolics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.