2.8.6 differentiate

Menu Information

Analysis: Mathematics: Differentiate

Brief Information

Calculate derivative of XY data

Additional Information

This feature is updated in 8.0 SR5. For more details, please refer to Release Notes.

Command Line Usage

1. differentiate iy:=Col(2);

2. differentiate iy:=(1, 2) order:=2 oy:=(3, 4);

3. differentiate iy:=(1,2) smooth:=1 poly:=2 npts:=20

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Input iy

Input

XYRange

<active>
Specify the input XY range (curve) to perform differentiation.
Derivative Order order

Input

int

1
Specify the derivative order.
Smooth smooth

Input

int

0
Specify whether to use the Savitzky-Golay smoothing method that performs a local polynomial regression around each point to find the derivatives.
Polynomial Order poly

Input

int

2
This is available only when the smooth variable is set to 1. It specifies the polynomial order (1 to 9) for the Savitzky-Golay smoothing method.
Points of Window npts

Input

int

20
This is available only when the smooth variable is set to 1. It specifies the number of points in the moving window used in the Savitzky-Golay smoothing method.
Output oy

Output

XYRange

(<input>,<new>)
Specify the output range.

See the syntax here.

Plot Derivative Curve plot

Input

int

0
Specify whether to plot the derivative curve.


Examples

This example shows you how to calculate the second derivative of a dataset:

  1. Import the file <Origin Program Folder>\Samples\Spectroscopy\HiddenPeaks.dat.
  2. Highlight col(B), and then select Analysis: Mathematics: Differentiate from the main menu to bring up the dialog box of the tool.
  3. Enter 2 after Derivative Order
  4. Click OK. A new column should be added to the worksheet. It has the results.


More Information

Please refer to this page in the User Guide for more information:

  • Description
  • Algorithm

Related X-Functions

integ1