Gavriel770U / Pascal

Pascal Triangle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pascal

Fractals using Pascle's triangle.

Preview

Mod 2

Mod 2

Mod 4

Mod 4

Mod 8

Mod 8

Mod 16

Mod 16


Pascal's Triangle MOD 2 (Sierpinski Triangle)

Sierpinski Triangle


Compilation To .jar And Running

Windows

Option 1 - .bat Files
  • Run windows_compile.bat to build and compile the code.
  • Run windows_run.bat to run the .jar file.

Linux

Option 1 - .sh Files
  • Run linux_compile.sh to build and compile the code.
  • Run linux_run.sh to run the jar file.
Instructions:

Make linux compile executable:

chmod +x ./linux_compile.sh

Run linux compile executable:

./linux_compile.sh

Make linux run executable:

chmod +x ./linux_run.sh

Run linux run executable:

./linux_run.sh

Other OSs


Snapshots During Production

First try

First Triangle Image

Converting Int To Long

Second Triangle Image

Using The "Python" Like Modulo (For Handling Negative Numbers Too)

Thirde Triangle Image

About

Pascal Triangle

License:GNU General Public License v3.0


Languages

Language:Java 97.9%Language:Batchfile 1.0%Language:Shell 1.0%