Fractals help.

Slides:



Advertisements
Similar presentations
Using GET data within a IF Statement. If ($GETCom === ‘home’) { echo ’They Match’; } $GETCom = $_GET[‘com’]; If the data stored in the variable ($GETCom)
Advertisements

Conditionals Lab Dan Maselko. Overview  Gain familiarity with working with conditionals  Become familiar with using the modulus operator  Understand.
Jochen Triesch, UC San Diego, 1 Rendering of the Mandelbrot set: perhaps the most famous fractal Fractals.
Programming Fundamentals. Programming concepts and understanding of the essentials of programming languages form the basis of computing.
Linux+ Guide to Linux Certification, Second Edition
Exercise Three: Using Pico to Edit your ASCII file online donna Bair-Mundy Part 1.
Using Java without BlueJ Objects First with Java - A Practical Introduction using BlueJ, © David J. Barnes, Michael Kölling BlueJ projects A BlueJ.
CSS Box Model An CSS Primer Tutorial. Project 04 Open Finder or Windows explorer and path the folder where you store your class project work. Make a copy.
Inti Online Login Page (Lecturer/Student/Administrator View)
Notes Assignment #1 is due next Friday by 11:59 pm via Test #1 will be held Thursday February 18 at the start of class (one period long) Format:
1 Web Server Administration Chapter 3 Installing the Server.
Linux+ Guide to Linux Certification, Second Edition
Eurotrace Hands-On The Eurotrace File System. 2 The Eurotrace file system Under MS ACCESS EUROTRACE generates several different files when you create.
Computing Fundamenatls CMSC 201 Computer Science I Penny Rheingans University of Maryland Baltimore County (with inspiration from previous 201 instructors.
CSCE 2013L: Lab 1 Overview  Java Basics The JVM Anatomy of a Java Program  Object-Oriented Programming Overview  Example: Payroll.java JDK Tools and.
Vim Editor and Unix Command gcc compiler Computer Networks.
Conventions Department of Computer Science and Information Engineering National Taiwan University Conventions 2014/9/16/ 3 1.
Integrating SharePoint and Office Module 6. Overview  Adding Office Documents Through Office  Creating Workspaces  Working with Spreadsheets  Using.
How to write & use Perl Modules. What is a Module? A separate Namespace in a separate file with related functions/variables.
Fractals in nature.
Linux and Java Basics. What is Linux? Operating system by Linus Torvalds that was a clone of Unix (thus Linux) Free and open source – this is the reason.
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification, Third Edition
Area of a circle Radius r (m) Area A (m 2 ) when r = 2.5 A = 20 (to 2sf) when A = 30 r = 3.1 (to 2sf)
Executable scripts. So far We have made scripts echo hello #for example And called it hello.sh Run it as sh hello.sh This only works from current directory?
Backing up By Betsy Weaver 8H. What is backup, and why should you do it? w So that you don’t lose all your files if you are attacked by a virus or hackers,
SQOOP INSTALLATION GUIDE Lecturer : Prof. Kyungbaek Kim Presenter : Zubair Amjad.
Lecture 02 File and File system. Topics Describe the layout of a Linux file system Display and set paths Describe the most important files, including.
Linux A practical introduction. 1)Background and Getting Started Linux is an operating system with multiple providers Red Hat/CentOS (our version) Ubuntu.
Objects First With Java A Practical Introduction Using BlueJ Using Java without BlueJ 1.0.
General Computer Science for Engineers CISC 106 Lecture 03 James Atlas Computer and Information Sciences 6/15/2009.
 CSC 215 : Procedural Programming with C C Compilers.
Outline of Script Import Modules Setup Workspace Environment and Assign Data Path Variables Summary of Script Title and Author Info.
Ns2 Installations and Basics Abdul Razaque. How to install Ubuntu on windows-7 & 8 Download the Ubuntu ISO file. You can get the ISO file from the Ubuntu.
Installation and environment variables. Simple Installation 1 The latest sources can always be obtained from the CDAT website:
Environment Set Up for Synopsys VHDL System Simulator VSS
GRID COMPUTING.
ENEE150 Discussion 01 Section 0101 Adam Wang.
Computer System Laboratory
PH2150 Scientific Computing Skills
Search in Python Chapter 3.
Introduction to Matlab
Development Environment Basics
L – Modeling and Simulating Social Systems with MATLAB
EECS 183 Discussion #9: It’s time to “Git” Python! November 22nd, 2016
L – Modeling and Simulating Social Systems with MATLAB
SAP Business One B1iF Training
Computing Fundamenatls CMSC 201 Computer Science I Penny Rheingans University of Maryland Baltimore County (with inspiration from previous 201 instructors.
Section 3.6 Functions.
MATLAB Introduction Dr. Theodore Cleveland University of Houston
AES on GPU using CUDA Choi dae soon.
Managing results files
WORKSHOP 3 GSE IMPORT.
Lab 1 introduction, debrief
Click the " New Job ".
User Defined Functions
LING 408/508: Computational Techniques for Linguists
Lecture 5 – Improved Monte Carlo methods in finance: lab
HONR 300/CMSC 491 Fractals (Flake, Ch. 5)
PowerPoint Mockup of CMS Code Generator
Unit-2 Objects and Classes
SCIENCE 1206 – MOTION Unit 3 Slideshow 3 - GRAPHS.
Open your video file. Play the video.
Introduction to Matlab
LMC Little Man Computer What do you know about LMC?
Using emacs and G++ at U. W.
Notes Over 8.3 Simplifying Natural Base Expressions
ENEE222 Elements of Discrete Signal Analysis Lab 3 1.
ME 123 Computer Applications I Lecture 5: Input and Output 3/17/03
ME 123 Computer Applications I Lecture 7: Basic Functions 3/20/03
Presentation transcript:

Fractals help

Overview Last lecture: Modules Variable scope Packages This time Work through results from the lab Additional problems

Task 1 Create a directory to store you new modules and packages Add the directory to your module path using the .bashrc file Write a module that when given a 2D array of 1 and 0s saves a pbm file to disk

Mandelbrot set: plotting module

Using the plotting module

Putting the module in the path On the Linux terminal: mkdir ~/python_bin export PYTHONPATH="${PYTHONPATH}:/home/users/tom00/python_bin" cp mypbm.py mypbm_backup.py # save a backup just in case mv mypbm.py ~/python_bin Make sure you do not duplicate modules. If you have one in your working directory and one in the PYTHONPATH which is the system using?

The Mandelbrot set

Koch snowflake Part 1 Koch curve

Order 2 Koch curve

Order n Koch curve

Snowflake

New task: Julia Sets For each c a Julia Set can be constructed. The Mandelbrot set acts as an index for the Julia set Based on the Mandelbrot code calculate the Julia set for c= 0.295 + 0.55i -0.74434-0.10772i -0.233+0.5378i 0.4+0.6i

Extra problems Write a code to evaluate the area of the Mandelbrot and Julia sets Add colour/grey scale to the Mandelbrot plot. The Julia set is not always connected, write a code to calculate a histogram for the size of domains.