Code Monkey home page Code Monkey logo

mrmr.io's Introduction

Hello!

I’m Manav. I love programming. I like building things, big and small, in all sorts of languages. Over time I have come to know many languages, but almost all of them are programming languages, I wish I knew more natural languages too, because I also love writing (as you can probably tell by how I can’t get myself to stop writing this sentence).

Some of my code is here. I also have a weird blog / artwork site, where I write stuff and create lil JS animations and do experiments with color and music and design.

mrmr.io's People

Contributors

mnvr avatar vishnukvmd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

vishnukvmd

mrmr.io's Issues

Integers are real numbers

In

But later on, as a slow burner, came the second realisation - that the
and the following paragraphs you stated that integers are not real numbers; that they are "comparable" but not "equatable". This is incorrect. Every integer is a rational number, and every rational number is a real number. Mathematically speaking 1.0 and 1 are exactly the same number. You are correct that the integers make up an infinitesimal portion of the real numbers (the random selection example) but this could be said of most subsets of the real numbers. For example, the odds of randomly selecting a number where no digit is 7 (in your choice of base ≥ 8) from the set of real numbers is zero; it will never happen. Yet there are infinitely many numbers meeting that criteria, and your inability to randomly select them from the set of real numbers does not mean they are not real numbers.

Floating point numbers are an extended subset of the rational numbers (they cannot represent non-rational real numbers) with power-of-two denominators within a fixed range, augmented with negative zero, positive and negative infinity, and various forms of NaN. Because they are a subset many operations on rational numbers can only give approximate results, but double-precision floating point math can at least give exact answers for addition, subtraction, and multiplication of all 32-bit integer operands for which the corresponding integer operation would not overflow as the significand is more than 32 bits. This is how Lua and JavaScript can get by with using only floating point numbers. (The same does not hold for 64 bit integers, however.)

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.