Skip to Main Content
Introduction to Computational Modeling Using C and Open-Source Tools
book

Introduction to Computational Modeling Using C and Open-Source Tools

by Jose M. Garrido
November 2013
Intermediate to advanced content levelIntermediate to advanced
461 pages
12h 1m
English
CRC Press
Content preview from Introduction to Computational Modeling Using C and Open-Source Tools
104 Introduction to Computational Modeling
The other function in library basic lib is linspace, which assigns values to a
single-dimension array. This function also assigns values that are equally spaced
using the initial value, the final value, and the number of values in the vector. In the
following example, a call to function linspace assigns vector y equally-spaced values
starting with 3.15, a final value of 20.5, and a total of 20 values.
linspace(y, 3.15, 20.5, 20);
The following C source listing is the definition of function linspace; note that the
first parameter is a one-dimensional array of type double.
/
*
This function computes the num element ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Computer Fundamentals and Programming in C (RMK)

Computer Fundamentals and Programming in C (RMK)

Anita Goel, Ajay Mittal

Publisher Resources

ISBN: 9781482216783