# Register now to access 7 million high quality study materials (What's Course Hero?) Course Hero is the premier provider of high quality online educational resources. With millions of study documents, online tutors, digital flashcards and free courseware, Course Hero is helping students learn more efficiently and effectively. Whether you're interested in exploring new subjects or mastering key topics for your next exam, Course Hero has the tools you need to achieve your goals.

6 Pages

### lab04

Course: ECS 104, Spring 2008
School: Syracuse
Rating:

Word Count: 1281

#### Document Preview

104 ECS Engineering Computational Tools CIE Sections 002 &amp; 007 Exercise 1: Plotting functions (to be done in lab as a learning exercise) The purpose of this exercise is to plot the function f ( x) = x 3 + 5 x 2 x 6 so that its zeroes can be approximately found. (Note that this is a minor modification of the polynomial we have been using in lecture.) As usual, start off by putting your name and an...

Register Now

#### Unformatted Document Excerpt

Coursehero >> New York >> Syracuse >> ECS 104

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Syracuse - ECS - 104
ECS 104 Engineering Computational Tools CIE Sections 002 &amp; 007 Spring 2005LABORATORY 12Solving Non-Linear Equations with Mathcad. Reading: Section 8.1 Introduction to Mathcad 11, by R.W. Larsen A. Review: User-Defined Functions Sometimes, when sol
Syracuse - ECS - 104
ECS 104 Engineering Computational Tools CIE Sections 002 &amp; 007 Spring 2005LABORATORY 11 Symbolic Operations in Mathcad. Reading: Chapter 7 Introduction to Mathcad 11, by R.W. Larsen A. Symbolic Operations A major difference between Mathcad and Exce
Syracuse - GYU - 02
Question 1Yes, I predicted the results correctly. Val1+ means val1 is increased by 1 after the operation. So During the operation &quot;val2=(val1=3)*val1+&quot;, the value of val1 is 3. val2=3*3=9. After that, val1 becomes 3+1=4. Question 2val1: +val2
Syracuse - WWANG - 09
i=2.0,i2=4.0i=4.0,i2=16.0i=6.0,i2=36.0i=8.0,i2=64.0i=10.0,i2=100.0The average value of 1-10 is 5.5
Syracuse - WWANG - 09
Q1.I was alble to predict the results.With the sentence (val1=3), the initial value of val1 is set as 3.For val2 =(val1=3)*val1+, the initial value of val1 is used, then it is added on one. So val2=3*3=9. val1 became 3+1=4 after that.So the outp
Syracuse - ECN - 611
Economics 621 Handout #4Extensive Form Games: UncertaintyExample without uncertaintyExogenous uncertainty611.04 - 1Information Sets611.04 - 2Two more examples:611.04 - 3A system of beliefs for an extensive form game ' is a mapping : X
Syracuse - ELE - 791
Object Oriented DesignCRI Spring 1999C+ - Language Structure1. Statements Preprocessor directives Declarations and Definitions Expressions l-values and r-values Statement evaluation model Overloaded operator model Declaration, Definition,
Syracuse - BJ - 8
CodeBlocks,Closures,and ContinuationsPresentedby:BassemELkarabliehOutline GettingStartedwithruby Somerubysyntax Rubyclasses Morerubysyntax NewconceptsinrubyGettingStartedRubyisadynamic,fullyobjectoriented scriptinglanguage. Installing
Syracuse - CSE - 382
CSE382 Algorithms and Data StructuresFall 2008Lab #7 Map&lt;K,V&gt; classversion 2Prologue:This lab is concerned with building a map class, Map&lt;K,V&gt;, using an instance of a Pair&lt;K,V&gt; class as the type held by an instance of the BTree&lt;T&gt;. That
Syracuse - CSE - 382
Abstract Data TypesCSE382 Algorithms and Data StructuresJim Fawcett 9/8/2008Revision 11. Removed errors in interface syntax2. Inserted note about Priority Queues implemented with Heap structure3. Eliminated iterators from tree interface to
Syracuse - CSE - 687
Design of a HashTable and its IteratorsJim Fawcett CSE687 Object Oriented Design Spring 2007Iterators as Smart PointersIterators are &quot;smart&quot; pointers: They provide part, or in some cases, all of the standard pointer interface: *it, i
Syracuse - CSE - 687
Documenting Architecture and DesignJim Fawcett Copyright 19992003 CSE687 Object Oriented Design Spring 2003Levels of Documentation Operational Concept Document Software Specification Design Document Test Report Overall view of architecture
Syracuse - CSE - 687
ExtensibleMarkupLanguage XMLJimFawcett CSE687ObjectOrientedDesign Spring2006Introduction XMLisataggedmarkuplanguagedesignedto describedata:LectureNote.xml XMLhasonlyacoupleofpredefinedtags Alltherestaredefinedbythedocumentdesigner. XMLcanbeuse
Syracuse - CSE - 687
Why C+? Why not C#?Jim Fawcett CSE687 Object Oriented Design Spring 2003Both are ImportantC+ has a huge installed base. Your next employer is very likely to be a C+ house.C# is gaining popularity very quickly. But, your next employer
Syracuse - CSE - 687
CSE687 Object Oriented Design Class NotesChapter 10 Design NotesJim Fawcett copyright (c) 1997 2001Chapter 10 - Design Issues1What is Design?Design is the process of deciding how to satisfy a program's requirements. Design has four e
Syracuse - CSE - 687
Handouts/CSE687/Code/STL/algorithmsSTL AlgorithmsPurpose:Illustrate a few typical STL algorithms. 1. fill Sets each value in a container range 2. fill_n Sets n consecutive elements to a value 3. copy copies elements from a range via iterator 4. g
Syracuse - CSE - 687
Template MetaProgramming Topics to be covered: Need a couple of real applications 1. Template Review+ a. Template classes vs template functions b. Specializations, complete and partial i. Specializations can have different interface c. Template membe
Syracuse - CSE - 687
Handouts/CSE687/Code/TemplateMetaProgramming /BinaryConversionACompileTimeFunctionPurpose:Calculatetheintegervalueofabinaryrepresentationatcompile time!ThisisourfirstexampleofTemplateMetaProgramming.It worksasfollows: 1. Arecursivetemplatestructu
Syracuse - CSE - 687
CSE687 Object Oriented DesignMidterm#3 Spring 2004Midterm #3 Instructor's SolutionName:_ SUID:_This is a closed book examination. Please place all your books on the floor beside you. You may keep one page of not
Syracuse - CSE - 687
CSE687 Object Oriented DesignMidterm #1 Spring 2004Midterm #1 Instructor's SolutionName:_ SUID:_This is a closed book examination. Please place all your books on the floor beside you. You may keep one page of no
Syracuse - CSE - 687
CSE687 Object Oriented DesignMidterm #4 Spring 2006Instructor's Solution for CSE687 Midterm #4 Jim FawcettThis is a closed book examination. Please place all your books on the floor beside you. You may keep one page of note
Syracuse - CSE - 687
CSE687 Object Oriented DesignMidTerm Makeup Spring 2004Midterm MakeupThis is a takehome examination, which you are expected to prepare entirely yourself. You may, however, ask the instructor or any TA any questio
Syracuse - CSE - 687
Syracuse - CSE - 687
CSE687 Object Oriented DesignMidterm #1 Spring 2006Instructor's Solution for CSE687 Midterm #1 Jim FawcettThis is a closed book examination. Please place all your books on the floor beside you. You may keep one page of note
Syracuse - CSE - 687
CSE687 Object Oriented DesignMidterm #4 Spring 2007CSE687 Midterm #4Instructor's SolutionThis is a closed book examination. Please place all your books on the floor beside you. You may keep one page of notes on your deskt
Syracuse - CSE - 687
Syracuse - CSE - 687
CSE687 Object Oriented DesignMidterm #3 Spring 2007CSE687 Midterm #3Instructor's SolutionThis is a closed book examination. Please place all your books on the floor beside you. You may keep one page of notes on your deskt
Syracuse - CSE - 687
CSE687 Object Oriented DesignMidterm #2 Spring 2006Instructor's Solution for CSE687 Midterm #2Jim FawcettThis is a closed book examination. Please place all your books on the floor beside you. You may keep one page of not
Syracuse - CSE - 687
CSE687 Object Oriented DesignMidterm #4 Spring 2005Midterm #4Name:Instructor's SolutionThis is a closed book examination. Please place all your books on the floor beside you. You may keep one page of notes on yo
Syracuse - CSE - 687
CSE687 Object Oriented DesignMidTerm #1Spring 2003Midterm#1InstructorsSolutionName:_SUID:_This is a closed bookexamination. Please placeall yourbookson the floor besideyou.Youmaykeeponepageofnotesonyourdesktopinadditiontothis exampackage. A
Syracuse - CSE - 687
CSE687 Object Oriented DesignMidTerm #3Spring 2003Midterm #3 Instructor's SolutionName:_ SUID:_This is a closed book examination. Please place all your books on the floor beside you. You may keep one page of notes on your
Syracuse - CSE - 687
CSE687ObjectOrientedDesignSpring2003MidtermMakeupProvidesolutionstoeveryproblemontheexamyoucompletedthissemester.Youhaveseen mysolutions,andmayusethemasaguide,butIamexpectingyoutorestatethesolutionsor providenewsolutionsusingyourownwordsandideas
Syracuse - CSE - 687
// MT1Q8andMT4Q6.cpp#include &lt;string&gt;#include &lt;iostream&gt;#include &lt;sstream&gt;class B { public: B(std:string s) : s_(s) {} std:string&amp; str() { return s_; } /* . */ private: std:string s_; };class D : public B { public: D() : B(&quot;)
Syracuse - CSE - 687
// MT1Q3.cpp#include &lt;string&gt;#include &lt;iostream&gt;#include &lt;sstream&gt;class B{ public: virtual ~B() {} virtual const char* say() { return &quot;B instance&quot;; } };class D : public B{ virtual const char* say() { return &quot;D instance&quot;; }};B*
Syracuse - CSE - 687
// MT3Q2.cpp#include &lt;list&gt;#include &lt;iostream&gt;#include &lt;iomanip&gt;#include &lt;math.h&gt;#include &lt;time.h&gt;template &lt;typename T&gt;class RunningInterval{public: RunningInterval(size_t n) : interval(n) {} void addDataPoint(const T&amp; t); T avg() c
Syracuse - CSE - 687
// MT3Q3.cpp#include &lt;string&gt;#include &lt;iostream&gt;#include &lt;sstream&gt;class B{ public: virtual ~B() {} virtual void say() { std:cout &lt; &quot;\n B instance&quot;; } };class D : public B{ virtual void say() { std:cout &lt; &quot;\n D instance&quot;; }};B
Syracuse - CSE - 687
// MT4Q9.cpp#include &lt;iostream&gt;class B{public: virtual ~B() {} virtual void say() { std:cout &lt; &quot;\n I am a &quot; &lt; typeid(*this).name() &lt; &quot; instance&quot;; }};class D : public B{};B* Creator() { return new D; }void main(){ B* pB
Syracuse - CSE - 687
// MT1Q2.cpp#include &lt;list&gt;#include &lt;iostream&gt;#include &lt;iomanip&gt;#include &lt;math.h&gt;#include &lt;time.h&gt;template &lt;typename T&gt;class RunningInterval{public: RunningInterval(size_t n) : interval(n) {} void addDataPoint(const T&amp; t); T span();
Syracuse - CSE - 687
* can't open MT1Q9.cpp *
Syracuse - CSE - 382
CSE382 Makeup Examination, Fall 2008Name:Instructions:If I suggested to you, at the end of your oral examination, to do a makeup examination, then you may not pass this course unless you do a good job with this makeup examination. Please complet
Syracuse - CSE - 775
Automation and IDispatchJim Fawcett CSE775 Distributed Objects Spring 2004AutomationAn automation server is a COM object that exposes methods and properties through the IDispatch interface. IDispatch is a &quot;generic&quot; interface Used by scrip
Syracuse - CSE - 775
Syracuse - CSE - 775
WhyCOMand.Net?JimFawcett CSE775DistributedObjects Spring2005COMversus.NetCOMStrengths Itseverywhere: Windowsoperatingsystem GUIcontrols Word,Excel,Visio COMmakesthese programmable! .NetCLRisaCOMcomponent.NetStrengths Frameworkandlan
Syracuse - CSE - 775
.NetRemotingJimFawcett CSE775DistributedObjects Spring2004ReferencesProgrammingMicrosoft.Net,JeffProsise,MicrosoftPress, 2002,Chap15. Excellent,cleardiscussionofbasicremotingMicrosoft.NetRemoting,McLean,Naftel,Williams,Microsoft Press,2003
Syracuse - CSE - 775
PassbyReferenceFileTransferJim Fawcett CSE775 Distributed Objects Spring 2003Adapted from notes for CSE681- SWMaADesignApproachesOf the three Remoting Activation models: SingleCall Singleton Client Activated SingleCall with Pass-By-R
Syracuse - CSE - 775
The CreateFile FunctionMario Tayah and Jim FawcettCSE775 Distributed Objects Spring 2007 DefinitionThe CreateFile function creates or opens anything that can be used as a source of data including: file file stream Directory p
Syracuse - CSE - 775
C# Programming Language OverviewJim Fawcett CSE775 Distributed Objects Spring 2005C# LanguageLooks a lot like Java. A strong analogy between:Java Virtual Machine &amp; .Net CLR Java bytecodes &amp; .Net Intermediate Language Java packages &amp;
Syracuse - CSE - 775
Introduction to CMark Sapossnek CS 594 Computer Science Department Metropolitan College Boston University#Table of Contentsadded by Jim Fawcett Types Overview Predefined Types User-defined Types Program Structure Statements Opera
Syracuse - CSE - 775
Syracuse - CSE - 775
Testing Handling of Function ArgumentsDemonstrates that: value types pass by value. reference types pass by ref strings are immutable StringBuilders are mutableDemonstrates that: value types can be passed by ref. ref qualifier does not change ref
Syracuse - CSE - 775
IDL Syntax[attribute, .] statement name [:BaseInterfaceName] { [attribute, .] statementBlock; };attribute1. Endpoint specifies a &quot;well-known&quot; port on which servers of the interface listen 2. Helpstring human readable comment string, e.g., helpstr
Syracuse - CSE - 775
CSE791 Distributed ObjectsSpring 2002M idte rm AName:_ SSN:_This is a closed book examination. Please place all your books on the floor beside you. You may keep one page of notes on your desktop in addition to this exam package. All examinat
Syracuse - CSE - 775
CSE791 Distributed ObjectsSpring 2002Project #4 Appointment Control due Monday, 29 AprilPurpose: The purpose of this project is to build a control and an application to host the control that manages a day's appointments. You may impleme
Syracuse - CSE - 775
CSE775 Distributed Objects Students Note concerning a web service example used in class:The fileXfer web service using a Passbyvalue writeback object works only on localhost. Passbyvalue objects do not work correctly with web services. www.go
Syracuse - CSE - 775
Remoting PassByValue Demo : Client uses Interface
Syracuse - CSE - 775
C:/su/cse775/code/tryATLDeveloping tryATL ProjectPurpose:Demonstrates how to build inproc component and client, using services of the Active Template Library (ATL). 2. Uses ATL for both component and client. 3. Shows that each client will get a
Syracuse - CSE - 775
Handouts/cse775/code/Remoting_PassByValuePassByValueRemotingDemoPurpose:Illustratesuseof(transparent)objectserializationfromClientto ServerandbacktoClient. 1. Clientcreateschannel 2. Clientcreatesobjecttobepassedbyvalue 3. Servercreateschannel 4.
Syracuse - CSE - 775
CSE775DistributedObjectsSpring2006Project#4cControlsRefinementsPurpose:dueMonday,May01ThisprojectrequiresyoutouseComponenttechnologytobuildarefinedversionofyourProject#3,oryoumaycollaborate withapartner1whoisbuildingaRepositoryorSniffers.Y
Syracuse - CSE - 775
.NET Framework 3.0 XAML Browser Application Readme-XAML Browser Applications run in a sandbox with &quot;Internet Permissions&quot;.Only those .NET Framework 3.0 features that have been successfully security reviewed and validated as safe by the .NET Framew
Syracuse - CSE - 775
// demoIndexers.cs - Indexers work this way// Jim Fawcett, CSE775 - Distributed Objects, Spring 2003/using System;namespace demoIndexers{ class demoIndexers { private bool _ardvvark = false; private bool _falcon = true; p
Syracuse - CSE - 775
// demoProps.cs - Properties work this way// Jim Fawcett, CSE775 - Distributed Objects, Spring 2003/using System;namespace Properties{ class demoProps { public string name { get { return _name; } set { _name = value;