StudentShare
Contact Us
Sign In / Sign Up for FREE
Search
Go to advanced search...
Free

Computational Mathematics: MATLAB or SciLab - Lab Report Example

Cite this document
Summary
"Computational Mathematics: MATLAB or SciLab" paper explores the possibility of simulating mathematical and engineering tasks in programming languages. This paper can enable a mathematician to transform mathematical calculations and operations into relevant forms for use in a working environment. …
Download full paper File format: .doc, available for editing
GRAB THE BEST PAPER92.5% of users find it useful
Computational Mathematics: MATLAB or SciLab
Read Text Preview

Extract of sample "Computational Mathematics: MATLAB or SciLab"

Lab Report Logic and Programming Computational mathematics (MATLAB SciLab) Mathematical operations are usually simulated in dynamic languages simulations such as MatLab and SciLab. These software are applications are important in the development of rapid prototypes for technical activities such as Engineering. Development of new mathematical and engineering programs in this project will be developed using SciLab and MatLab. In MatLab program the simulation used is to calculate the calculate the velocity of a moving body, and plotting the graph against time In the SciLab script, the program Table of Contents 1. Introduction This program explores the possibility of simulating mathematical and engineering tasks in programming languages. This study is important as it can enable a mathematician to transform mathematical calculations and operations into relevant form for use in actual working environment (Haidekker 2013, p47). Both Matlab and SciLab display similar results but use different programming syntax (Wouwer, Saucez and Vilas 2014, p52). The choice of which program to use in simulation depends on the programmer’s knowledge and experience. 1.1. Scope This project seeks to compare two programs, one in Matlab and the other in SciLab. It thus contains two scripts in each of the languages along with their outputs. 1.2. Objectives The main aim of this project is to demonstrate the use of programing languages in simulation of mathematical and engineering problem solutions. 2. Methods The method used in this study is quantitative analysis using familiar mathematical and engineering problems and applying the variables and equations in the scripts (Campbell, Chancelier and Nikoukhah 2006, p38). The results are presented in plotted graphs as a summary of the simulated solutions. 2.1. TASK 1 2.1.1. Matlab Script clear all;         %deletion of the former variables  v01 = 0;              %Initial speed dt1 = 0.10;            %Time step t1 = 0: dt: 60;         %Simulation for 10 seconds. g1 = 9.80;             %gravitation force g1 = 0.10;             % coefficient of friction force m1 = 1.0;               %mass - 1 kg. v (1) = v0;           %Setting the initial velocity.  for i1 = 1 : 1 : (length(t1) - 1),     a = g1 - (b / m1) * v1 (i1);    %Calculating the acceleration. v(i1 + 1) = v1(i1) + a * dt1;%Getting the velocity by approximating integration. end  %Exact Solution. Vexact = (m1 * g1 / b) * (1 – exp (-t1 * b / m1)); plot (t1, v1, t1, vexact); legend (Approx velocity,Exact velocity); xlabel (Time); ylabel (Velocity); Output Figure 1: Plotting of Matlab program- Velocity vs Time 2.1.2. SCILAB SCRIPT // Constants DeltaT = 0.01; // 100Hz sample w = (50 / 60) * 2 * %pi; // 50 RPM -> radians persec L = 8/100; // 8 cm -> meters g = 9.81; // Earth gravity in ms^-2 N = 1000; // Number of samples sig_w = 0.00001; sig_v = 1; ww = sig_w * rand(3, N, normal); vv = sig_v * rand(2, N, normal); x = zeros (3, N); x (:,1) = [0, w * DeltaT,0]; z = zeros (2, N); F = [1 1 0; 0 1 1; 0 0 1]; // All nonlinearities are in the output equation function h = output_equation(theta, omega, g, L) h = [g * cos (theta); g * sin (theta) + omega.*omega * L]; endfunction for i=2:N, x(:,i) = F * x(:,i-1) + ww(:,i); if (i>N/4) & (i Read More
Tags
Cite this document
  • APA
  • MLA
  • CHICAGO
