Table Of Contents

Partial Derivatives of f(x1,x2) (G Dataflow)

Last Modified: March 15, 2017

Calculates the partial derivatives of a function that contains two independent variables.

connector_pane_image
datatype_icon

number of points

Numbers of values for both variables used in the function calculation.

datatype_icon

formula

Function to calculate. The formula can contain any number of valid variables.

Entering Valid Variables

This node accepts variables that use the following format rule: variables must start with a letter or an underscore followed by any number of alphanumeric characters or underscores.

datatype_icon

start

Start points of both variables. The array contains two elements.

datatype_icon

end

End points of both variables. The array contains two elements.

datatype_icon

variables

Variables with respect to the naming conventions of the Parsing nodes.

datatype_icon

error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Default: No error

datatype_icon

derivative

Variable whose partial derivative you want to calculate.

Name Value Description
first variable 0 Calculates the partial derivative of the first variable.
second variable 1 Calculates the partial derivative of the second variable.

Default: first variable

datatype_icon

x1 values

Values of the first variable used in the function calculation. The values are equally spaced from start to end.

datatype_icon

x2 values

Values of the second variable used in the function calculation. The values are equally spaced from start to end.

datatype_icon

partial derivative

Fixed partial derivatives at the defined grid points.

datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Algorithm for Calculating partial derivative

This node calculates partial derivative using the following equation:

partial derivative = { df ( x 1 , x 2 ) d x 1 ( if derivative is first variable ) df ( x 1 , x 2 ) d x 2 ( if derivative is second variable )

To investigate the x1-derivative of function f(x1, x2) = sin(x12 - x2) - cos(sin(x2) - x1) in the interval (-2, 2) by (-2, 2), enter the following values on the panel:

start: [-2, 2]

end: [2, 2]

formula: sin(x1*x1 - x2) - cos(sin(x2) - x1)

derivative: first variable

Where This Node Can Run:

Desktop OS: Windows

FPGA: This product does not support FPGA devices


Recently Viewed Topics