ZCE 111 Computational Approach in Physics Learning

Slides:



Advertisements
Similar presentations
FILEMAKER SERVER SOFTWARE & REMOTE ADMINISTRATION
Advertisements

Services Course Windows Live SkyDrive Participant Guide.
RH030 Linux Computing Essentials
Linux commands exercise 1. What do you need, if you try to these at home? You need to download and install Ubuntu Linux from the Internet – DVD is need.
Services Course Windows Live SkyDrive Participant Guide.
Introduction to Python
Accessing and Using the e-Book Collection from EBSCOhost ® When an arrow appears, click to proceed to the next slide at your own pace. To go back, click.
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
KX-NS1000 Initial Set Up For step by step : 16 May,
Center Accreditation Online System
CSCI 1411 FUNDAMENTALS OF COMPUTING LAB Lab Introduction 1 Shane Transue MSCS.
Downloading and Installing AutoCAD Architecture 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the software.
Lecture 02CS311 – Operating Systems 1 1 CS311 – Lecture 02 Outline UNIX/Linux features – Redirection – pipes – Terminating a command – Running program.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 4P. 1Winter Quarter Introduction to UNIX.
Installing VMware & the Data ONTAP Simulator SE Technical Academy.
A crash course in njit’s Afs
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
One to One instructions Installing and configuring samba on Ubuntu Linux to enable Linux to share files and documents with Windows XP.
Thrive Installation.
+ Working in Your CCE Online Course Site. + Structure of CCE Online Course Sites CCE online courses use the document sharing and collaboration features.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
– Introduction to the Shell 10/1/2015 Introduction to the Shell – Session Introduction to the Shell – Session 2 · Permissions · Users.
Introduction to Programming Workshop 1 PHYS1101 Discovery Skills in Physics Dr. Nigel Dipper Room 125d
Geo CE-XM ch 4 Edited 10/14/05 1 The XM is the newest of the rovers, and unlike other units, it comes with software installed on the unit as well as using.
Computer Programming for Biologists Oct 30 th – Dec 11 th, 2014 Karsten Hokamp  Fill out.
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
1 Installation When this module is complete, you will be able to:  Set a static IP address for your laptop  Install the snom ONE software  Navigate.
Client – Server Application Can you create a client server application: The server will be running as a service: does not have a GUI The server will run.
Mastering Physics Registration How to Access MasteringPhysics 1.
Mark Dixon 1 03 – Passing Data between pages: Forms, Sessions, & Query Strings.
Unix and Samba By: IC Labs (Raj Kidambi). What is Unix?  Unix stands for UNiplexed Information and Computing System. (It was originally spelled "Unics.")
Using the remote access option on the lab computers Fall 2005.
ENDNOTE Installation Guide. E ENDNOTE ON LIBRARY PAGE ( Scroll down to see download instructions.
Hitchhiker’s Guide to CS Lee Sieger, Tim Cook, Jason Day, Zuozhi Yang.
MySQL Getting Started BCIS 3680 Enterprise Programming.
A First Program CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington Credits: a significant part of.
Using Simulation Workspaces Michael McLennan HUBzero® Platform for Scientific Collaboration Purdue University 1 This work licensed under Creative Commons.
1 Getting Started with C++ Part 2 Linux. 2 Getting Started on Linux Now we will look at Linux. See how to copy files between Windows and Linux Compile.
FTP COMMANDS OBJECTIVES. General overview. Introduction to FTP server. Types of FTP users. FTP commands examples. FTP commands in action (example of use).
1 Mapping a Drive on a USF IIS Server. 2 Mapping a Drive To map a drive to a network file directory in Windows you must be on a Microsoft local area network,
ENDNOTE Installation Guide. E ENDNOTE ON LIBRARY PAGE ( Scroll down to see download instructions.
BIF703 FTP (File Transfer Protocol) Utility vi editor Utility.
1 CSE 390a Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller.
NX Documentation Using Windows IIS (Internet Information Services) as a http server for NX documentation.
 Prepared by: Eng. Maryam Adel Abdel-Hady
Agenda Customizing a Unix/Linux account Environment Introduction to Start-up Files (.bash_profile,.bashrc,.profile,.kshrc) Safe Methods for Changing Start-up.
Building Your Own Website Using:. Install & configure LAMP. Download WordPress and run it as a local website on your Raspberry Pi. Configure WordPress.
Accessing Your Documents from Your Personal Computer.
Setting up a remote office connection September 2011 Nick Maxwell.
Assignprelim.1 Assignment Preliminaries © 2012 B. Wilkinson/Clayton Ferner. Modification date: Jan 16a, 2014.
WHAT ARE THE STEPS TO CONNECT MY HP DESKJET 3520 TO WI-FI?
Introductory Mathematica syntax
Development Environment Basics
Prepared by: Eng. Maryam Adel Abdel-Hady
SQL and SQL*Plus Interaction
Assignment Preliminaries
Cambridge Device Deployment 8/9/18
(Chapter 2) John Carelli, Instructor Kutztown University
CSE 390a Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller.
Run Java file with Window cmd
Aleph Circulation Loans & Returns Version 19
CSE 390a Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller.
Stata Basic Course Lab 2.
CSE 390a Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller.
CSE 390a Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller.
CSE 390a Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller.
CSCE 206 Lab Structured Programming in C
Iteration – While Loops
EVERYONE LOG ON!!! WE ARE GOING TO DELETE YOUR OLD USERNAME FOLDERS & ADD NEW, IMPROVED ONES TO YOUR COMPUTERS.
ECE 3567 Microcontrollers Lab
Presentation transcript:

ZCE 111 Computational Approach in Physics Learning Instructor Yoon Tiem Leong School of Physics Universiti Sains Malaysia 11800 USM, Penang, Malaysia

Linux compute nodes Log in to the Linux compute nodes using your username and password. We will refer to the computers (PC) in the Rocks Computer Cluster as “compute nodes”.

Using Linux Terminal In your Linux computer, open a terminal Syntax: Use “top” to check out the processes in your compute node (local PC). Syntax: Use “hostname” to check out the name your compute node. Syntax: Use “whoami” to check out your username. Syntax: Use “pwd” to check out your current directory Synatx: Use “ls” to check our the names of files and folders in your current directory.

Using Linux Terminal Syntax: Use “nautilus --browser” to launch the “file explorer”. Syntax: Use “gedit” to lauch the word editor “gedit”.

Launching a Mathematica session Launch Mathematica session in your compute node: either by typing “Mathematica” in the terminal, or click Start->System->Mathematica. If prompted for license authentication, choose to authentication via license server. These server’s IP address are “comsics.usm.my” and “anicca.usm.my”. Open a new notebook (*.nb) file, save it as “hello.nb” in your current folder. Syntax: Check your current folder where “hello.nb” is saved using Directory[]. Syntax: Check the files in your current folder using FileNames[].

What to do if your compute node hangs? Remedy 1: Press ctrl+alt+delete Remedy 2: Log in to your node (say compute-0-10 in anicca) from another compute node using your current username. Type “ps – u username”, where username stand for your username (e.g., human2). Then kill off the process you think is causing the problem in compute-0-10 by typing “kill -9 XXXX”, where “XXXX” stands for the process id (e.g., 334320). Alternatively, kill the processes by typing “pkill -9 process”, where process stands for the name of the process you want to kill, e.g., Mathematica or MathKernel. Remedy 3: Log in to your node (say compute-0-10 in anicca) from another compute node using your current username. Then type “/usr/sbin/gdm- restart” Remedy 4: Yell “SOS”.

Print a string Syntax: Print[] Every command line in Mathematica should by default end with a “;”, Print[“hello world”]; Assign a “value” to variable name: stringname= “hello world”; The “value” assigned to the variable stringname is not a numerical value, but a string. Syntax: StringQ[] Check that the variable stringname is assigned as a string using StringQ[stringname];

Print a value Assign a numerical value of 1 and 2 to the variable named a and b: a=1;b=2; Define a new variable c as the sum of a and b: c=a+b; Print out the value of c: Print[c]; Syntax: NumberQ[] You can check whether the variable c is a numeric using NumberQ[c]

Do loop command Syntax: Do [ expression; ,{n,nbegin, nlast, interval} ]; Example: Print[“hello world for the ”,n, ”time”]; ,{n,1, 5, 1}

Use do loop to calculate the accumulative amount of money you owe to a long (charging you 2% per week) in 20 weeks. amount=1000;interestrate=0.02; Do[ interest=amount*interestrate; amount= amount+interest; Print[“This is the ”, n, “ week. The amount I owe a long is ”, interest]; ,{n,1,20,1} ];

Improved version: replace 20 by nlast=20; amount=1000;interestrate=0.02;nlast=20; Do[ interest=amount*interestrate; amount= amount+interest; Print[“This is the ”, n, “ week. The amount I owe a long is ”, interest]; ,{n,1,nlast,1} ];

Exercise: Modify the previous code so that you can calculate the amount you still owe a long every week if you are paying back him a fixed amount x every week. Problem 1: Use your code to determine how many weeks it takes to clear off the loan if you are paying an installment of x per week. Problem 2: Modify your code to determine what is the installment you need to pay every week if you wish to finish off the loan in the Nth week. Note: 4 variables are involved here: initial amount borrowed, interest rate, weekly installment and total number of week to clear the loan.

If and Break[] command Syntax: If [condition, do something]; Syntax: Break []; Try to incorporate the two commands above in your code so that it can automatically break off the Do loop when the loan is cleared off. Without these, you will have to do a trial and error every time a new amount or new interest rate are introduced.

Please complete Assignment 1