(“Assignment: Computational mathematics (MATLAB/SciLab) Lab Report”, n.d.)
Assignment: Computational mathematics (MATLAB/SciLab) Lab Report. Retrieved from https://studentshare.org/logic-programming/1674198-assignment-computational-mathematics-matlabscilab
(Assignment: Computational Mathematics (MATLAB/SciLab) Lab Report)
Assignment: Computational Mathematics (MATLAB/SciLab) Lab Report. https://studentshare.org/logic-programming/1674198-assignment-computational-mathematics-matlabscilab.
“Assignment: Computational Mathematics (MATLAB/SciLab) Lab Report”, n.d. https://studentshare.org/logic-programming/1674198-assignment-computational-mathematics-matlabscilab.
  • Cited: 0 times

CHECK THESE SAMPLES OF Computational Mathematics: MATLAB or SciLab

Geometric model for motion of curves specified by acceleration

This research contributes to present knowledge by applying the existing equations to modern scenarios to determine whether the existing data remains relevant and provide new details pertinent to current trends and examines the primary curvature properties developed during the evolution of curves....
16 Pages (4000 words) Research Proposal

Applied mathematics for the department of energy

mathematics is applied and statistics is most commonly used as the department continues to enhance its policies, procedures and its entire system in general.... mathematics could serve as a significant tool in order to acquire information integrated with the environment and even in existing human-made system.... This is a potential field where mathematics could have substantial value and high level of opportunity to be maximized to the fullest....
7 Pages (1750 words) Essay

Comparison of Scripting Languages

Examples of scientific based one are matlab and Octave while those of general purpose are python and Perl.... However, we are going to compare and contrast matlab, Python, and Octave scripting languages by analyzing.... According to Chapman, matlab is a computer program enhanced to perform scientific and engineering calculations (2008).... While Octave is software, same as matlab that has a well-matched scripting interface.... However, Octave image processing purposes are not as broad as those provided by matlab....
5 Pages (1250 words) Research Paper

Discrete Mathematics and Mathematical Algorithms

This paper "Discrete mathematics and Mathematical Algorithms " analyses the main characteristics of discrete mathematics and mathematical algorithms.... Discrete mathematics is a section or element of mathematics that is concerned with the objects which are capable of assuming just divided, distinctive values.... The concept of discrete mathematics is thus applied in distinction with continuous mathematics, which is the subdivision of mathematics concerned with the objects which have the competence to deviate quite easily....
9 Pages (2250 words) Research Paper

Development of New Mathematical and Engineering Programs

one in Matlab and the other in scilab.... The program is not only used in mathematics but also widely used in simulating engineering tasks.... These applications software are useful in the development of rapid prototypes for technical activities such as Engineering....
3 Pages (750 words) Lab Report

Self-tuning ID Controller Design for Continuously Stirred Tank Reactor

The paper 'Self-tuning РID Controller Design for а Continuously Stirred Tank Reactor' introducing the methods of determining the rate of reaction as well as the products of reaction by taking into consideration the number of reactants and the temperature of the reaction tank.... ... ... ... the system was connected to a preferred personal computer with ideal software that could actually retrieve the data....
52 Pages (13000 words) Term Paper

Mathematical Games in the Development of Numeracy and Computational Skills

umeracy: A good basic knowledge of mathematics or the ability to understand and work with numbersComputational: the skills of calculation or working with numbersBenefits of Mathematical GamesMathematics games offer exceptional opportunities for learners at every level to be engaged in posing new problems, asking new questions, formulating hypotheses, and constructing strategies.... This paper "Mathematical Games in the Development of Numeracy and computational Skills" seeks to explore literature relating to the importance of mathematical games in developing numeracy and computational skills in middle primary school-aged students....
12 Pages (3000 words) Literature review

Proactive Differential Transformer Protection as a Means of Promoting Personal Safety

For the resulting algorithm, a simulation was done using matlab.... "Proactive Differential Transformer Protection as a Means of Promoting Personal Safety" paper covers a variety of learning methods under the neural network category such as supervised, unsupervised, and reinforcement learning, it is believed that all types are useful under different circumstances....
28 Pages (7000 words) Thesis
sponsored ads
We use cookies to create the best experience for you. Keep on browsing if you are OK with that, or find out how to manage cookies.
Contact Us