New User Special Price Expires in

Let's log you in.

Sign in with Facebook


Don't have a StudySoup account? Create one here!


Create a StudySoup account

Be part of our community, it's free to join!

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here

Introduction to Scientific Programming

by: Dorothea Pollich

Introduction to Scientific Programming COMP 116

Marketplace > University of North Carolina - Chapel Hill > ComputerScienence > COMP 116 > Introduction to Scientific Programming
Dorothea Pollich
GPA 3.97

Joh Calandrino

Almost Ready


These notes were just uploaded, and will be ready to view shortly.

Purchase these notes here, or revisit this page.

Either way, we'll remind you when they're ready :)

Preview These Notes for FREE

Get a free preview of these Notes, just enter your email below.

Unlock Preview
Unlock Preview

Preview these materials now for free

Why put in your email? Get access to more of this material and other relevant free materials for your school

View Preview

About this Document

Joh Calandrino
Class Notes
25 ?




Popular in Course

Popular in ComputerScienence

This 2 page Class Notes was uploaded by Dorothea Pollich on Sunday October 25, 2015. The Class Notes belongs to COMP 116 at University of North Carolina - Chapel Hill taught by Joh Calandrino in Fall. Since its upload, it has received 13 views. For similar materials see /class/228775/comp-116-university-of-north-carolina-chapel-hill in ComputerScienence at University of North Carolina - Chapel Hill.

Similar to COMP 116 at UNC

Popular in ComputerScienence


Reviews for Introduction to Scientific Programming


Report this Material


What is Karma?


Karma is the currency of StudySoup.

You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 10/25/15
COMP 116 3 Dec 2006 MATLAB vs C C or Java MATLAB is interpreted C and Java are compiled MATLAB has vectors arrays matrices strings and complex numbers as rstclass types and has a huge set of functions that operate on them C and Java has only doubles integers characters and arrays All variables must be declared before using so that the compiler can make space for them Certain symbols are different in CCJava called bang for not l l and ampamp for logical OR and AND The l and amp operators are used for bitvvise OR and AND so should be avoided in C Syntax of statements differs in C and MATLAB Some examples 0 for i l i lt 10 i instead of foril10 end 0 Two whiles while condition or do while condition 0 Semicolons are needed after every statement except those that precede a 0 Comments are indicated by and CJava C programs start with main and usually have several functions in one le JavaC have one class per le which is a data structure plus all the associated functions some of which are declared to be accessible from outside the le and others are private MATLAB uses le names to name functions Actually you can have helper functions inside a single le too MATLAB and C are procedural languages emphasizing the function subroutine C and Java are object oriented which emphasize the abstract data type and encourage code reuse through inheritance and library building MATLAB and Java check types while the program is running C and C check types at compilation time which means that the program is faster C and C rely on pointers which indicate variables by their location in memory and leave it to the programmer to interpret what type of value is there Java uses references which always know the type of what they are pointing to o MATLAB shows its Fortran roots in columnmajor storage order use of global variables lack of pointers or references etc o In C and C you must manage the use of memory Java amp MATLAB do garbage collection to clean up unused memory for you 0 The CCJava languages and some libraries are standardized by international committees Thus many companies produce different development environments with different libraries compilers debuggers and editors for CCJava MATLAB comes only from Mathworks although R and Opal are knockoffs httpwww 39 39 39 html httpjavasuncomdocsbookstutorial httpwwwphysicsdrexeleducoursesComp PhysGeneralC basicsc tutorialhtml


Buy Material

Are you sure you want to buy this material for

25 Karma

Buy Material

BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.


You're already Subscribed!

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

Why people love StudySoup

Steve Martinelli UC Los Angeles

"There's no way I would have passed my Organic Chemistry class this semester without the notes and study guides I got from StudySoup."

Kyle Maynard Purdue

"When you're taking detailed notes and trying to help everyone else out in the class, it really helps you learn and understand the I made $280 on my first study guide!"

Jim McGreen Ohio University

"Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."


"Their 'Elite Notetakers' are making over $1,200/month in sales by creating high quality content that helps their classmates in a time of need."

Become an Elite Notetaker and start selling your notes online!

Refund Policy


All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email


StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here:

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.