chop()

Replace numbers in x with magnitude less than dx with 0

Syntax
y = chop(x, dx)

Arguments
Name Description Range Type Required
x numbers to replace (-∞, ∞) integer, real, complex yes
dx value to compare to (-∞, ∞) integer, real, complex yes

Examples

chop(1)
returns 1
chop(1e-12)
returns 0
chop(1+1e-12i)
returns 1+0i

Defined in

$HPEESOF_DIR/expressions/ael/elementary_fun.ael

Notes/Equations

The chop() function acts independently on the real and complex components of x, comparing each to mag(dx). For example,
y = x if mag(x) >= mag(dx)
y = 0 if mag(x)

 

Privacy Statement  | Terms of Use  | Legal | Contact Us  | © Agilent 2000-2008 

Contents
Additional Resources