This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\usepackage{titlesec} | |
\titleformat{\section}{\huge\bfseries}{}{}{} | |
\setlength{\parindent}{4em} | |
\setlength{\parskip}{1em} | |
\begin{document} | |
\author{Maksims Kovalovs} | |
\title{Computer science programming project} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
import numpy as np | |
# change these values | |
points = 50000 | |
radius1 = 100.0 | |
radius2 = 70.0 | |
point_disp = 100.0 | |
angle_ratio =radius1/radius2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
import numpy as np | |
# change these values | |
points_temp = 1000 | |
radius1 = 100 | |
radius2 = 100 | |
angular_speed_1 = 0.01 | |
angular_speed_2 = 0.0002 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
import numpy as np | |
# change these values | |
points = 10000 | |
circles = 30.0 | |
radius = 200.0 | |
resolution = np.array([1000, 500]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame, math | |
pygame.init() | |
windowsSurfaceObj = pygame.display.set_mode((750,300)) | |
fpsClock = pygame.time.Clock() | |
whiteColor = (255,255,255) | |
greenColor = (0,255,0) | |
blackColor = (0,0,0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program matrix; | |
uses | |
graph, | |
SysUtils; | |
const | |
colnum = 15; | |
var | |
GrDriver, GrMode, GrError: smallint; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%option noyywrap | |
%{ | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
%} | |
%% | |
int nums[100],i=0; | |
[\-0-9]*|[0-9]* { | |
i++; |
NewerOlder