GithubHelp home page GithubHelp logo

alokswaincontact / digital-dice-book-solutions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bryandonovan/digital-dice-book-solutions

0.0 2.0 0.0 212 KB

Assorted solutions to the book Digital Dice by Paul J. Nahin

JavaScript 4.17% MATLAB 2.36% Python 2.91% Ruby 90.56%

digital-dice-book-solutions's Introduction

digital-dice-book-solutions

Solutions to problems from the book Digital Dice

This repository has some solutions to problems from the book Digital Dice: Computational Solutions to Practical Problems by Paul J. Nahin.

You can preview the book online in Google Books.

I've only finished a couple problems, and so far have written answers in Ruby, and some in Python, MATLAB, and Javascript, partially as a way to compare languages.

For the Ruby solutions, you need Ruby >= 1.9.x, only because I use methods from the class Random instead of Math, and because 1.9.x is way faster. I recommend installing Ruby versions via rvm.

The Javascript solutions require Node.js. I recommended you install via nvm.

The MATLAB solutions can be run via the open-source GNU Octave.

I've included MATLAB solutions that are very similar to the ones in the book for the introduction and first chapter only, since both of these solutions are available freely online at the book's official web page.

I'm not sure if I'll do more of my own solutions in MATLAB since Octave (or maybe MATLAB?) is very slow compared to Ruby, Python, or Javascript.

Interestingly, the Python scripts are the slowest to run, but that is using Python 2.7. That may also change with more complicated solutions.

digital-dice-book-solutions's People

Contributors

bryandonovan avatar

Watchers

 avatar  avatar

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.