GithubHelp home page GithubHelp logo

aprilmintacpineda / triangle-of-pascal Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 10 KB

Pascal's triangle.

Home Page: https://aprilmintacpineda.github.io/triangle-of-pascal/

License: MIT License

HTML 100.00%
mathematics javascript html css pascals-triangle

triangle-of-pascal's Introduction

Pascal's triangle

What

Pascal's triangle, named after Blaise Pascal is a triangle of hexagons (I'll call cell). Where the number of cells each row is n + 1 where n is initially 1. So row 0 (which is the tip if the triangle) would have 1 cell in it, row 1 would have 2 cells in it, row 2 would have 3 cells in it, and so on.

These cells would have value. The value would be the sum of the value of the cell above it to the left and the value of the cell above it to the right. If no cell is present on both sides (which would be the case for the cell on the tip of the triangle), then the value would be 1, if no cell is present on one side (which would be the case for the cells on the sides of the triangle), the value of that side is presumed to be 0.

example

taken from WikiPedia.

Created with <3 by April Mintac Pineda

triangle-of-pascal's People

Contributors

aprilmintacpineda avatar

Watchers

 avatar

Forkers

ofernand21

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.