O'Reilly logo

GNU Octave by Jesper Schmidt Hansen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Writing and applying user-supplied functions

In Chapter 3, we saw how to "build" mathematical functions directly via the Octave command prompt. Here we will do the same thing, but we will do it properly this time and use Octave functions.

Consider the following vector valued function which we will call the Sel'kov function (an explanation follows later):

Writing and applying user-supplied functions

(5.1)

b is some positive real number that we can vary as we like. We can write Equation (5.1) in a slightly different way by letting (x,y)=(x1,x2)=x:

Writing and applying user-supplied functions

(5.2)

When we write an Octave function for Equation ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required