Differential Equations Using Scilab

Total Page:16

File Type:pdf, Size:1020Kb

Differential Equations Using Scilab Differential equations using Scilab Kannan M. Moudgalya IIT Bombay [email protected] Scilab Workshop 13 September 2010 Kannan Moudgalya Differential equations using Scilab 1/31 Outline I Weight reduction ODE model - analytical solution I Numerical integration I Functions in Scilab I Euler's method I Predator-prey system I Modelling I Euler method - user created integrator I Backward difference method - built-in function Kannan Moudgalya Differential equations using Scilab 2/31 Weight Reduction Model I Weight of person = x kg I Tries to reduce weight I Weight loss per month = 10% of weight I Starting weight = 100 kg dx = −0:1x dt Initial conditions: x = 100 at t=0 Determine x(t) as a function of t. Kannan Moudgalya Differential equations using Scilab 3/31 Analytical Solution of Simple ModelI Recall the model: dx = −0:1x dt x(t = 0) = 100 dx Cross multiplying, = −0:1dt x Integrating both sides from 0 to t, Z dx Z = −0:1 dt x C + ln x(t) = −0:1t Kannan Moudgalya Differential equations using Scilab 4/31 Analytical Solution of Simple ModelII Using initial conditions, C = − ln 100 Thus, the final solution is, x(t) ln = −0:1t or x(t) = 100e−0:1t 100 Kannan Moudgalya Differential equations using Scilab 5/31 Solution, Continued I Weight of person = x kg I Tries to reduce weight I Weight loss per month = 10% of weight I Starting weight = 100 kg x(t) = 100e−0:1t Compute, plot for 2 years, i.e. for 24 months: 1 T=0:0.1:24; 2 plot2d(T,100 ∗ exp ( −0.1∗T)); 3 xtitle('Weight v s . month ' , . 4 ' Time i n months ' , . 5 ' Weight ( kg ) ' ) Kannan Moudgalya Differential equations using Scilab 6/31 Weight vs. month Weight (kg) 100 90 80 70 60 50 40 30 20 10 Time, in months 0 0 4 8 12 16 20 24 Kannan Moudgalya Differential equations using Scilab 7/31 Need for Numerical Solution I Exact solution is ok for simple models I What if the model is complicated? I Consider integrating the more difficult problem: dx 2 + 18t + 68t2 + 180t3 + 250t4 + 250t5 = dt x2 with initial condition, x(t = 0) = 1 I Analytical (i.e. exact) solution difficult to find I Let us look for a numerical solution Kannan Moudgalya Differential equations using Scilab 8/31 Simple numerical solution: Explicit Euler I Suppose that we want to integrate dx = g(x; t) dt with initial condition: x(t = 0) = x0 I Approximate numerical method - divide time into equal intervals: t0, t1, t2, etc. xn − xn−1 = g(xn−1; tn−1) ∆t I Simplifying, xn − xn−1 = ∆t g(xn−1; tn−1) xn = xn−1 + ∆t g(xn−1; tn−1) Kannan Moudgalya Differential equations using Scilab 9/31 I Given x0, can march forward and determine xn for all future n. Example revisited Recall the problem statement for numerical solution: dx 2 + 18t + 68t2 + 180t3 + 250t4 + 250t5 = dt x2 with initial condition, x(t = 0) = 1 Recall the Euler method: dx = g(x; t) dt Solution for initial condition, x(t = 0) = x0 is, Kannan Moudgalya Differential equations using Scilab 10/31 xn = xn−1 + ∆t g(xn−1; tn−1) Scilab CodeI 1 exec("diff1 .sci"); 2 exec("Euler. sci"); 3 x0=1; t0=0; T=0:1:24; 4 sol = Euler(x0,t0,T,diff1); 5 // sol = ode(x0,t0,T,diff1 ); 6 plot2d(T,sol), pause 7 plot2d(T,1+2∗T+5∗T^ 2 , 5 ) 8 x t i t l e ( ' x v s . t : P o l y n o m i a l Problem','t','x') Kannan Moudgalya Differential equations using Scilab 11/31 Scilab CodeII 1 function x = Euler(x0,t0,t,g) 2 n = length(t), x = x0; 3 f o r j = 1 : n−1 4 x0 = x0 + (t(j+1)−t ( j ) ) ∗ g(t(j),x0); 5 x = [ x x0 ] ; 6 end ; 7 endfunction 1 function xdot = diff1(t,x) 2 xdot = (2+18∗ t +68∗ t ^2+180∗ t ^3+250∗ t ^4+250∗ t ^5)/ x ^ 2 ; 3 endfunction Kannan Moudgalya Differential equations using Scilab 12/31 Comparison of numerical, exact solution x vs. t: Polynomial Problem x 3200 2800 2400 2000 1600 1200 800 400 t 0 0 4 8 12 16 20 24 Kannan Moudgalya Differential equations using Scilab 13/31 Predator-Prey Problem I I Population dynamics of predator-prey I Prey can find food, but gets killed on meeting predator I Examples: parasites and certain hosts; wolves and rabbits I x1(t) - number of prey; x2(t) - number of predator at time t I Prey, if left alone, grows at a rate proportional to x1 Kannan Moudgalya Differential equations using Scilab 14/31 Predator-Prey Problem II I Predator, on meeting prey, kills it ) proportional to x1x2 dx1 = 0:25x1 − 0:01x1x2 dt I Predator, if left alone, decrease by natural causes I Predators increase their number on meeting prey dx2 = −x2 + 0:01x1x2 dt I Determine x1(t), x2(t) when x1(0) = 80, x2(0) = 30 Kannan Moudgalya Differential equations using Scilab 15/31 Explicit Euler for a System of EquationsI dx1 = g1(x1;:::; xn; t) dt . dxN = gn(x1;:::; xn; t) dt Kannan Moudgalya Differential equations using Scilab 16/31 Explicit Euler for a System of EquationsII 2 3 2 3 x1 g1(x1;:::; xn; t − 1) d . 4 . 5 = 4 . 5 dt xn gn(x1;:::; xn; t − 1) 2 3 2 3 2 3 x1 x1 g1((x1;:::; xn)jt−1; t − 1) . 4 . 5 = 4 . 5 + ∆t 4 . 5 xn t xn t−1 gN((x1;:::; xn)jt−1; t − 1) Solution in vector form: xt = xt−1 + ∆tg(xt−1) Kannan Moudgalya Differential equations using Scilab 17/31 Scilab Code for Predator-Prey ProblemI 1 exec("pred. sci"); 2 exec("Euler. sci"); 3 x0=[80,30]'; t0=0; T=0:0.1:20; T=T'; 4 sol = Euler(x0,t0,T,pred); 5 // sol = ode(x0,t0 ,T,pred); 6 c l f ( ) ; 7 plot2d(T,sol ') 8 xset( 'window' ,1) 9 plot2d(sol(2,:),sol(1,:)) Kannan Moudgalya Differential equations using Scilab 18/31 Scilab Code for Predator-Prey ProblemII 1 function x = Euler(x0,t0,t,g) 2 n = length(t), x = x0; 3 f o r j = 1 : n−1 4 x0 = x0 + (t(j+1)−t ( j ) ) ∗ g(t(j),x0); 5 x = [ x x0 ] ; 6 end ; 7 endfunction 1 function xdot = pred(t,x) 2 xdot(1) = 0.25 ∗ x (1) −0.01∗ x ( 1 ) ∗ x ( 2 ) ; 3 xdot ( 2 ) = −x (2)+0.01∗ x ( 1 ) ∗ x ( 2 ) ; 4 endfunction Kannan Moudgalya Differential equations using Scilab 19/31 Predator-Prey Problem: Solution by Euler Predator−Prey by Euler for different step sizes, Black = 0.25, Red = 0.1 Prey 140 130 120 110 100 90 80 70 Predator 60 10 14 18 22 26 30 34 38 42 46 As step size increases, the solution diverges more from theKannan actual. Moudgalya Differential equations using Scilab 20/31 General method to handle stiff systems I The predator-prey problem is an example of a stiff system I Results because of sudden changes in the derivative I Approximation of using previous time values does not work I General approach to solve this problem: xn = xn−1 + ∆t g(xn; tn) I Requires solution by trial and error, as g(xn; tn) is unknown I Scilab has state of the art methods (ode) to solve such systems Kannan Moudgalya Differential equations using Scilab 21/31 General method to handle stiff systems I Derived from ODEPACK I FOSS I In use for thirty years I Bugs have been removed by millions of users Kannan Moudgalya Differential equations using Scilab 22/31 Predator-Prey Problem by Scilab IntegratorI Execute the following code, after commenting out Euler and uncommenting ode: 1 exec("pred. sci"); 2 exec("Euler. sci"); 3 x0=[80,30]'; t0=0; T=0:0.1:20; T=T'; 4 sol = Euler(x0,t0,T,pred); 5 // sol = ode(x0 ,t0 ,T,pred); 6 c l f ( ) ; 7 plot2d(T,sol ') 8 xset( 'window' ,1) Kannan Moudgalya Differential equations using Scilab 23/31 Predator-Prey Problem by Scilab IntegratorII 9 plot2d(sol(2,:),sol(1,:)) 1 function xdot = pred(t,x) 2 xdot(1) = 0.25 ∗ x (1) −0.01∗ x ( 1 ) ∗ x ( 2 ) ; 3 xdot ( 2 ) = −x (2)+0.01∗ x ( 1 ) ∗ x ( 2 ) ; 4 endfunction Kannan Moudgalya Differential equations using Scilab 24/31 Predator-Prey Problem: Scilab Integrator Predator−Prey by Scilab integrator Prey 130 120 110 100 90 80 Predator 70 15 19 23 27 31 35 39 Use the Scilab built-in integrator to get the correct solution Kannan Moudgalya Differential equations using Scilab 25/31 Partial Differential Equations Kannan Moudgalya Differential equations using Scilab 26/31 Parabolic Differential Equations I Heat conduction equation I Diffusion equation @u(t; x) @2u(t; x) = c @t @x2 I Initial condition: u(0; x) = g(x); 0 ≤ x ≤ 1 I Boundary conditions: u(t; 0) = α, u(t; 1) = β; t ≥ 0 m I Let uj be approximate solution at xj = j∆x, tm = m∆t um+1 − um c j j = (um − 2um + um ) ∆t (∆x)2 j−1 j j+1 Kannan Moudgalya Differential equations using Scilab 27/31 Finite Difference Approach um+1 − um c c∆t j j = (um − 2um + um ); µ = ∆t (∆x)2 j−1 j j+1 (∆x)2 m+1 m m m m uj = uj + µ(uj−1 − 2uj + uj+1) m m m = µuj−1 + (1 − 2µ)uj + µuj+1 Write this equation at every spatial grid: m+1 m m m u1 = µu0 + (1 − 2µ)u1 + µu2 m+1 m m m u2 = µu1 + (1 − 2µ)u2 + µu3 .
Recommended publications
  • Ordinary Differential Equations (ODE) Using Euler's Technique And
    Mathematical Models and Methods in Modern Science Ordinary Differential Equations (ODE) using Euler’s Technique and SCILAB Programming ZULZAMRI SALLEH Applied Sciences and Advance Technology Universiti Kuala Lumpur Malaysian Institute of Marine Engineering Technology Bandar Teknologi Maritim Jalan Pantai Remis 32200 Lumut, Perak MALAYSIA [email protected] http://www.mimet.edu.my Abstract: - Mathematics is very important for the engineering and scientist but to make understand the mathematics is very difficult if without proper tools and suitable measurement. A numerical method is one of the algorithms which involved with computer programming. In this paper, Scilab is used to carter the problems related the mathematical models such as Matrices, operation with ODE’s and solving the Integration. It remains true that solutions of the vast majority of first order initial value problems cannot be found by analytical means. Therefore, it is important to be able to approach the problem in other ways. Today there are numerous methods that produce numerical approximations to solutions of differential equations. Here, we introduce the oldest and simplest such method, originated by Euler about 1768. It is called the tangent line method or the Euler method. It uses a fixed step size h and generates the approximate solution. The purpose of this paper is to show the details of implementing of Euler’s method and made comparison between modify Euler’s and exact value by integration solution, as well as solve the ODE’s use built-in functions available in Scilab programming. Key-Words: - Numerical Methods, Scilab programming, Euler methods, Ordinary Differential Equation. 1 Introduction availability of digital computers has led to a Numerical methods are techniques by which veritable explosion in the use and development of mathematical problems are formulated so that they numerical methods [1].
    [Show full text]
  • Numerical Methods for Ordinary Differential Equations
    CHAPTER 1 Numerical Methods for Ordinary Differential Equations In this chapter we discuss numerical method for ODE . We will discuss the two basic methods, Euler’s Method and Runge-Kutta Method. 1. Numerical Algorithm and Programming in Mathcad 1.1. Numerical Algorithm. If you look at dictionary, you will the following definition for algorithm, 1. a set of rules for solving a problem in a finite number of steps; 2. a sequence of steps designed for programming a computer to solve a specific problem. A numerical algorithm is a set of rules for solving a problem in finite number of steps that can be easily implemented in computer using any programming language. The following is an algorithm for compute the root of f(x) = 0; Input f, a, N and tol . Output: the approximate solution to f(x) = 0 with initial guess a or failure message. ² Step One: Set x = a ² Step Two: For i=0 to N do Step Three - Four f(x) Step Three: Compute x = x ¡ f 0(x) Step Four: If f(x) · tol return x ² Step Five return ”failure”. In analogy, a numerical algorithm is like a cook recipe that specify the input — cooking material, the output—the cooking product, and steps of carrying computation — cooking steps. In an algorithm, you will see loops (for, while), decision making statements(if, then, else(otherwise)) and return statements. ² for loop: Typically used when specific number of steps need to be carried out. You can break a for loop with return or break statement. 1 2 1. NUMERICAL METHODS FOR ORDINARY DIFFERENTIAL EQUATIONS ² while loop: Typically used when unknown number of steps need to be carried out.
    [Show full text]
  • Getting Started with Euler
    Getting started with Euler Samuel Fux High Performance Computing Group, Scientific IT Services, ETH Zurich ETH Zürich | Scientific IT Services | HPC Group Samuel Fux | 19.02.2020 | 1 Outlook . Introduction . Accessing the cluster . Data management . Environment/LMOD modules . Using the batch system . Applications . Getting help ETH Zürich | Scientific IT Services | HPC Group Samuel Fux | 19.02.2020 | 2 Outlook . Introduction . Accessing the cluster . Data management . Environment/LMOD modules . Using the batch system . Applications . Getting help ETH Zürich | Scientific IT Services | HPC Group Samuel Fux | 19.02.2020 | 3 Intro > What is EULER? . EULER stands for . Erweiterbarer, Umweltfreundlicher, Leistungsfähiger ETH Rechner . It is the 5th central (shared) cluster of ETH . 1999–2007 Asgard ➔ decommissioned . 2004–2008 Hreidar ➔ integrated into Brutus . 2005–2008 Gonzales ➔ integrated into Brutus . 2007–2016 Brutus . 2014–2020+ Euler . It benefits from the 15 years of experience gained with those previous large clusters ETH Zürich | Scientific IT Services | HPC Group Samuel Fux | 19.02.2020 | 4 Intro > Shareholder model . Like its predecessors, Euler has been financed (for the most part) by its users . So far, over 100 (!) research groups from almost all departments of ETH have invested in Euler . These so-called “shareholders” receive a share of the cluster’s resources (processors, memory, storage) proportional to their investment . The small share of Euler financed by IT Services is open to all members of ETH . The only requirement
    [Show full text]
  • Freemat V3.6 Documentation
    FreeMat v3.6 Documentation Samit Basu November 16, 2008 2 Contents 1 Introduction and Getting Started 5 1.1 INSTALL Installing FreeMat . 5 1.1.1 General Instructions . 5 1.1.2 Linux . 5 1.1.3 Windows . 6 1.1.4 Mac OS X . 6 1.1.5 Source Code . 6 2 Variables and Arrays 7 2.1 CELL Cell Array Definitions . 7 2.1.1 Usage . 7 2.1.2 Examples . 7 2.2 Function Handles . 8 2.2.1 Usage . 8 2.3 GLOBAL Global Variables . 8 2.3.1 Usage . 8 2.3.2 Example . 9 2.4 INDEXING Indexing Expressions . 9 2.4.1 Usage . 9 2.4.2 Array Indexing . 9 2.4.3 Cell Indexing . 13 2.4.4 Structure Indexing . 14 2.4.5 Complex Indexing . 16 2.5 MATRIX Matrix Definitions . 17 2.5.1 Usage . 17 2.5.2 Examples . 17 2.6 PERSISTENT Persistent Variables . 19 2.6.1 Usage . 19 2.6.2 Example . 19 2.7 STRING String Arrays . 20 2.7.1 Usage . 20 2.8 STRUCT Structure Array Constructor . 22 2.8.1 Usage . 22 2.8.2 Example . 22 3 4 CONTENTS 3 Functions and Scripts 25 3.1 ANONYMOUS Anonymous Functions . 25 3.1.1 Usage . 25 3.1.2 Examples . 25 3.2 FUNCTION Function Declarations . 26 3.2.1 Usage . 26 3.2.2 Examples . 28 3.3 KEYWORDS Function Keywords . 30 3.3.1 Usage . 30 3.3.2 Example . 31 3.4 NARGIN Number of Input Arguments . 32 3.4.1 Usage .
    [Show full text]
  • A Case Study in Fitting Area-Proportional Euler Diagrams with Ellipses Using Eulerr
    A Case Study in Fitting Area-Proportional Euler Diagrams with Ellipses using eulerr Johan Larsson and Peter Gustafsson Department of Statistics, School of Economics and Management, Lund University, Lund, Sweden [email protected] [email protected] Abstract. Euler diagrams are common and user-friendly visualizations for set relationships. Most Euler diagrams use circles, but circles do not always yield accurate diagrams. A promising alternative is ellipses, which, in theory, enable accurate diagrams for a wider range of input. Elliptical diagrams, however, have not yet been implemented for more than three sets or three-set diagrams where there are disjoint or subset relationships. The aim of this paper is to present eulerr: a software package for elliptical Euler diagrams for, in theory, any number of sets. It fits Euler diagrams using numerical optimization and exact-area algorithms through a two-step procedure, first generating an initial layout using pairwise relationships and then finalizing this layout using all set relationships. 1 Background The Euler diagram, first described by Leonard Euler in 1802 [1], is a generalization of the popular Venn diagram. Venn and Euler diagrams both visualize set relationships by mapping areas in the diagram to relationships in the data. They differ, however, in that Venn diagrams require all intersections to be present| even if they are empty|whilst Euler diagrams do not, which means that Euler diagrams lend themselves well to be area-proportional. Euler diagrams may be fashioned out of any closed shape, and have been implemented for triangles [2], rectangles [2], ellipses [3], smooth curves [4], poly- gons [2], and circles [5, 2].
    [Show full text]
  • The Python Interpreter
    The Python interpreter Remi Lehe Lawrence Berkeley National Laboratory (LBNL) US Particle Accelerator School (USPAS) Summer Session Self-Consistent Simulations of Beam and Plasma Systems S. M. Lund, J.-L. Vay, R. Lehe & D. Winklehner Colorado State U, Ft. Collins, CO, 13-17 June, 2016 Python interpreter: Outline 1 Overview of the Python language 2 Python, numpy and matplotlib 3 Reusing code: functions, modules, classes 4 Faster computation: Forthon Overview Scientific Python Reusing code Forthon Overview of the Python programming language Interpreted language (i.e. not compiled) ! Interactive, but not optimal for computational speed Readable and non-verbose No need to declare variables Indentation is enforced Free and open-source + Large community of open-souce packages Well adapted for scientific and data analysis applications Many excellent packages, esp. numerical computation (numpy), scientific applications (scipy), plotting (matplotlib), data analysis (pandas, scikit-learn) 3 Overview Scientific Python Reusing code Forthon Interfaces to the Python language Scripting Interactive shell Code written in a file, with a Obtained by typing python or text editor (gedit, vi, emacs) (better) ipython Execution via command line Commands are typed in and (python + filename) executed one by one Convenient for exploratory work, Convenient for long-term code debugging, rapid feedback, etc... 4 Overview Scientific Python Reusing code Forthon Interfaces to the Python language IPython (a.k.a Jupyter) notebook Notebook interface, similar to Mathematica. Intermediate between scripting and interactive shell, through reusable cells Obtained by typing jupyter notebook, opens in your web browser Convenient for exploratory work, scientific analysis and reports 5 Overview Scientific Python Reusing code Forthon Overview of the Python language This lecture Reminder of the main points of the Scipy lecture notes through an example problem.
    [Show full text]
  • Freemat V4.0 Documentation
    FreeMat v4.0 Documentation Samit Basu October 4, 2009 2 Contents 1 Introduction and Getting Started 39 1.1 INSTALL Installing FreeMat . 39 1.1.1 General Instructions . 39 1.1.2 Linux . 39 1.1.3 Windows . 40 1.1.4 Mac OS X . 40 1.1.5 Source Code . 40 2 Variables and Arrays 41 2.1 CELL Cell Array Definitions . 41 2.1.1 Usage . 41 2.1.2 Examples . 41 2.2 Function Handles . 42 2.2.1 Usage . 42 2.3 GLOBAL Global Variables . 42 2.3.1 Usage . 42 2.3.2 Example . 42 2.4 INDEXING Indexing Expressions . 43 2.4.1 Usage . 43 2.4.2 Array Indexing . 43 2.4.3 Cell Indexing . 46 2.4.4 Structure Indexing . 47 2.4.5 Complex Indexing . 49 2.5 MATRIX Matrix Definitions . 49 2.5.1 Usage . 49 2.5.2 Examples . 49 2.6 PERSISTENT Persistent Variables . 51 2.6.1 Usage . 51 2.6.2 Example . 51 2.7 STRUCT Structure Array Constructor . 51 2.7.1 Usage . 51 2.7.2 Example . 52 3 4 CONTENTS 3 Functions and Scripts 55 3.1 ANONYMOUS Anonymous Functions . 55 3.1.1 Usage . 55 3.1.2 Examples . 55 3.2 FUNCTION Function Declarations . 56 3.2.1 Usage . 56 3.2.2 Examples . 57 3.3 KEYWORDS Function Keywords . 60 3.3.1 Usage . 60 3.3.2 Example . 60 3.4 NARGIN Number of Input Arguments . 61 3.4.1 Usage . 61 3.4.2 Example . 61 3.5 NARGOUT Number of Output Arguments .
    [Show full text]
  • MATHCAD's PROGRAM FUNCTION and APPLICATION in TEACHING of MATH
    MATHCAD'S PROGRAM FUNCTION and APPLICATION IN TEACHING OF MATH DE TING WU Depart of Math Morehouse College Atlanta, GA.30314, USA [email protected] 1. Introduction 1.1 About Mathcad Mathcad is one of popular computer algebra system (math software) in the world. Like other CAS's, it has the capabilities to perform algebraic operations, calculus operations and draw graph of 2 or 3 dimensions. We can use it to get numerical, symbolic and graphic solution of math problem. Besides above common capabilities, it has some feature: its words processor function is better than other CAS. This feature makes it look like a scientifical words processor and it easy to create a woksheet. Following current trend to add program function to math software, it added program function to itself , started in Mathcad V7. This improvement makes its function more complete and more powerful. 1.2 Role of program function in teac hing of Math. Without doubt, math softwares and technology are helpful aide in teaching of Math. They are effecting the teaching of Math profoundly and it can be expected the emerging newer technologies will penetrate and reconfigure the teaching of Math. The program function is a new function of math software. It is natural we want to know whether or not it is useful in teaching of Math? I think: although for most problems we meet in teaching of Math it is enough to use computation ability, in certain cases the program function becomes necessary and very helpful. For example, for Numerical Analysis the program function is very useful but for Abstract Algebra it is less necessary.
    [Show full text]
  • Programming for Computations – Python
    15 Svein Linge · Hans Petter Langtangen Programming for Computations – Python Editorial Board T. J.Barth M.Griebel D.E.Keyes R.M.Nieminen D.Roose T.Schlick Texts in Computational 15 Science and Engineering Editors Timothy J. Barth Michael Griebel David E. Keyes Risto M. Nieminen Dirk Roose Tamar Schlick More information about this series at http://www.springer.com/series/5151 Svein Linge Hans Petter Langtangen Programming for Computations – Python A Gentle Introduction to Numerical Simulations with Python Svein Linge Hans Petter Langtangen Department of Process, Energy and Simula Research Laboratory Environmental Technology Lysaker, Norway University College of Southeast Norway Porsgrunn, Norway On leave from: Department of Informatics University of Oslo Oslo, Norway ISSN 1611-0994 Texts in Computational Science and Engineering ISBN 978-3-319-32427-2 ISBN 978-3-319-32428-9 (eBook) DOI 10.1007/978-3-319-32428-9 Springer Heidelberg Dordrecht London New York Library of Congress Control Number: 2016945368 Mathematic Subject Classification (2010): 26-01, 34A05, 34A30, 34A34, 39-01, 40-01, 65D15, 65D25, 65D30, 68-01, 68N01, 68N19, 68N30, 70-01, 92D25, 97-04, 97U50 © The Editor(s) (if applicable) and the Author(s) 2016 This book is published open access. Open Access This book is distributed under the terms of the Creative Commons Attribution-Non- Commercial 4.0 International License (http://creativecommons.org/licenses/by-nc/4.0/), which permits any noncommercial use, duplication, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, a link is provided to the Creative Commons license and any changes made are indicated.
    [Show full text]
  • CAS Maxima Workbook
    CAS Maxima Workbook Roland Salz January 7, 2021 Vers. 0.3.6 This work is published under the terms of the Creative Commons (CC) BY-NC-ND 4.0 license. You are free to: Share — copy and redistribute the material in any medium or format Under the following terms: Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use. NonCommercial — You may not use the material for commercial purposes. NoDerivatives — If you remix, transform, or build upon the material, you may not distribute the modified material. No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits. As an exception to the above stated terms, the Maxima team is free to incorporate any material from this work into the official Maxima manual, and to remix, transform, or build upon this material within the official Maxima manual, to be published under its own license terms. No attribution is required in this case. Copyright © Roland Salz 2018-2021 No warranty whatsoever is given for the correctness or completeness of the information provided. Maple, Mathematica, Windows, and YouTube are registered trademarks. This project is work in progress. Comments and suggestions for improvement are welcome. Roland Salz Braunsberger Str. 26 D-44809 Bochum [email protected] i In some cases the objective is clear, and the results are surprising. Richard J. Fateman ii Preface Maxima was developed from 1968-1982 at MIT (Massachusetts Institute of Tech- nology) as the first comprehensive computer algebra system (CAS).
    [Show full text]
  • Application of the Maxima in the Teaching of Science Subjects at Different Levels of Knowledge
    Advances in Science and Technology Research Journal Volume 8, No. 24, Dec. 2014, pages 44–50 Original Article DOI: 10.12913/22998624/566 APPLICATION OF THE MAXIMA IN THE TEACHING OF SCIENCE SUBJECTS AT DIFFERENT LEVELS OF KNOWLEDGE Anna Makarewicz1 1 Department of Applied Mathematics, Lublin University of Technology, Nadbystrzycka 38, 20-618 Lublin, Poland, e-mail: [email protected] Received: 2014.10.18 ABSTRACT Accepted: 2014.11.12 In this paper I present a program Maxima, which is one of the best computer algebra Published: 2014.12.01 system (CAS). The program is easy to use and offers many possibilities. In the text the interface, basic commands, and various examples to facilitate complex calculations in almost every field of mathematics are preented. I prove that the program can be used in secondary schools, upper secondary schools and college. Program’s capabilities are presented, including, among others, differentiation and symbolic integration, symbol- ic solving equations (including differential), simplifying algebraic expressions, matrix operations, the possibility of drawing graphs of 2D / 3D and others. Keywords: computer program, numerical computation, symbolic computation, sym- bolic differentiation, symbolic integration, graph, graph three-dimensional, function. INTRODUCTION • symbolic solving equations (including differ- ential), Maxima is a computer program, performing • symbolic solving systems of equations, mathematical calculations, both symbolic and nu- • symbolic differentiation and integration, meric. The use of symbolic computation allows to • matrix operations, solve many mathematical problems in an accurate • drawing graphs of functions, manner. Maxima can work as a calculator, which • perform calculations in the field of probability can be used in secondary schools.
    [Show full text]
  • Maple 12 Tutorial
    Maple 12 Tutorial Updated: August 2012 Maple 12 Tutorial Table of Contents SECTION 1. INTRODUCTION...................................................................................... 3 ABOUT THE DOCUMENT .................................................................................................. 3 MAPLE INTRODUCTION .................................................................................................... 3 ACCESS TO MAPLE ........................................................................................................... 3 GETTING STARTED ........................................................................................................... 4 THE MAPLE APPLICATION INTERFACE ............................................................................. 5 THE HELP WINDOW ......................................................................................................... 7 BASIC CONVENTIONS IN MAPLE ...................................................................................... 8 BASIC DATA STRUCTURES IN MAPLE ............................................................................ 11 SECTION 3. NUMERICAL COMPUTATION........................................................... 12 FLOATING POINT NUMBER COMPUTATION .................................................................... 12 INTEGER COMPUTATIONS ............................................................................................... 13 COMPLEX NUMBER COMPUTATION ..............................................................................
    [Show full text]