Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Functions

erf

We've made some changes. Use 'Ctrl-F5' to clear your browser cache.
Scroll Prev Top Next More

Calculates the error function as defined by the following equation:

 

 

Supported Product: FDTD, MODE, DEVICE, INTERCONNECT

 

Syntax

Description

out=erf(z);

Returns error function of z where z is a scalar number or matrix of scalar numbers.

 

Example

Plot the error function from z=-5 to 5.

z=linspace(-5,5,50); # generate vector of numbers from -5 to 5 with 50 points

erf_z = erf(z);

plot(z,erf_z,"z","erf");

 

The following figure shows the plot created by the example code.

erf_zoom84

 

See Also

Functions, erfc, erfinv, erfcinv

Copyright Lumerical Inc. | Privacy | Site Map