Previous Page Trail Contents Next Page

4. Features of formula editor

4.1 Introduction

4.2 Arrays

4.3 Functions

4.4 Vectors and matrixes

4.5 Dirac delta function

4.1 Introduction

Formula editor is case sensitive operates with a lots of types. Result of calculation depends on types of variables.

4.2 Arrays

Let sin(a) be a formula of formula editor. What is its meaning? If a is a real variable then result of formula is a real value. However if a is an array then sin(a) is also an array of componentwise calculation of sin. If a is a real array and b is a real variable then a + b means an array of sums of components of a with b.

4.3 Functions

Any function of formula editor may be a variable or result of calculation. A function as result is not a value of function but the whole function. This fact seems unusual for people who do not know functional analysis. For example if a is a real variable then f(a) means result of calculation of f. If a is function then f(a) is a composition of functions. It is very convenient. For example the series component Series provides three variables:

Graph variables

First variable is an array of abscises of function table. Second one is an array of ordinates. Third one is the function defined by table. Let us consider usage of this function. We have the following situation:

Composition scenario

Click here to download this situation.

The Formula 1 component imports and then exports function f from Plot. The Formula 2 imports one function from Formula 1 and another from Plot. In fact it is the same function. Then Formula 2 composes these functions:

Composition formula

Later Formula 3 calculates these functions. In result we have:

Composition graph

The red curve is the function and teal curve is the composition one.

4.4 Vectors and matrixes

Formula editor supports matrix and vector operations. Examples of usage of vector and matrix operations are presented below :

Vector matrix sample.

Vector matrix sample.

Vector matrix sample.

These examples contains transposition of matrixes, products of matrixes, inversion of matrixes and vector product of 3D vectors.

4.5 Dirac delta function

The formula editor supports Dirac delta function. The presence of the delta function at the right part of the ordinary differential equation shows that the result function is not continuous. Following picture shows presence of delta function in formula editor:
Dirac delta function..


Previous Page Trail Contents Next Page